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?
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.
Here is the example video file: https://cloud.tem.li/public.php?service=files&t=2c5cbbb4af9472ea9cdef2d794645f66
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!