[Live-devel] improvements to h264VideoFilesink - making it playable by VLC & quicktime
aviad rozenhek
aviadr1 at gmail.com
Tue Aug 7 04:51:21 PDT 2007
Hi,
when I used openrtsp to stream h264 (from wirecast a.k.a. darwin 555),
it created a "raw" h264 file. sadly, however, this file would not play
in VLC or quicktime.
it appears that to fix the issue, It didn't require much more work,
basically what was missing was:
1) parse the SDP sprop parameters into NALs (using code already
available in H264videoRTPSource.hh)
2) analyze the arriving h264 packets, to understand which packets are
IDR frames.
3) before every IDR frame, output the SPS/PPS NALs that were decoded in step #1
now I am able to stream to raw 264 file perfectly!
I would be happy to supply the modified source to anyone if there is
any interest.
I used the open source project h264bitstream
https://sourceforge.net/projects/h264bitstream/ to accomplish step #2
h264bitstream is very light weight (only 2 .c files and headers), and
it is LGPL just like live555.
Aviad Rozenhek
More information about the live-devel
mailing list