[vlc-devel] Re: h264 streaming using rtp/rtsp

Hussain conundrums at gmail.com
Tue Dec 14 13:07:16 CET 2004

On Tue, 7 Dec 2004 14:02:47 +0100, Sigmund Augdal <sigmunau at stud.ntnu.no> wrote:
> On Tue, Dec 07, 2004 at 01:29:56PM +0100, Hussain wrote:
> > Hello.
> >
> > I would like to stream h.264 encoded video content using rtp/rtsp from
> > the Darwin server, and would like to play it back using VLC. My
> > questions are
> >
> > 1. In VLC, do I need to amend the livedotcom.cpp code , (found in
> > modules/demux)  only, or are there other codes I would need to amend
> > as well? As the SVN repository is down, I have not been able to get
> > hold of the latest VLC codes, and the ones I currently have are about
> > a 2 months old, so I have not been able to go through the latest
> > codes. Thus am not sure what provisions have already been made to
> > stream h264 encoded video content.
> you probably only need a few lines of change to vlc code in livedotcom.cpp.
> Just a mapping from the live.com codec name for h264 to a vlc fourcc.
> >
> Sigmund
Hello, I created a H264VideoRTPSource.cpp, and was able to
successfully compile it with the live.com code. I assumed  that it was
successfully compiles, as I was able to see the object files, and I
had no errors. Then I compiled the VLC code with the newly compiled
live.com code. Upon trying to play back the stream i get the following
given below:

o=StreamingServer 3312013312 1101731661000 IN IP4
c=IN IP4
t=0 0
a=range:npt=0-   5.20000
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=674d00;
sprop-parameter-sets=Z00AHpZSBYmI,aOuOIA==; packetization-mode=1

[00000400] livedotcom demuxer warning: RTP subsession 'video/H264'
failed(RTP payload format unknown or not supported)
[00000400] livedotcom demuxer error: PLAY failed No RTSP session is
currently in progress

[00000400] main demuxer warning: no access_demux module matching
"rtsp" could be loaded
[00000399] main input debug: access2_New: access='rtsp'
[00000401] main access debug: looking for access2 module
[00000401] main access debug: probing 4 candidates

Also I think I did map the code properly by adding the following lines
in the livedotcom code, in the demuxOpen section.

 else if( !strcmp( sub->codecName(), "H264" ) )
		tk->fmt.i_codec = VLC_FOURCC( 'H', '2', '6', '4' );

Is there any other place I would need to make the changes, or is it
more likely that I have not integrated my H264VideoRTPSource class in
the live media code?


This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html

More information about the vlc-devel mailing list