[vlc] which SDP for this file?
Kim Schulz
kim at schulz.dk
Mon Mar 12 14:52:49 CET 2007
Hi,
I have my RTSP server up and running, but there seem to be a problem with vlc
not understanding the video I am streaming to it.
The video is from a mobile phone and the manufacturer says that it is mpeg-4 visual simple
profile, so my SDP looks like this:
v=0
o=ABC 2890844526 2890842807 IN IP4 10.123.10.30
s=ABC DEMO
t=0 0
c=IN IP4 10.123.10.30
m=video 8888 RTP/AVP 96
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1
when I stream, then vlc gives me to following (after end rtsp setup):
main debug: adding playlist item `rtsp://10.123.10.30:9999' ( rtsp://10.123.10.30:9999 )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4660 (input) created at priority 1 (input/input.c:265)
main debug: `rtsp://10.123.10.30:9999' gives access `rtsp' demux `' path `10.123.10.30:9999'
main debug: creating demux: access='rtsp' demux='' path='10.123.10.30:9999'
main debug: looking for access_demux module: 1 candidate
live555 debug: RTP subsession 'video/MP4V-ES'
main debug: selecting program id=0
main debug: using access_demux module "live555"
main debug: looking for a subtitle file in S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: thread 5512 (decoder) created at priority 0 (input/decoder.c:159)
main debug: `rtsp://10.123.10.30:9999' successfully opened
ffmpeg warning: hmm, seems the headers are not complete, trying to guess time_increment_bits
(mpeg4 at 00C349B0)
ffmpeg warning: my guess is 5 bits ;)
(mpeg4 at 00C349B0)
ffmpeg warning: looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
(mpeg4 at 00C349B0)
ffmpeg warning: header damaged
(mpeg4 at 00C349B0)
ffmpeg warning: cannot decode one frame (2248 bytes)
ffmpeg warning: header damaged
(mpeg4 at 00C349B0)
ffmpeg warning: cannot decode one frame (1232 bytes)
ffmpeg warning: header damaged
etc
When I however open the video as a file, then vlc plays it fine. the Debug window of
vlc shows the following: [1]
According to RFC 3016, the mpeg-4 visual is sent with RTP header only and then raw frames as
payload (aka. no extra header info). Why does vlc not use my SDP when I have sent it to the player?
shouldn't it already know what type of data it is getting hence - dont need any extra header info
as supposed.
--
Kim Schulz
########################################################################################
[1]
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 5392 (input) created at priority 1 (input/input.c:265)
main debug: drive letter S: found in source
main debug: `S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov' gives access `' demux `' path `S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov'
main debug: creating demux: access='' demux='' path='S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov'
main debug: looking for access_demux module: 1 candidate
main debug: creating access '' path='S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov'
main debug: looking for access2 module: 5 candidates
vcd debug: trying .cue file: S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.cue
vcd debug: could not find .cue file
access_file debug: opening file `S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov'
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='S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov'
main debug: looking for demux2 module: 45 candidates
mp4 debug: found Box: ftyp size 20
mp4 debug: found Box: mdat size 306236
mp4 debug: skip box: "mdat"
mp4 debug: found Box: moov size 2956
mp4 debug: found Box: mvhd size 108
mp4 debug: read box: "mvhd" creation 731447d-48h:00m:00s modification 731447d-48h:00m:00s time scale 1000 duration 694977d-48h:00m:00s rate 1.000000 volume 1.000000 next track id 3
mp4 debug: found Box: trak size 806
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 731447d-48h:00m:00s modification 731447d-48h:00m:00s duration 694977d-53h:00m:00s track ID 1 layer 0 volume 1.000000 width 0.000000 height 0.000000
mp4 debug: found Box: mdia size 706
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 731447d-48h:00m:00s modification 731447d-48h:00m:00s time scale 8000 duration 694978d-28h:00m:00s language und
mp4 debug: found Box: hdlr size 33
mp4 debug: read box: "hdlr" handler type soun name
mp4 debug: found Box: minf size 633
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: out of bound child
mp4 debug: read box: "dref" entry-count 1
mp4 debug: out of bound child
mp4 debug: found Box: stbl size 573
mp4 debug: found Box: stts size 24
mp4 debug: read box: "stts" entry-count 1
mp4 debug: found Box: stsd size 69
mp4 debug: found Box: samr size 53
mp4 debug: read box: "soun" mp4 or qt1/2 (rest=17)
mp4 debug: found Box: damr size 17
mp4 warning: unknown box type damr (uncompletetly loaded)
mp4 debug: out of bound child
mp4 debug: read box: "soun" in stsd channel 1 sample size 16 sample rate 8000.000000
mp4 debug: out of bound child
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stsz size 380
mp4 debug: read box: "stsz" sample-size 0 sample-count 90
mp4 debug: found Box: stsc size 40
mp4 debug: read box: "stsc" entry-count 2
mp4 debug: found Box: stco size 52
mp4 debug: read box: "co64" entry-count 9
mp4 debug: out of bound child
mp4 debug: found Box: smhd size 16
mp4 debug: read box: "smhd" balance 0.000000
mp4 debug: out of bound child
mp4 debug: out of bound child
mp4 debug: out of bound child
mp4 debug: found Box: trak size 2034
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 731447d-48h:00m:00s modification 731447d-48h:00m:00s duration 694977d-52h:58m:20s track ID 2 layer 0 volume 1.000000 width 320.000000 height 240.000000
mp4 debug: found Box: mdia size 1934
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 731447d-48h:00m:00s modification 731447d-48h:00m:00s time scale 1000 duration 694977d-52h:58m:20s language und
mp4 debug: found Box: hdlr size 33
mp4 debug: read box: "hdlr" handler type vide name
mp4 debug: found Box: minf size 1861
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: out of bound child
mp4 debug: read box: "dref" entry-count 1
mp4 debug: out of bound child
mp4 debug: found Box: stbl size 1797
mp4 debug: found Box: stts size 416
mp4 debug: read box: "stts" entry-count 50
mp4 debug: found Box: stsd size 169
mp4 debug: found Box: mp4v size 153
mp4 debug: found Box: esds size 67
mp4 debug: found esds MPEG4ESDescr (53Bytes)
mp4 debug: found esds MP4DecConfigDescr (45Bytes)
mp4 debug: found esds MP4DecSpecificDescr (30Bytes)
mp4 debug: out of bound child
mp4 debug: read box: "vide" in stsd 176x144 depth 24
mp4 debug: out of bound child
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stsz size 632
mp4 debug: read box: "stsz" sample-size 0 sample-count 153
mp4 debug: found Box: stsc size 352
mp4 debug: read box: "stsc" entry-count 28
mp4 debug: found Box: stco size 148
mp4 debug: read box: "co64" entry-count 33
mp4 debug: found Box: stss size 72
mp4 debug: read box: "stss" entry-count 14
mp4 debug: out of bound child
mp4 debug: found Box: vmhd size 20
mp4 debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
mp4 debug: out of bound child
mp4 debug: out of bound child
mp4 debug: out of bound child
mp4 debug: out of bound child
mp4 debug: found Box: skip size 30
mp4 debug: skip box: "skip"
mp4 debug: out of bound child
mp4 debug: dumping root Box "root"
mp4 debug: | + ftyp size 20
mp4 debug: | + mdat size 306236
mp4 debug: | + moov size 2956
mp4 debug: | | + mvhd size 108
mp4 debug: | | + trak size 806
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 706
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 33
mp4 debug: | | | | + minf size 633
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 573
mp4 debug: | | | | | | + stts size 24
mp4 debug: | | | | | | + stsd size 69
mp4 debug: | | | | | | | + samr size 53
mp4 debug: | | | | | | | | + damr size 17
mp4 debug: | | | | | | + stsz size 380
mp4 debug: | | | | | | + stsc size 40
mp4 debug: | | | | | | + stco size 52
mp4 debug: | | | | | + smhd size 16
mp4 debug: | | + trak size 2034
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + mdia size 1934
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 33
mp4 debug: | | | | + minf size 1861
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 1797
mp4 debug: | | | | | | + stts size 416
mp4 debug: | | | | | | + stsd size 169
mp4 debug: | | | | | | | + mp4v size 153
mp4 debug: | | | | | | | | + esds size 67
mp4 debug: | | | | | | + stsz size 632
mp4 debug: | | | | | | + stsc size 352
mp4 debug: | | | | | | + stco size 148
mp4 debug: | | | | | | + stss size 72
mp4 debug: | | | | | + vmhd size 20
mp4 debug: | + skip size 30
mp4 debug: unrecognized major file specification (3gp4).
mp4 debug: find 2 tracks
mp4 debug: track[Id 0x1] read 9 chunk
mp4 debug: track[Id 0x1] read 90 samples length:18s
main debug: selecting program id=0
mp4 debug: adding track[Id 0x1] audio (enable) language undef
mp4 debug: track[Id 0x2] read 33 chunk
mp4 debug: track[Id 0x2] read 153 samples length:17s
mp4 debug: adding track[Id 0x2] video (enable) language undef
main debug: using demux2 module "mp4"
mp4 warning: DEMUX_GET_FPS unimplemented !!
main debug: looking for a subtitle file in S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: codec not found (AMR narrow band)
quicktime debug: standard init done
quicktime debug: WantedBufferSize=16000 InputBufferSize=1600 OutputBufferSize=16004 FramesToGet=50
quicktime debug: frame size 32 -> 320
main debug: using decoder module "quicktime"
main debug: thread 4664 (decoder) created at priority 2 (input/decoder.c:159)
main debug: looking for decoder module: 27 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: thread 5496 (decoder) created at priority 0 (input/decoder.c:159)
main debug: `S:\p4work\bchs\devel\2006\q4\vdpdemo-ng\applications\vdp\video.mov' successfully opened
mp4 debug: track[Id 0x1] does not provide Sync Sample Box (stss)
mp4 debug: track[Id 0x2] using Sync Sample Box (stss)
mp4 debug: stts gives 0 --> 0 (sample number)
main debug: no usable vout present, spawning one
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
main debug: window size: 192x144
main debug: looking for video output module: 6 candidates
vout_directx debug: creating DirectXEventThread
main debug: waiting for thread completion
vout_directx debug: DirectXCreateWindow
vout_directx debug: created video sub-window
main debug: thread 5548 (DirectX Events Thread) created at priority 0 (directx.c:278)
vout_directx debug: DirectXEventThread running
vout_directx debug: DirectXInitDDraw
vout_directx debug: directx-device:
vout_directx debug: DirectXEnumCallback: Primary Display Driver, display
vout_directx debug: DirectXEnumCallback: ATI MOBILITY RADEON 9600 Series, \\.\DISPLAY1
vout_directx debug: DirectXEnumCallback: ATI MOBILITY RADEON 9600 Series, \\.\DISPLAY2
vout_directx debug: selecting ATI MOBILITY RADEON 9600 Series, \\.\DISPLAY2
vout_directx debug: screen dimensions (-1400x0,0x1050)
vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 can_deinterlace_overlay=1 colorkey=1 stretch=1 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
vout_directx debug: disabling screen saver
main debug: using video output module "vout_directx"
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: YUV overlay created successfully
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 176x144 (0,0,176x144), chroma I420, ar 4:3, sar 12:11
main debug: picture user 176x144 (0,0,176x144), chroma I420, ar 4:3, sar 12:11
main debug: picture out 176x144 (0,0,176x144), chroma I420, ar 4:3, sar 12:11
main debug: direct render, mapping render pictures 0-6 to system pictures 1-7
main debug: waiting for thread completion
main debug: thread 5088 (video output) created at priority 1 (video_output/video_output.c:421)
main warning: late picture skipped (204001)
main warning: late picture skipped (132240)
main debug: EOF reached
main debug: closing input
mp4 debug: freeing all memory
main debug: removing module "mp4"
main debug: removing module "access_file"
quicktime debug: SoundConverterEndConversion => 0
quicktime debug: SoundConverterClose => 0
quicktime debug: FreeLibrary ok.
main debug: removing module "quicktime"
main debug: thread times: real 0m17.831094s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 4664 joined (input/decoder.c:191)
main debug: killing decoder fourcc `samr', 0 PES in FIFO
ffmpeg debug: ffmpeg codec (MPEG-4 Video) stopped
main debug: removing module "ffmpeg"
main debug: thread times: real 0m17.821071s, kernel 0m0.010014s, user 0m0.010014s
main debug: thread 5496 joined (input/decoder.c:191)
main debug: killing decoder fourcc `mp4v', 0 PES in FIFO
main debug: thread times: real 0m17.921302s, kernel 0m0.010014s, user 0m0.020028s
main debug: thread 5392 joined (input/input.c:412)
main warning: refcount is 1, delaying before deletion (id=409,type=-7)
main warning: unable to find parent!
main: nothing to play
main debug: garbage collector destroys 1 vout
vout_directx debug: DirectXCloseSurface
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: CloseVideo
vout_directx debug: DirectXEventThread terminating
vout_directx debug: DirectXCloseWindow
vout_directx debug: WinProc WM_DESTROY
main debug: thread times: real 0m17.760933s, kernel 0m0.020028s, user 0m0.000000s
main debug: thread 5548 joined (directx.c:509)
main debug: removing module "vout_directx"
main debug: thread times: real 0m17.590540s, kernel 0m0.040057s, user 0m0.000000s
main debug: thread 5088 joined (video_output/video_output.c:461)
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list