[Libav-user] Simple transcoding of h264

Andrey Utkin andrey.krieger.utkin at gmail.com
Thu Oct 6 17:19:40 CEST 2011

Dear all, i need your help.

I try to transcode MPEG2TS(h264+aac) stream using libavcodec.
But i get green screen.
There are sources: http://pastebin.com/rhzJbBPW
The output: http://pastebin.com/mcv40h2L
ffmpeg transcodes correctly: http://pastebin.com/0NtRFU7r
I use git master head ffmpeg, git master head x264.

The most disturbing warning is
[libx264 @ 0x9e59890] specified frame type (3) at 116 is not
compatible with keyframe interval


[libx264 @ 0x9e59890] frame= 116 QP=19.00 NAL=2 Slice:P Poc:126 I:0
P:0    SKIP:1620 size=16 bytes
writing transcoded video frame with pts 527805, size 16

which mean that libx264 skips most of data and gives me just 16 bytes
each time i request encoded frame.

Andrey Utkin

More information about the Libav-user mailing list