Page 1 of 1

ASF WMA9 bug on Streaming

Posted: 17 Sep 2009 22:20
by noknok
I have encountered another issue bug with VLC 1.0.1

Currently I am using Windows Directshow to write out live TV to a WMV. The filter uses the standard ASF Writer. In doing so, it write the WMV out with WMA 9.2 Codec.

Now when I open the file to play on screen with VLC, i see video, and I hear audio. All is good.

When i try to stream the same file out transcoded, No audio is present. And if I look into the properties of the stream using Windows media Player, it does not show anything under the audio codec.

Command being used:

Code: Select all

vlc -I dummy stream:///ffmpeg/tvout.wmv :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}
Am i doing something wrong? Can I forcefully tell VLC somehow what the input codec is? or lastly, anyone know of any filters for Directshow that will output a WMV file in WMV2 and WMA2 format. That would at least provide me a decent solution.

I would use VLC for the capture, but unfortunately VLC still has some issues dealing with Crossbar and Audio on integrated tuner cards where i doesnt list the Audio device.

This is the 4th or so issue/bug I have encountered with the new 1.0.1 version in VLC. I am posting them here in the SOUT section of the forum in hopes it may be my mistake. if not though, is their a better place to post/notify bugs?

Shawn

Re: ASF WMA9 bug on Streaming

Posted: 18 Sep 2009 11:50
by Jean-Baptiste Kempf
Paste the logs!

Re: ASF WMA9 bug on Streaming

Posted: 18 Sep 2009 15:58
by noknok
Here is the log output:

Code: Select all

