[vlc-devel] Re: problems receiving stream with huge MTU

Bart Kerver Bart.Kerver at surfnet.nl
Wed Jun 18 18:30:26 CEST 2003


VLC-Devel / Gildas,

On Monday 26 May 2003 14:07, Bart Kerver wrote:
 >> While trying to receive a multicast MPEG2 stream with (the latest)
 >> VLC - the application crashes, there is also a lot of garbage being 
 > >> reported. Therefore I tried the "Buggy PSI" option and the
 >> "compatibel with als VLS" (though stream is casted from IBM
 >> Videocharger).
 >>
 >> vlc udp:@233.81.233.4:21000 --mtu 16384
 >>

 > Can you dump the received file to disk with vlc udp/dump:@blabla
 > blabla ?
 > Then try to play the resulting file with vlc ?
 >
 > I'm just thinking that we might have another case of streams where the
 > MPEG-TS packets are not aligned on the beginning of the UDP packets.
 >
 > --
 > Gildas

 > Forgot to say that you need to force the TS demuxer when trying to
 > play the local file. "vlc /ts:yourfilename".


This actually works - so that might be it, hope this helps to improve 
playback from huge MTU and or other VideoServers (like IBM VC)!

regards,
Bart


So what I did:
vlc udp/dump:@233.81.233.4:21000 --mtu 16384
vlc /ts:stream-demux.dump

Now it is displayed correctly - log from playback attached:

