[Live-devel] Adding support for DV video

Ben Hutchings ben at decadent.org.uk
Sat Apr 25 20:58:28 PDT 2009


I started attempting to add support to liveMedia for DV over RTSP, based
on RFC 3189, some time last year.  I recently picked up that work and
finished it off (more or less).  There are probably bugs in this code as
it's my first attempt at extending liveMedia, but it seems to work.

I rebuilt VLC using the new library and was able to play a DV stream
received over RTSP, though part of the video is missing which suggests
that it is not allocating a large enough frame buffer.  If I save the
stream using openRTSP with an appropriately large buffer size, I get a
valid DV file.

The changes are divided into:
- Add BufferedPacket::rtpTimestamp() method required for DV support
- Add DV file source, RTP sink and source
- Add test program for DV video

According to the RFC, each packet must contain a whole number of DV
blocks (i.e. the RTP payload size must be a multiple of 80) but it
doesn't appear to be possible to control fragment sizes in this way in
liveMedia.  I am currently using the kluge of setting the maximum packet
size to 1372 = 12 + 17 * 80, but it would be preferable to have a
virtual function in MultiFramedRTPSink that could be used to override
the default fragmentation behaviour.

Patches are attached.

Ben.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-BufferedPacket-rtpTimestamp-method-required-f.patch
Type: application/mbox
Size: 872 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090426/21e488f2/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-support-for-DV-IEC-61384.patch
Type: application/mbox
Size: 40308 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090426/21e488f2/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-test-program-for-DV-video.patch
Type: application/mbox
Size: 6946 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090426/21e488f2/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090426/21e488f2/attachment-0007.bin>


More information about the live-devel mailing list