Help Needed - trying to stream .M3U - Bug?
Posted: 17 Sep 2009 19:47
by noknok
Ok, I have run into an issue whereby I am trying to stream a .M3U file over ASF.
The M3u containus 2 videos, in wmv format.
The command I am using:
Code: Select all
vlc -I dummy c:\test.m3u --sout-keep --loop :sout=#transcode{width=128,height=96,vcodec=WMV2,vb=300,fps=5,acodec=wma2,ab=48,channels=2,samplerate=22050}:std{access=mmsh,mux=asfh,dst=192.168.2.205:8082/stream.wmv}
Problem, is VLC just plays the two videos on my screen, says its opening httpd... but never does, just plays the two videos in a window on my screen.
VLC 1.0.1 Windows
Any help would be GREATLY appreciated
Shawn
Re: Help Needed - trying to stream .M3U - Bug?
Posted: 18 Sep 2009 16:57
by noknok
Here is the M3U:
Code: Select all
#EXTM3U
#EXTINF:0,SkatingBabies
C:\ffmpeg\SkatingBabies.wmv
#EXTINF:0,tbcopy
C:\ffmpeg\tbcopy.wmv
Here is debug out trying to play M3U:
It destroys the defined sout for mmsh??
Code: Select all
-- logger module started --
main debug: using interface module "logger"
main debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms)
main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151)
main debug: thread started
main debug: thread ended
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151)
main debug: thread started
main error: option syslog does not exist
main debug: adding item `shawn.m3u' ( c:\ffmpeg\shawn.m3u )
main debug: looking for interface module: 1 candidate
main debug: using interface module "globalhotkeys"
main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151)
main debug: thread started
main debug: thread ended
main debug: looking for interface module: 1 candidate
dummy: VLC media player - version 1.0.1 Goldeneye - (c) 1996-2009 the VideoLAN team
dummy:
Warning: if you can't access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I qt"
dummy: using the dummy interface module...
main debug: using interface module "dummy"
main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms)
main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151)
main debug: thread started
main debug: processing request item null node Playlist skip 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'shawn.m3u'
main debug: thread ended
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: thread started
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to mmsh
main debug: set config option: sout-standard-mux to asfh
main debug: set config option: sout-standard-dst to 192.168.2.205:8082/stream.wmv
stream_out_standard debug: creating `mmsh/asfh://192.168.2.205:8082/stream.wmv'
stream_out_standard debug: extension is wmv
stream_out_standard debug: extension -> mux=asf
stream_out_standard debug: using `mmsh/asfh://192.168.2.205:8082/stream.wmv'
main debug: looking for sout access module: 1 candidate
main: creating httpd
main debug: net: listening to 192.168.2.205 port 8082
main debug: using sout access module "access_output_http"
main debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms)
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
mux_asf debug: asf muxer opened
mux_asf debug: creating asf stream to be used with mmsh
mux_asf debug: Packet size 4096
mux_asf debug: meta data: title='', author='', copyright='', comment='', rating=''
main debug: using sout mux module "mux_asf"
main debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: muxer support adding stream at any time
main debug: muxer prefers to wait for all ES before starting to mux
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: TIMER module_need() : 19.000 ms - Total 19.000 ms / 1 intvls (Avg 19.000 ms)
main debug: set config option: sout-transcode-width to 128
main debug: set config option: sout-transcode-height to 96
main debug: set config option: sout-transcode-vcodec to WMV2
main debug: set config option: sout-transcode-vb to 300
main debug: set config option: sout-transcode-fps to 5
main debug: set config option: sout-transcode-acodec to wma2
main debug: set config option: sout-transcode-ab to 48
main debug: set config option: sout-transcode-channels to 2
main debug: set config option: sout-transcode-samplerate to 22050
stream_out_transcode debug: codec audio=wma2 22050Hz 2 channels 48Kb/s
stream_out_transcode debug: codec video=WMV2 128x96 scaling: 1.000000 300kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: TIMER module_need() : 31.000 ms - Total 31.000 ms / 1 intvls (Avg 31.000 ms)
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\Users\sml\AppData\Local\Temp'
main debug: `c:\ffmpeg\shawn.m3u' gives access `' demux `' path `c:\ffmpeg\shawn.m3u'
main debug: creating demux: access='' demux='' path='c:\ffmpeg\shawn.m3u'
main debug: looking for access_demux module: 3 candidates
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating access '' path='c:\ffmpeg\shawn.m3u'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: c:\ffmpeg\shawn.cue
vcd debug: could not find .cue file
access_file debug: opening file `c:\ffmpeg\shawn.m3u'
main debug: using access module "access_file"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: looking for stream_filter module: 2 candidates
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.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() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating demux: access='' demux='' path='c:\ffmpeg\shawn.m3u'
main debug: looking for demux module: 50 candidates
playlist debug: found valid M3U playlist
main debug: using demux module "playlist"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for a subtitle file in c:\ffmpeg\
main debug: starting in async mode
main debug: `c:\ffmpeg\shawn.m3u' successfully opened
main debug: deleting item `shawn.m3u'
main debug: Creating an input for 'SkatingBabies'
main debug: EOF reached
main debug: removing module "playlist"
main debug: finished input
main debug: removing module "stream_filter_record"
main debug: removing module "access_file"
main debug: thread ended
main debug: dead input
main debug: destroying useless sout
main debug: destroying chain... (name=transcode)
main debug: destroying chain... (name=std)
main debug: no fetch required for (null) (art currently (null))
mux_asf debug: Asf muxer closed
access_output_http warning: HTTP sout access cannot seek
main debug: removing module "mux_asf"
main debug: waitpipe: object killed
main debug: Creating an input for 'tbcopy'
main debug: HTTP host removed
main debug: no hosts left, stopping httpd
access_output_http debug: Close
main debug: removing module "access_output_http"
main debug: removing module "stream_out_standard"
main debug: destroying chain done
main debug: removing module "stream_out_transcode"
main debug: destroying chain done
main debug: thread times: real 0m0.048825s, kernel 0m0.000000s, user 0m0.000000s
main debug: no fetch required for (null) (art currently (null))
main debug: TIMER input launching for 'shawn.m3u' : 50.000 ms - Total 50.000 ms / 1 intvls (Avg 50.000 ms)
main debug: changing item without a request (current 0/1)
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index -1
main debug: using item 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'SkatingBabies'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\Users\sml\AppData\Local\Temp'
main debug: `C:\ffmpeg\SkatingBabies.wmv' gives access `' demux `' path `C:\ffmpeg\SkatingBabies.wmv'
main debug: creating demux: access='' demux='' path='C:\ffmpeg\SkatingBabies.wmv'
main debug: looking for access_demux module: 3 candidates
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access '' path='C:\ffmpeg\SkatingBabies.wmv'
main debug: looking for access module: 5 candidates
vcd debug: trying .cue file: C:\ffmpeg\SkatingBabies.cue
vcd debug: could not find .cue file
access_file debug: opening file `C:\ffmpeg\SkatingBabies.wmv'
main debug: using access module "access_file"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.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() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: creating demux: access='' demux='' path='C:\ffmpeg\SkatingBabies.wmv'
main debug: looking for demux module: 50 candidates
asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:549
asf debug: read "header object" subobj:5, reserved1:1, reserved2:2
asf debug: found object guid: 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104
asf debug: read "file properties object" file_id:0x0-0x0-0x0-0x0000000000000000 file_size:3121015 creation_date:116444736000000000 data_packets_count:975 play_duration:641990000 send_duration:610990000 preroll:3100 flags:2 min_data_packet_size:3200 max_data_packet_size:3200 max_bitrate:264000
asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:46
asf debug: read "header extension object" reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6 header_extension_size:0
asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133
asf debug: read "stream Properties object" stream_type:0xbc19efc0-0x5b4d-0x11cf-0xa8fd00805f5c442b error_correction_type:0x20fb5700-0x5b55-0x11cf-0xa8fd00805f5c442b time_offset:0 type_specific_data_length:55 error_correction_data_length:0 flags:0x1 stream_number:1
asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114
asf debug: read "stream Properties object" stream_type:0xf8699e40-0x5b4d-0x11cf-0xa8fd00805f5c442b error_correction_type:0xbfc3cd50-0x618f-0x11cf-0x8bb200aa00b4e220 time_offset:0 type_specific_data_length:28 error_correction_data_length:8 flags:0x2 stream_number:2
asf debug: found object guid: 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:122
asf debug: read "codec list object" reserved_guid:0x86d15241-0x311d-0x11d0-0xa3a400a0c90348f6 codec_entries_count:2
asf debug: - codec[0] video name:"wmv2" description:"" information_length:4
asf debug: - codec[1] audio name:"Windows Media Audio V8" description:"" information_length:2
asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:3120050
asf debug: read "data object" file_id:0x0-0x0-0x0-0x0000000000000000 total data packet:975 reserved:257
asf debug: found object guid: 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:416
asf debug: read "index object" file_id:0x0-0x0-0x0-0x0000000000000000 index_entry_time_interval:10000000 max_packet_count:14 index_entry_count:60
asf debug: + 'Unknown' GUID 0x0-0x0-0x0-0x0000000000000000 size:0pos:0
asf debug: + 'Header' GUID 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:549pos:0
asf debug: | + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:30
asf debug: | + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:46pos:134
asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133pos:180
asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:313
asf debug: | + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:122pos:427
asf debug: + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:3120050pos:549
asf debug: + 'Index' GUID 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:416pos:3120599
asf debug: found 2 streams
main debug: selecting program id=0
asf debug: added new video stream(ID:1)
asf debug: added new audio stream(codec:0x161,ID:2)
main debug: using demux module "asf"
main debug: TIMER module_need() : 14.000 ms - Total 14.000 ms / 1 intvls (Avg 14.000 ms)
main debug: looking for a subtitle file in C:\ffmpeg\
main debug: looking for decoder module: 36 candidates
avcodec debug: libavcodec initialized (interface 0x342000)
avcodec debug: using direct rendering
avcodec debug: ffmpeg codec (Windows Media Video 2) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 9.000 ms - Total 9.000 ms / 1 intvls (Avg 9.000 ms)
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315)
main debug: thread started
main debug: looking for decoder module: 36 candidates
avcodec debug: libavcodec already initialized
avcodec debug: ffmpeg codec (Windows Media Audio 2) started
avcodec debug: Using 192000 bytes output buffer
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms)
main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315)
main debug: thread started
main debug: `C:\ffmpeg\SkatingBabies.wmv' successfully opened
main debug: Buffering 0%
main debug: Buffering 0%
main debug: no usable vout present, spawning one
main debug: Buffering 14%
main debug: Buffering 16%
main debug: looking for text renderer module: 2 candidates
avcodec warning: Physical channel configuration not set : guessing
main debug: Buffering 28%
main debug: Buffering 33%
main debug: Buffering 42%
main debug: Buffering 50%
main debug: thread (fontlist builder) created at priority 0 (../../.././modules/misc/freetype.c:473)
main debug: Buffering 56%
freetype debug: using fontsize: 2
main debug: Buffering 66%
main debug: thread started
main debug: Buffering 71%
main debug: Buffering 85%
freetype debug: Building font database...
main debug: using text renderer module "freetype"
main debug: Buffering 83%
freetype debug: Finished building font database.
main debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms)
main debug: Buffering 99%
main debug: Buffering 100%
main debug: Buffering 99%
main debug: looking for video filter2 module: 20 candidates
main debug: Stream buffering done (427 ms in 10 ms)
freetype debug: Took 0 microseconds
main debug: thread ended
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms)
main debug: looking for video filter2 module: 20 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: window size: 576x432
main debug: looking for video output module: 7 candidates
direct3d debug: creating Vout EventThread
main debug: thread (Vout Events Thread) created at priority 0 (../../../.././modules/video_output/msw/direct3d.c:218)
main debug: thread started
direct3d debug: DirectXCreateWindow
main debug: looking for hwnd module: 3 candidates
qt4 debug: Qt4 interface not found
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: no "hwnd" window provider available
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
main debug: using video output module "direct3d"
main debug: TIMER module_need() : 36.000 ms - Total 36.000 ms / 1 intvls (Avg 36.000 ms)
main debug: Deinterlacing available
direct3d debug: Direct3D device adapter successfully initialized
direct3d debug: selected surface pixel format is YUY2
direct3d debug: 1 Direct3D pictures created successfully
direct3d debug: Direct3D scene created successfully
main debug: got 1 direct buffer(s)
main debug: pic render sz 576x432, of (0,0), vsz 576x432, 4cc I420, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 576x432, of (0,0), vsz 576x432, 4cc I420, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 576x432, of (0,0), vsz 576x432, 4cc YUY2, ar 4:3, sar 1:1, msk r0x0 g0x0 b0x0
main debug: looking for video filter2 module: 20 candidates
main debug: using video filter2 module "i420_yuy2_sse2"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: indirect render, mapping render pictures 0-15 to system pictures 1-16
main debug: creating aout
main debug: looking for audio output module: 3 candidates
aout_directx debug: OpenAudio
main debug: End of video preroll
main debug: Received first picture
freetype debug: using fontsize: 27
main debug: looking for video blending module: 1 candidate
blend debug: chroma: YUVA -> YUY2
main debug: using video blending module "blend"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
aout_directx debug: found device: Primary Sound Driver
aout_directx debug: found device: Speakers (Realtek High Definition Audio)
aout_directx debug: found device: Line 1 (Virtual Audio Cable)
aout_directx debug: found device: Speakers (Hear Virtual Device)
aout_directx debug: device supports 2 channels (DEFAULT!)
aout_directx debug: device supports 1 channel
aout_directx debug: Windows says your SpeakerConfig is stereo
aout_directx debug: creating DirectSoundThread
main debug: thread (DirectSound Notification Thread) created at priority 15 (../../.././modules/audio_output/directx.c:427)
main debug: thread started
main debug: using audio output module "aout_directx"
aout_directx debug: DirectSoundThread ready
main debug: TIMER module_need() : 34.000 ms - Total 34.000 ms / 1 intvls (Avg 34.000 ms)
main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes
main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "float32_mixer"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: input 's16l' 48000 Hz Stereo frame=1 samples/4 bytes
main debug: looking for audio filter module: 1 candidate
scaletempo warning: bad input or output format
main warning: no audio filter module matching "scaletempo" could be loaded
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: looking for audio filter module: 1 candidate
scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: filter(s) 's16l'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
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: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: found a filter for the whole conversion
main debug: End of audio preroll
main debug: Decoder buffering done in 226 ms
main debug: Post-processing available
main warning: output date isn't PTS date, requesting resampling (43001)
main warning: buffer is 43000 late, triggering upsampling
Re: Help Needed - trying to stream .M3U - Bug?
Posted: 18 Sep 2009 17:13
by noknok
As a matter of note, in case anyone else is trying to stream multiple WMV files as 1 stream, I have been able to somewhat get it working....
If i point to a locally created .ASX file as the source, it works, kinda. It plays the first file, then about 5 seconds before the end of the first, it pauses/buffers the player, then begins playing the second stream auto, but cutting off about 10 seconds of the beginning of the second video. so overall losing about 15 seconds of the stream, but in the end allowing multiple input sources to be streams as 1 out put stream.
Still a bug, but a somewhat workable solution for now.
Shawn