-- logger module started -- main debug: using interface module "logger" main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: thread (interface) created at priority 0 (../.././src/interface/interface.c:151) main debug: thread started main debug: looking for interface module: 1 candidate main debug: thread ended 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 `tvout.wmv' ( stream:///ffmpeg/tvout.wmv ) main debug: looking for interface module: 1 candidate main debug: using interface module "globalhotkeys" 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: looking for interface module: 1 candidate main debug: thread started 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: thread ended 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: thread ended 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 'tvout.wmv' 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() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.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() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.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() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.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() : 32.000 ms - Total 32.000 ms / 1 intvls (Avg 32.000 ms) main debug: using timeshift granularity of 50 MBytes main debug: using timeshift path 'C:\Users\sml\AppData\Local\Temp' main debug: `stream:///ffmpeg/tvout.wmv' gives access `stream' demux `' path `/ffmpeg/tvout.wmv' main debug: creating demux: access='stream' demux='' path='/ffmpeg/tvout.wmv' main debug: looking for access_demux module: 0 candidates main debug: no access_demux module matched "stream" main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) main debug: creating access 'stream' path='/ffmpeg/tvout.wmv' main debug: looking for access module: 1 candidate access_file debug: opening file `/ffmpeg/tvout.wmv' main debug: using access module "access_file" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 3 ms main debug: pre-buffering done 1024 bytes in 0s - 333 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='stream' demux='' path='/ffmpeg/tvout.wmv' main debug: looking for demux module: 50 candidates asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5276 asf debug: read "header object" subobj:7, reserved1:1, reserved2:2 asf debug: found object guid: 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104 asf debug: read "file properties object" file_id:0xdddbf2de-0xe9f5-0x4e7e-0x9e5460338874a53f file_size:4562136 creation_date:128976946764910000 data_packets_count:810 play_duration:828450000 send_duration:819080000 preroll:5000 flags:2 min_data_packet_size:5625 max_data_packet_size:5625 max_bitrate:459502 asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4443 asf debug: read "header extension object" reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6 header_extension_size:4397 asf debug: found object guid: 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:39 asf debug: read "language list object" 1 entries asf debug: - 'en-us' asf debug: found object guid: 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:216 asf debug: read "metadata object" 4 entries asf debug: - IsVBR=0 asf debug: - DeviceConformanceTemplate=L1 asf debug: - IsVBR=0 asf debug: - DeviceConformanceTemplate=@ asf debug: found object guid: 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3858 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:88 asf debug: read "extended stream properties object": asf debug: - start=0 end=0 asf debug: - data bitrate=64040 buffer=1579 initial fullness=0 asf debug: - alternate data bitrate=64040 buffer=1579 initial fullness=0 asf debug: - maximum object size=1487 asf debug: - flags=0x2 asf debug: - stream number=1 language=0 asf debug: - average time per frame=1725200 asf debug: - stream name count=0 asf debug: - payload extension system count=0 asf debug: found object guid: 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:132 asf debug: read "extended stream properties object": asf debug: - start=0 end=0 asf debug: - data bitrate=386000 buffer=5000 initial fullness=0 asf debug: - alternate data bitrate=386000 buffer=5000 initial fullness=0 asf debug: - maximum object size=25575 asf debug: - flags=0x2 asf debug: - stream number=2 language=0 asf debug: - average time per frame=333333 asf debug: - stream name count=0 asf debug: - payload extension system count=2 asf debug: found object guid: 0xd9aade20-0x7c17-0x4f9c-0xbc288555dd98e2a2 size:38 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:168 asf debug: read "extended content description object" asf debug: - 'WMFSDKVersion' = '11.0.6002.18049' asf debug: - 'WMFSDKNeeded' = '0.0.0.0000' asf debug: - 'IsVBR' = 'false' asf debug: found object guid: 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:246 asf debug: read "codec list object" reserved_guid:0x86d15241-0x311d-0x11d0-0xa3a400a0c90348f6 codec_entries_count:2 asf debug: - codec[0] audio name:"Windows Media Audio 9.2" description:" 64 kbps, 44 kHz, stereo (A/V) 1-pass CBR" information_length:2 asf debug: - codec[1] video name:"Windows Media Video V8" description:"" information_length:4 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:0x1 stream_number:1 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:0x2 stream_number:2 asf debug: found object guid: 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 size:38 asf debug: read "stream bitrate properties object" asf debug: - stream=1 bitrate=65734 asf debug: - stream=2 bitrate=393768 asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:4556300 asf debug: read "data object" file_id:0xdddbf2de-0xe9f5-0x4e7e-0x9e5460338874a53f total data packet:810 reserved:257 asf debug: found object guid: 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:560 asf debug: read "index object" file_id:0xdddbf2de-0xe9f5-0x4e7e-0x9e5460338874a53f index_entry_time_interval:10000000 max_packet_count:6 index_entry_count:84 asf debug: + 'Unknown' GUID 0x0-0x0-0x0-0x0000000000000000 size:0pos:0 asf debug: + 'Header' GUID 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5276pos:0 asf debug: | + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:30 asf debug: | + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4443pos:134 asf debug: | | + 'Language List' GUID 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:39pos:180 asf debug: | | + 'Unknown' GUID 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26pos:219 asf debug: | | + 'Metadata' GUID 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:216pos:245 asf debug: | | + 'Padding' GUID 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3858pos:461 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:88pos:4319 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:132pos:4407 asf debug: | | + 'Unknown' GUID 0xd9aade20-0x7c17-0x4f9c-0xbc288555dd98e2a2 size:38pos:4539 asf debug: | + 'Extended content description' GUID 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:168pos:4577 asf debug: | + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:246pos:4745 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:4991 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133pos:5105 asf debug: | + 'Stream Bitrate Properties' GUID 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 size:38pos:5238 asf debug: + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:4556300pos:5276 asf debug: + 'Index' GUID 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:560pos:4561576 asf debug: found 2 streams main debug: selecting program id=0 asf debug: added new audio stream(codec:0x161,ID:1) asf debug: added new video stream(ID:2) main debug: using demux module "asf" main debug: TIMER module_need() : 32.000 ms - Total 32.000 ms / 1 intvls (Avg 32.000 ms) main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\ main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315) main debug: thread started main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:315) main debug: thread started main debug: starting in async mode main debug: `stream:///ffmpeg/tvout.wmv' successfully opened main debug: Buffering 0% main debug: switching to sync mode main debug: Buffering 11% main debug: adding a new sout input (sout_input:0x3eb6318) main debug: Buffering 22% stream_out_transcode debug: creating video transcoding from fcc=`WMV2' to fcc=`WMV2' main debug: Buffering 33% main debug: looking for decoder module: 36 candidates main debug: Buffering 44% main debug: Buffering 55% main debug: Buffering 55% avcodec debug: libavcodec initialized (interface 0x342000) main debug: Buffering 100% main debug: Stream buffering done (366 ms in 0 ms) 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() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder Windows Media Video 2 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: removing module "avcodec" main debug: Decoder buffering done in 16 ms stream_out_transcode debug: late picture skipped (44001) stream_out_transcode debug: late picture skipped (10001) stream_out_transcode debug: drift is too high, resetting master sync stream_out_transcode debug: decoder aspect is 576000:432000 stream_out_transcode debug: source pixel aspect is 1.000000:1 stream_out_transcode debug: scaled pixel aspect is 1.000000:1 stream_out_transcode debug: source 320x240, destination 128x96 stream_out_transcode debug: encoder aspect is 576000:432000 main debug: looking for video filter2 module: 20 candidates swscale debug: 320x240 chroma: I420 -> 128x96 chroma: I420 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Filter 'swscale' (0x3e3c1fc) appended to chain stream_out_transcode debug: destination (after video filters) 128x96 main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder Windows Media Video 2 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) main debug: adding a new input mux_asf debug: adding input mux_asf debug: Asf muxer creating header mux_asf debug: pixel aspect-ratio: 1/1 packetizer_copy debug: need dts > 0 main debug: adding a new sout input (sout_input:0x3eb64b0) stream_out_transcode debug: creating audio transcoding from fcc=`wma2' to fcc=`wma2' 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() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: looking for encoder module: 12 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder Windows Media Audio 2 main debug: using encoder module "avcodec" main debug: TIMER module_need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) stream_out_transcode debug: Looking for filter (s16l->s16l, channels 2->2, rate 44100->22050) main debug: looking for audio filter2 module: 8 candidates audio_format debug: s16l->fl32, bits per sample: 16->32 main debug: using audio filter2 module "audio_format" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Filter 'audio_format' (0x6de9c3c) appended to chain main debug: looking for audio filter2 module: 8 candidates bandlimited_resampler debug: fl32/44100KHz/2->fl32/22050KHz/2 main debug: using audio filter2 module "bandlimited_resampler" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Filter 'bandlimited_resampler' (0x6db43cc) appended to chain main debug: looking for audio filter2 module: 8 candidates audio_format debug: fl32->s16l, bits per sample: 32->16 main debug: using audio filter2 module "audio_format" main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: Filter 'audio_format' (0x6db4714) appended to chain stream_out_transcode debug: Got complete audio filter chain main debug: adding a new input mux_asf debug: adding input avcodec warning: Physical channel configuration not set : guessing main warning: late buffer for mux input (1329000) main warning: late buffer for mux input (1193681) main warning: late buffer for mux input (1011921) main warning: late buffer for mux input (830161) main warning: late buffer for mux input (694842) main warning: late buffer for mux input (513082) main warning: late buffer for mux input (377762) main warning: late buffer for mux input (242443) main warning: late buffer for mux input (107123)
Additionally, the file can be found at: iphone.nok.io/commercials/tvout.wmv

