[FFmpeg-devel] rtpdec_h264.c RTP to annex-b patch

Matthew Szatmary szatmary at gmail.com
Wed Feb 1 19:30:01 CET 2012


using -vcodec copy I tried outputting as mp4, mkv, fly and mpegts (with and without -bsf h264_mp4toannexb). None of them worked before this patch. They all work after this patch is applied


On Feb 1, 2012, at 11:43 AM, Martin Storsjö wrote:

> On Wed, 1 Feb 2012, Matthew Szatmary wrote:
> 
>> The 3 byre start codes and out of band SPS/PPS format is legal, but the only thing in the ffmpeg stack that can parse that is the h264 decoder itself. I could have made this a bit stream filter, but it would do the exact same thing and require extra code / CLI options from the user. Maybe this solution is not ideal for everyone, but currently it is not possible to write an H.264 RTSP stream without transcoding it. This fixes that.
> 
> You didn't say which format you tried to write it into - I'm pretty sure you can write the output from this into mov/mp4 without problems, which wouldn't work with this applied.
> 
> // Martin
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list