-----------
main: playlist item `/ts:stream-demux.dump'
main debug: waiting for thread completion
main debug: access `', demux `ts', name `stream-demux.dump'
main debug: looking for access module
main debug: probing 10 candidates
dvdplay debug: plugin discarded (not a valid source)
dvdplay debug: plugin discarded (not a valid source)
dvdread warning: dvdread module discarded (not a valid source)
dvdread warning: dvdread module discarded (not a valid source)
vcd debug: trying .cue file: stream-demux.cue
vcd warning: could not open stream-demux.dump
cdda debug: trying .cue file: stream-demux.cue
cdda warning: could not open stream-demux.dump
access_file debug: opening file `stream-demux.dump'
main debug: using access module "access_file"
main debug: looking for demux module
main debug: probing 16 candidates
ts error: this does not look like a TS stream, continuing
main debug: looking for mpeg-system module
main debug: probing 1 candidate
main debug: using mpeg-system module "mpeg_system"
main debug: using demux module "ts"
mpeg_system warning: garbage at input (48)
mpeg_system warning: first packet for PID 0 received by TS demux
mpeg_system warning: first packet for PID 64 received by TS demux
main debug: ES 40 has unknown type
main debug: selecting ES 66
main debug: selecting ES 0x66
main debug: looking for decoder module
main debug: probing 15 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 2440 (input) created at priority 15 
(src/input/input.c:157)
main debug: thread 2188 (decoder) created at priority 0 
(src/input/input_dec.c:113)
main debug: selecting ES 67
main debug: selecting ES 0x67
main debug: looking for decoder module
main debug: probing 15 candidates
main debug: using decoder module "mpeg_audio"
main debug: thread 2816 (decoder) created at priority 2 
(src/input/input_dec.c:113)
mpeg_system warning: first packet for PID 102 received by TS demux
mpeg_system warning: first packet for PID 103 received by TS demux
mpeg_audio warning: no sync - skipping
main debug: looking for audio output module
main debug: probing 4 candidates
aout_directx debug: OpenAudio
main debug: no usable vout present, spawning one
aout_directx debug: device supports 2 channels
aout_directx debug: device supports 1 channel
aout_directx debug: creating DirectSoundThread
main debug: thread 2788 (DirectSound Notification Thread) created at 
priority 15 (modules/audio_output/directx.c:351)
aout_directx debug: DirectSoundThread ready
main debug: using audio output module "aout_directx"
main debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: no need for any filter
main debug: looking for audio mixer module
main debug: probing 3 candidates
main debug: using audio mixer module "trivial_mixer"
main debug: looking for audio mixer module
main debug: probing 3 candidates
main debug: using audio mixer module "trivial_mixer"
main debug: input 'mpga' 48000 Hz Stereo frame=1152 samples/1161 bytes
main debug: filter(s) 'mpga'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module
main debug: probing 21 candidates
main debug: using audio filter module "mpgatofixed32"
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module
main debug: probing 21 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: found a filter for the whole conversion
main debug: looking for video output module
main debug: probing 4 candidates
vout_directx debug: creating DirectXEventThread
main debug: waiting for thread completion
vout_directx debug: DirectXCreateWindow
vout_directx debug: background color: 10
vout_directx debug: screen dimensions 1280x1024 colour depth 32
main debug: thread 2364 (DirectX Events Thread) created at priority 0 
(modules/video_output/directx/directx.c:191)
vout_directx debug: DirectXEventThread running
vout_directx debug: DirectXInitDDraw
vout_directx debug: DirectDraw Capabilities: overlay=1 yuvoverlay=1 
can_clip_overlay=0 colorkey=1 stretch=1 bltfourcc=1
vout_directx debug: End DirectXInitDDraw
vout_directx debug: DirectXCreateDisplay
vout_directx debug: DirectXCreateClipper
main debug: using video output module "vout_directx"
vout_directx debug: NewPictureVec overlay:yes chroma:YV12
vout_directx debug: End NewPictureVec (failed)
vout_directx debug: NewPictureVec overlay:yes chroma:YUY2
vout_directx debug: YUV overlay created successfully
vout_directx debug: End NewPictureVec (succeeded)
main debug: got 1 direct buffer(s)
main debug: picture in 720x576, chroma 0x32315659 (YV12), aspect ratio 4:3
main debug: picture out 720x576, chroma 0x32595559 (YUY2), aspect ratio 4:3
main debug: looking for chroma module
main debug: probing 10 candidates
main debug: using chroma module "i420_yuy2_mmx"
main debug: indirect render, mapping render pictures 0-7 to system 
pictures 1-8
main debug: waiting for thread completion
main debug: thread 2844 (video output) created at priority 1 
(src/video_output/video_output.c:429)
libmpeg2 debug: 720x576, aspect 576000, 25.000 fps
main warning: vout synchro warning: pts != current_date (115982)
main debug: stream periodicity changed from B[1] to B[2]
main warning: late picture skipped (100938904929)
main debug: stream periodicity changed from P[5] to P[3]
main debug: decoded 106/108 pictures
main: EOF reached
main debug: 163 loops
main debug: freeing info structures...
main debug: dumping stream ID 0x0 [OK:0/D:3813]
main debug: seekable stream, position: 6094664/6094848 (-:--:--/-:--:--)
main debug: dumping program 0x1, version 0 (partial)
main debug: ES 0x40, stream 0xcf, fourcc `    ', not selected [OK:8/ERR:0]
main debug: ES 0x66, stream 0xe0, fourcc `mpgv', selected [OK:26665/ERR:0]
main debug: ES 0x67, stream 0xc0, fourcc `mpga', selected [OK:1925/ERR:0]
main debug: unselecting ES 0x66
main debug: thread 2188 joined (src/input/input_dec.c:152)
main debug: killing decoder for 0x66, fourcc `mpgv', 3 PES in FIFO
main debug: unlocking module "libmpeg2"
main debug: unselecting ES 0x67
main debug: unlocking module "mpgatofixed32"
main debug: unlocking module "bandlimited_resampler"
aout_directx debug: CloseAudio
aout_directx debug: DirectSoundThread exiting
main debug: thread 2788 joined (modules/audio_output/directx.c:548)
main debug: unlocking module "aout_directx"
main debug: unlocking module "trivial_mixer"
main debug: thread 2816 joined (src/input/input_dec.c:152)
main debug: killing decoder for 0x67, fourcc `mpga', 9 PES in FIFO
main debug: unlocking module "mpeg_audio"
main debug: no more selected ES
main debug: unlocking module "mpeg_system"
main debug: unlocking module "ts"
access_file: closing `/ts://stream-demux.dump'
main debug: unlocking module "access_file"
main debug: pes: 84 packets
main debug: data: 925 packets
main debug: buffers: 13 packets
main debug: unlocking module "i420_yuy2_mmx"
vout_directx debug: DirectXCloseSurface
vout_directx debug: CloseVideo
vout_directx debug: DirectXCloseDisplay
vout_directx debug: DirectXCloseDisplay clipper
vout_directx debug: DirectXCloseDisplay display
vout_directx debug: DirectXCloseDDraw
vout_directx debug: DirectXEventThread terminating
vout_directx debug: DirectXCloseWindow
vout_directx debug: WinProc WM_DESTROY
main debug: thread 2364 joined (modules/video_output/directx/directx.c:366)
main debug: unlocking module "vout_directx"
main debug: thread 2844 joined (src/video_output/video_output.c:452)
main debug: thread 2440 joined (src/input/input.c:191)




-- 
Bart Kerver

SURFnet bv - dep. Innovation Management
phone : +31 (0)30 2 305 373
fax   : +31 (0)30 2 305 329
web   : http://www.surfnet.nl

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list