3d0c/gmf

Problem with transcode an h264 video

Closed this issue · 4 comments

For further work I tried to transcode an H264/AVC Video (record with an iPhone) like your provided example. It creates an valid video file but many frames are dropped and the message [mpeg4 @ 0x580aa00] warning, too many b frames in a row is thrown many times. I'm not sure why that happens. I already tried to use the CopyExtra(ist *Stream) *CodecCtx to get more Information from the incoming stream, but it doesn't help. Do you have any suggestion or did you have a similar problem with transcoding?

3d0c commented

It's interesting, can you upload file to somewhere (dropbox, or something), i would like to play with it.

Anyway, you have to realize, that transcode.go is just an example of how to use all this stuff together, it's not ready to production universal transcoder.

3d0c commented

I've fixed a bug in transcode.go (5867570), so now it's successfully processing your example (from h264 to mpeg4).

About warnings - just ignore them (http://lists.ffmpeg.org/pipermail/libav-user/2013-October/005704.html)

And don't copy codecs settings, when you encode with different codec. I've removed it (CopyBasic) from transcode.go (it was only for stream copying tests)

Thanks, now it works great!