• Ronald S. Bultje's avatar
    Several encoding changes: for video, double check the pix_fmt after opening... · 199e7f14
    Ronald S. Bultje authored
    Several encoding changes: for video, double check the pix_fmt after opening the AVCodec. The pix_fmt will be changed ...
    
    Original commit message from CVS:
    Several encoding changes:
    * for video, double check the pix_fmt after opening the AVCodec. The pix_fmt
    will be changed to the preferred pix_fmt instead of that opening the
    codec fails. We fail when it has changed (then, ffmpeg doesn't like it).
    * for video, set the correct timestamp.
    * for audio, do *not* set the frame_size: most codecs don't like it. Instead,
    keep a cache of buffers and always give data of size "frame_size". Maybe
    I should have used bytestream here, I'm not sure. This works, though.
    I can now create mpeg1 video, mp2 and ac3 audio. I didn't test any others yet.
    I also didn't start working on integration with any of the muxers yet, that's
    all one big TODO. One thing at a time, please. :).
    199e7f14
gstffmpegenc.c 19.3 KB