Re: ASF WMA9 bug on Streaming

Posted: 18 Sep 2009 16:43
by noknok
Additionally, converting the file directly with ffmpeg works, both audio and video out just fine.

Code: Select all

C:\ffmpeg>ffmpeg -i tvout.wmv -vcodec wmv2 -acodec wmav2 -r 15 ffout.wmv FFmpeg version SVN-r18639, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --enable-memalign-hack --prefix=/mingw --cross-prefix=i686-ming w32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --e nable-avisynth --enable-gpl --enable-zlib --enable-bzlib --enable-libgsm --enabl e-libfaac --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheo ra --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid - -enable-libschroedinger --enable-libx264 libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.27. 0 / 52.27. 0 libavformat 52.32. 0 / 52.32. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 7. 1 / 0. 7. 1 built on Apr 21 2009 04:04:24, gcc: 4.2.4 Input #0, asf, from 'tvout.wmv': Duration: 00:01:16.94, start: 5.000000, bitrate: 474 kb/s Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 64 kb/s Stream #0.1: Video: wmv2, yuv420p, 320x240, 386 kb/s, 1k tbr, 1k tbn, 1k tbc Output #0, asf, to 'ffout.wmv': Stream #0.0: Video: wmv2, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 15 tbc Stream #0.1: Audio: wmav2, 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding frame= 1167 fps=357 q=11.8 Lsize= 2789kB time=77.80 bitrate= 293.6kbits/s video:2066kB audio:608kB global headers:0kB muxing overhead 4.291884%

Re: ASF WMA9 bug on Streaming

Posted: 24 Sep 2009 01:19
by noknok
anyone?