Pre-buffering 1024 b is not enough to open video via tcp

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
nokru
New Cone
New Cone
Posts: 6
Joined: 29 Mar 2009 20:11

Pre-buffering 1024 b is not enough to open video via tcp

Postby nokru » 02 Sep 2009 16:22

Pre-buffering 1024 bytes in VLC 1.0.* is not enough to open video via "tcp://". The same applies to "http://" when the server does not support resuming ( Range header). VLC 0.9.9 pre-buffers much more data and it seems to be enough to open many type of video streams(tested with avi,mp4,mkv,mpg).

VLC 1.0.* Debug Output:

Code: Select all

main debug: `http://127.0.0.1:8000' gives access `http' demux `' path `127.0.0.1:8000' main debug: creating demux: access='http' demux='' path='127.0.0.1:8000' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "http" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: creating access 'http' path='127.0.0.1:8000' main debug: looking for access module: 2 candidates qt4 debug: Updating the geometry qt4 debug: Updating the geometry access_http debug: http: server='127.0.0.1' port=8000 file='(null) main debug: net: connecting to 127.0.0.1 port 8000 main debug: connection: Resource temporarily unavailable main debug: connection succeeded (socket = 580) access_http debug: protocol 'HTTP' answer code 200 access_http debug: stream size=42184704,pos=0,remaining=42184704 access_http debug: this frame size=42184704 main debug: using access module "access_http" main debug: TIMER module_need() : 172.000 ms - Total 172.000 ms / 1 intvls (Avg 172.000 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 1000000 kbytes/s main debug: looking for stream_filter module: 2 candidates main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: creating demux: access='http' demux='' path='127.0.0.1:8000' main debug: looking for demux module: 50 candidates avi debug: found Chunk fourcc:46464952 (RIFF) size:42184262 pos:0 avi debug: found LIST chunk: 'AVI ' avi debug: <list 'AVI '> avi debug: found Chunk fourcc:5453494c (LIST) size:8830 pos:12 avi debug: found LIST chunk: 'hdrl' avi debug: <list 'hdrl'> avi debug: found Chunk fourcc:68697661 (avih) size:56 pos:24 avi debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 720x576 avi debug: found Chunk fourcc:5453494c (LIST) size:4244 pos:88 avi debug: found LIST chunk: 'strl' avi debug: <list 'strl'> avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:100 avi debug: strh: type:vids handler:0x58564944 samplesize:0 25.00fps avi debug: found Chunk fourcc:66727473 (strf) size:40 pos:164 avi debug: strf: video:DIVX 720x576 planes:1 24bpp avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 main debug: AStreamSeekStream: can't seek avi debug: </list 'strl'> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 main debug: AStreamSeekStream: can't seek avi debug: </list 'hdrl'> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 main debug: AStreamSeekStream: can't seek avi debug: </list 'AVI '> avi debug: * LIST-root size:42184704 pos:0 avi debug: + RIFF-AVI size:42184262 pos:0 avi debug: | + LIST-hdrl size:8830 pos:12 avi debug: | | + avih size:56 pos:24 avi debug: | | + LIST-strl size:4244 pos:88 avi debug: | | | + strh size:56 pos:100 avi debug: | | | + strf size:40 pos:164 avi debug: | | | + JUNK size:4120 pos:212 avi debug: | | + JUNK size:4120 pos:212 avi debug: | + JUNK size:4120 pos:212 avi error: avi module discarded (invalid file)
..... Fails to Open Video Stream (debug output for tcp://127.0.0.1:8000 is the same)

VLC 0.9.9 Debug Output:

Code: Select all

main debug: `http://127.0.0.1:8000' gives access `http' demux `' path `127.0.0.1:8000' main debug: creating demux: access='http' demux='' path='127.0.0.1:8000' main debug: looking for access_demux module: 0 candidates main warning: no access_demux module matched "http" main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: creating access 'http' path='127.0.0.1:8000' main debug: looking for access module: 2 candidates access_http debug: http: server='127.0.0.1' port=8000 file='(null) main debug: net: connecting to 127.0.0.1 port 8000 main debug: connection: Resource temporarily unavailable main debug: connection succeeded (socket = 5428) access_http debug: protocol 'HTTP' answer code 200 access_http debug: this frame size=42184704 main debug: using access module "access_http" main debug: TIMER module_Need() : 13.000 ms - Total 13.000 ms / 1 intvls (Avg 13.000 ms) qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 2 main debug: Using AStream*Stream main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1409024 bytes in 0s - 125079 kbytes/s main debug: creating demux: access='http' demux='' path='127.0.0.1:8000' main debug: looking for demux module: 52 candidates avi debug: found Chunk fourcc:46464952 (RIFF) size:42184262 pos:0 avi debug: found LIST chunk: 'AVI ' avi debug: <list 'AVI '> avi debug: found Chunk fourcc:5453494c (LIST) size:8830 pos:12 avi debug: found LIST chunk: 'hdrl' avi debug: <list 'hdrl'> avi debug: found Chunk fourcc:68697661 (avih) size:56 pos:24 avi debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 720x576 avi debug: found Chunk fourcc:5453494c (LIST) size:4244 pos:88 avi debug: found LIST chunk: 'strl' avi debug: <list 'strl'> avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:100 avi debug: strh: type:vids handler:0x58564944 samplesize:0 25.00fps avi debug: found Chunk fourcc:66727473 (strf) size:40 pos:164 avi debug: strf: video:DIVX 720x576 planes:1 24bpp avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 avi debug: </list 'strl'> avi debug: found Chunk fourcc:5453494c (LIST) size:4234 pos:4340 avi debug: found LIST chunk: 'strl' avi debug: <list 'strl'> avi debug: found Chunk fourcc:68727473 (strh) size:56 pos:4352 avi debug: strh: type:auds handler:0x00000001 samplesize:1 16000.00fps avi debug: found Chunk fourcc:66727473 (strf) size:30 pos:4416 avi debug: strf: audio:0x0055 channels:2 48000Hz 0bits/sample 125kb/s avi debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:4454 avi debug: </list 'strl'> avi debug: found Chunk fourcc:5453494c (LIST) size:260 pos:8582 avi debug: found LIST chunk: 'odml' avi debug: <list 'odml'> avi debug: found Chunk fourcc:686c6d64 (dmlh) size:248 pos:8594 avi warning: unknown chunk (not loaded) avi debug: </list 'odml'> avi debug: </list 'hdrl'> avi debug: found Chunk fourcc:4b4e554a (JUNK) size:1382 pos:8850 avi debug: found Chunk fourcc:5453494c (LIST) size:41973550 pos:10240 avi debug: skipping movi chunk avi debug: </list 'AVI '> avi debug: * LIST-root size:42184704 pos:0 avi debug: + RIFF-AVI size:42184262 pos:0 avi debug: | + LIST-hdrl size:8830 pos:12 avi debug: | | + avih size:56 pos:24 avi debug: | | + LIST-strl size:4244 pos:88 avi debug: | | | + strh size:56 pos:100 avi debug: | | | + strf size:40 pos:164 avi debug: | | | + JUNK size:4120 pos:212 avi debug: | | + LIST-strl size:4234 pos:4340 avi debug: | | | + strh size:56 pos:4352 avi debug: | | | + strf size:30 pos:4416 avi debug: | | | + JUNK size:4120 pos:4454 avi debug: | | + LIST-odml size:260 pos:8582 avi debug: | | | + dmlh size:248 pos:8594 avi debug: | + JUNK size:1382 pos:8850 avi debug: | + LIST-movi size:41973550 pos:10240 avi debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED avi debug: stream[0] rate:25 scale:1 samplesize:0 avi debug: stream[0] video(DIVX) 720x576 24bpp 25.000000fps
... Opens Video successfully (debug output for tcp://127.0.0.1:8000 is the same)


"tcp-caching" or "http-caching" does not have any impact on how much data is pre-buffered.

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 90 guests