Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFMpeg through FFmpegWrapper #6

Open
VicenteFava opened this issue Aug 17, 2015 · 7 comments
Open

FFMpeg through FFmpegWrapper #6

VicenteFava opened this issue Aug 17, 2015 · 7 comments

Comments

@VicenteFava
Copy link

I am using this library through this wrapper:

https://github.com/OpenWatch/FFmpegWrapper

However, I am getting the error:

[NULL @ 0x7fb59a012a00] Unable to find a suitable output format for '/Users/mytestuser/Library/Developer/CoreSimulator/Devices/E0F92C98-411C-4CEA-8FC9-CE8E33F0A222/data/Containers/Data/Application/069294B7-7D45-4760-B3B2-030649DDFE1A/Documents/video'
2015-08-17 17:30:34.400 TestProject[9671:309324] codec not found: h264

What can I do to fix the issue?
Remember that I installed it all through cocoapods.

@toptierlabs
Copy link

Same issue here

@chrisballinger
Copy link
Owner

That's actually not an error. You should only use the H.264 hardware
encoder via VideoToolbox.framework.

On Mon, Aug 17, 2015 at 3:41 PM, toptierlabs notifications@github.com
wrote:

Same issue here


Reply to this email directly or view it on GitHub
#6 (comment)
.

@VicenteFava
Copy link
Author

@chrisballinger How do I do that? I compiled ffmpeg with h264 codec.
What should I change?

@demianardus
Copy link

@chrisballinger @VicenteFava I was having the same problem and i made the following change to FFOutputStream:

AVCodec *codec = avcodec_find_encoder_by_name([outputCodec UTF8String]);
For:
AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_H264);

Now that message is gone, and the codec is properly assigned, but I'm getting the following error when writing a packet into the file at this line:

int writeFrameValue = av_interleaved_write_frame(self.formatContext, packet);

Encoder did not produce proper pts, making some up.

Any ideas?

@VicenteFava
Copy link
Author

I don't think that is the problem, the problem that I'm having with av_interleaved_write_frame is an arithmetic issue.

In that line I have the following error

EXC_ARITHMETIC(code=EXC_1386_DIV, subcode=0x0)

I think it's because is trying to do a division by zero

@zman0225
Copy link

+1

@fzakaria
Copy link

I've also built it with H264 and having the same 'cannot find codec' issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants