Tuesday, 7 June 2011

FFMpeg and H.264 over RTP

As some people trying my previous "ffmpeg RTP" recipe might have noticed, there might be problems when streaming H.264 over RTP and using "out-of-band" PPS and SPS (AKA global headers).

More practically, something like
ffmpeg -re -i file.mp4 -vcodec copy -an -f rtp rtp://127.0.0.1:10000
(with file.mp4 containing H.264 video) will not work.

I have a very elegant patch to address such issue, but the margin of this blog is too small to contain it... Seriously, I'll post it as soon as I learn how to attach patches to a blog entry.

2 comments:

  1. Looks like uploading a patch (or even a text document) in this blog is not too easy (I wonder if it is even possible...).
    If anyone is interested in the patch, just contact me.

    ReplyDelete
  2. Update: the patch has been included in ffmpeg... If you get ffmpeg from git, H.264 in RTP will work without problems (so, no need to post any patch... :)

    ReplyDelete