need a bit help of RTP/H264

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ylwcjf
New Cone
New Cone
Posts: 6
Joined: 08 Mar 2007 04:41
Location: suzhou china
Contact:

need a bit help of RTP/H264

Postby ylwcjf » 08 Mar 2007 06:38

I am trying to get VLC to show an RTP video stream I am sending to it via UDP.
I can however not get VCL to figure out what I am sending it, so I need a bit of help to make it work.
The video stream is H264, and I have constructed a SDP file that looks like the followings:

v=0
m=video 1100 RTP/AVP 96
b=AS:247
a=rtpmap:96 H264/90000
a=control:trackID=1
a=mpeg4-esid:201

Before sending data, I start VLC with SDP file. Then I send RTP data, VLC didn't show what I am sending it,
VLC show the information as following:

/**********************************************************/
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4132 (input) created at priority 1 (input/input.c:265)
main debug: drive letter E: found in source
main debug: `E:\file264.sdp' gives access `' demux `' path `E:\file264.sdp'
main debug: creating demux: access='' demux='' path='E:\file264.sdp'
main debug: looking for access_demux module: 1 candidate
main debug: creating access '' path='E:\file264.sdp'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: E:\file264.cue
vcd debug: could not find .cue file
access_file debug: opening file `E:\file264.sdp'
main debug: using access2 module "access_file"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: creating demux: access='' demux='' path='E:\file264.sdp'
main debug: looking for demux2 module: 45 candidates
live555 debug: RTP subsession 'video/H264'
main debug: selecting program id=0
main debug: using demux2 module "live555"
main debug: looking for a subtitle file in E:\
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: ffmpeg codec (h264) started
main debug: using decoder module "ffmpeg"
main debug: looking for packetizer module: 17 candidates
main debug: using packetizer module "packetizer_h264"
main debug: thread 4556 (decoder) created at priority 0 (input/decoder.c:159)
main debug: `E:\file264.sdp' successfully opened
packetizer_h264 debug: found NAL_SPS
packetizer_h264 debug: found NAL_PPS

/*******************************************************/
At first, I doubt the RTP data maybe wrong,but when I save the payload of RTP,I can use VLC playing it;
Then, I doubt the SDP file maybe wrong, but when I send the the RTP data from different h264 source, the VLC can play.
So what's wrong,when I send the first source RTP data?
Can anyone help me, or give me some advice?
Thanks a lot!
I'm a freshman,need your help, Thanks a lot!

Arateris
Blank Cone
Blank Cone
Posts: 12
Joined: 30 Jul 2007 11:51

Re: need a bit help of RTP/H264

Postby Arateris » 30 Jul 2007 12:03

hy,
I just read your subject and I am in the same situation.
I got a h264 file, with RTP headers (coded with JM) and when I try to get it with VLC via UDP streaming ( using Darwin ) I got the same debug messages ( SDP file correctly opened, NAL_PPS found) and then, nothing... just the time line is increasing, but no picture, no more debug messages.
Using the same configurations, with a h264 file, also with RTP, but coded with another coder, VLC is able to read the stream.
VLC is able the read the offline file (without RTP) too.

I was also thinking about a SDP-configuration problem, but I don't figure out what is the problem. I thought it could be the SPS-PPS configuration..?

Did you solve your problem ?

ylwcjf
New Cone
New Cone
Posts: 6
Joined: 08 Mar 2007 04:41
Location: suzhou china
Contact:

Re: need a bit help of RTP/H264

Postby ylwcjf » 31 Jul 2007 03:19

I think you may try to use the Vession 0.8.5 of VLC, that's OK
I'm a freshman,need your help, Thanks a lot!

Arateris
Blank Cone
Blank Cone
Posts: 12
Joined: 30 Jul 2007 11:51

Re: need a bit help of RTP/H264

Postby Arateris » 31 Jul 2007 14:45

I'm using VLC 0.8.6c..it doesn't work.

Arateris
Blank Cone
Blank Cone
Posts: 12
Joined: 30 Jul 2007 11:51

Re: need a bit help of RTP/H264

Postby Arateris » 03 Aug 2007 09:35

I solve my problem.. I don't know if it's a global answer, but if anyone else got the same problem, just try to change the encoder configuration.

It's kind of wirld because with the old configuration, VLC was able to read the offline file (mode AnnexB, not RTP) but the RTP mode failed to stream.

The fact is : my video compression configuration was made so that there was only the first picture coded in I, the others were P or B. By insering I or IBR regullarly, I can now stream my file...


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 30 guests