need a bit help of RTP/H264
Posted: 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 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!