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.