Page 1 of 1

no sound after converting WMV

Posted: 11 Feb 2008 00:21
by pratfall
I'm using this command to try to convert WMV to MPEG1 so I can do, well, anything with it:

vlc <infile> -I dummy --sout="#transcode{vcodec=mp1v,vb=1024,acodec=mpga,ab=128}:std{mux=raw,dst=<outfile>,access=file}" vlc:quit


Pretty straightforward, and video seems to work, but I get no sound in the output file. Any ideas? thanks.

Re: no sound after converting WMV

Posted: 14 May 2008 15:05
by PureVirtual
I have the same problem.
Sample input format:

Code: Select all

Format : Windows Media Video: Codec : WMV3 Codec/Family : VC-1 Codec/Info : Windows Media Video 9 Codec description : Windows Media Video 9 - Professional Audio: Codec : WMA2 Codec/Info : Windows Media Audio 2 Codec description : Windows Media Audio 9.1 - 128 kbps, 48 kHz, stereo 2-pass VBR
Are there any restrictions on transcoding from WMA?

Re: no sound after converting WMV

Posted: 14 May 2008 15:54
by joris.spriet
Hi,

I think I have the same issue when capturing a stream ?
cfr my post viewtopic.php?f=14&t=46608

Any progress cq ideas on how to work around this ?

Thanks.

Joris Spriet

Re: no sound after converting WMV

Posted: 14 May 2008 18:57
by Jean-Baptiste Kempf
Give us more messages.

Re: no sound after converting WMV

Posted: 14 May 2008 20:37
by PureVirtual
Give us more messages.
For the file above I used the following command line (on Win2K):

Code: Select all

vlc -vvv test.wmv --sout #transcode{vcodec=h264,vb=256,fps=25,max-width=320,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=test.mp4}}
VLC sends the following messages:

Code: Select all

main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU main debug: looking for memcpy module: 3 candidates main debug: using memcpy module "memcpymmxext" main debug: waiting for thread completion main debug: thread 3732 (playlist) created at priority 0 (playlist/playlist.c:184) main debug: waiting for thread completion main debug: thread 3748 (preparser) created at priority 0 (playlist/playlist.c:210) main debug: looking for interface module: 1 candidate main debug: using interface module "hotkeys" main debug: thread 3772 (interface) created at priority 0 (interface/interface.c:231) main debug: adding playlist item `test.wmv' ( test.wmv ) main debug: looking for interface module: 3 candidates main debug: using interface module "wxwidgets" main debug: thread 3804 (manager) created at priority 0 (interface/interface.c:216) wxwidgets debug: Using last windows config '(-1,0,0,1440,900)(0,618,288,423,94)(2,154,154,418,580)(6,0,0,-1,150)' wxwidgets debug: id=0 p=(618,288) s=(423,94) wxwidgets debug: id=2 p=(154,154) s=(418,580) wxwidgets debug: id=6 p=(0,0) s=(-1,150) main debug: nothing requested, starting main debug: creating new input thread main debug: waiting for thread completion main debug: thread 3900 (input) created at priority 1 (input/input.c:265) main debug: creating statistics handler main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate main debug: stream=`duplicate' main debug: looking for sout stream module: 1 candidate stream_out_duplicate debug: creating 'duplicate' stream_out_duplicate debug: * adding `std{access=file,mux=mp4,dst=test.mp4}' main debug: stream=`std' main debug: looking for sout stream module: 1 candidate main debug: set sout option: sout-standard-access to file main debug: set sout option: sout-standard-mux to mp4 main debug: set sout option: sout-standard-dst to test.mp4 stream_out_standard debug: creating `file/mp4://test.mp4' stream_out_standard debug: extension is mp4 stream_out_standard debug: extension -> mux=mp4 stream_out_standard debug: using `file/mp4://test.mp4' main debug: looking for sout access module: 1 candidate access_output_file debug: file access output opened (`test.mp4') main debug: using sout access module "access_output_file" stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_mp4 debug: Mp4 muxer opened main debug: using sout mux module "mux_mp4" stream_out_standard debug: mux opened main debug: using sout stream module "stream_out_standard" main debug: using sout stream module "stream_out_duplicate" main debug: set sout option: sout-transcode-vcodec to h264 main debug: set sout option: sout-transcode-vb to 256 main debug: set sout option: sout-transcode-fps to 25 main warning: option max-width is unknown main debug: set sout option: sout-transcode-acodec to mp3 main debug: set sout option: sout-transcode-ab to 128 main debug: set sout option: sout-transcode-channels to 2 stream_out_transcode debug: codec audio=mp3 0Hz 2 channels 128Kb/s stream_out_transcode debug: codec video=h264 0x0 scaling: 1.000000 256kb/s main debug: using sout stream module "stream_out_transcode" main debug: `test.wmv' gives access `' demux `' path `test.wmv' main debug: creating demux: access='' demux='' path='test.wmv' main debug: looking for access_demux module: 1 candidate main debug: creating access '' path='test.wmv' main debug: looking for access2 module: 5 candidates vcd debug: trying .cue file: test.cue vcd debug: could not find .cue file access_file debug: opening file `test.wmv' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 85992 kbytes/s main debug: creating demux: access='' demux='' path='test.wmv' main debug: looking for demux2 module: 45 candidates asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5497 asf debug: read "header object" subobj:8, reserved1:1, reserved2:2 asf debug: found object guid: 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:436 asf debug: read "extended content description object" asf debug: - 'WM/ParentalRating' = '' asf debug: - 'WMFSDKVersion' = '10.00.00.3802' asf debug: - 'WMFSDKNeeded' = '0.0.0.0000' asf debug: - 'VBR Peak' = '7000000' asf debug: - 'IsVBR' = 'true' asf debug: - 'ASFLeakyBucketPairs' = '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' asf debug: - 'Buffer Average' = '47254' asf debug: found object guid: 0x75b22633-0x668e-0x11cf-0xa6d900aa0062ce6c size:42 asf debug: read "content description object" title:"" author:"" copyright:"" description:"" rating:"" asf debug: found object guid: 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104 asf debug: read "file properties object" file_id:0x1348f415-0xb5af-0x45db-0x9571f2a08ccf2401 file_size:65289081 creation_date:128259056214840000 data_packets_count:4080 play_duration:2423200000 send_duration:2405420000 preroll:3000 flags:2 min_data_packet_size:16000 max_data_packet_size:16000 max_bitrate:7221960 asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4344 asf debug: read "header extension object" reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6 header_extension_size:4298 asf debug: found object guid: 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:46 asf debug: read "language list object" 2 entries asf debug: - 'ru' asf debug: - 'en-us' asf debug: found object guid: 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:516 asf debug: read "metadata object" 10 entries asf debug: - AspectRatioX=16 asf debug: - AspectRatioY=15 asf debug: - IsVBR=1 asf debug: - DeviceConformanceTemplate=L3 asf debug: - IsVBR=1 asf debug: - DeviceConformanceTemplate=MP@ML asf debug: - WM/WMADRCPeakReference=25368 asf debug: - WM/WMADRCAverageReference=7220 asf debug: - PeakValue=28193 asf debug: - AverageLevel=6011 asf debug: found object guid: 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3440 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0xd4fed15b-0x88d3-0x454f-0x81f0ed5c45999e24 size:34 asf debug: read "stream prioritization object" asf debug: - Stream:1 flags=0x0 asf debug: - Stream:2 flags=0x0 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=128153 buffer=3177 initial fullness=0 asf debug: - alternate data bitrate=192072 buffer=2000 initial fullness=0 asf debug: - maximum object size=5462 asf debug: - flags=0x2 asf debug: - stream number=1 language=1 asf debug: - average time per frame=3361481 asf debug: - stream name count=0 asf debug: - payload extension system count=0 asf debug: found object guid: 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:110 asf debug: read "extended stream properties object": asf debug: - start=0 end=0 asf debug: - data bitrate=2000000 buffer=47254 initial fullness=0 asf debug: - alternate data bitrate=7000000 buffer=5000 initial fullness=0 asf debug: - maximum object size=51060 asf debug: - flags=0x2 asf debug: - stream number=2 language=1 asf debug: - average time per frame=400000 asf debug: - stream name count=0 asf debug: - payload extension system count=1 asf debug: found object guid: 0xd6e229df-0x35da-0x11d1-0x903400a0c90349be size:38 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:256 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.1" description:"128 kbps, 48 kHz, stereo 2-pass VBR" information_length:2 asf debug: - codec[1] video name:"Windows Media Video 9" description:"Professional" 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=197868 asf debug: - stream=2 bitrate=7024092 asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:65280050 asf debug: read "data object" file_id:0x1348f415-0xb5af-0x45db-0x9571f2a08ccf2401 total data packet:4080 reserved:257 asf debug: found object guid: 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b size:85892 asf warning: unknown asf object (not loaded) asf warning: unknow object found asf debug: found object guid: 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b size:4254 asf warning: unknown asf object (not loaded) asf warning: unknow object found asf debug: found object guid: 0xd6e229d3-0x35da-0x11d1-0x903400a0c90349be size:2014 asf warning: unknown asf object (not loaded) asf warning: unknow object found asf debug: found object guid: 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:1520 asf debug: read "index object" file_id:0x1348f415-0xb5af-0x45db-0x9571f2a08ccf2401 index_entry_time_interval:10000000 max_packet_count:4 index_entry_count:244 asf debug: + 'Unknown' GUID 0x0-0x0-0x0-0x0000000000000000 size:0pos:0 asf debug: + 'Header' GUID 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5497pos:0 asf debug: | + 'Extended content description' GUID 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:436pos:30 asf debug: | + 'Content Description' GUID 0x75b22633-0x668e-0x11cf-0xa6d900aa0062ce6c size:42pos:466 asf debug: | + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:508 asf debug: | + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4344pos:612 asf debug: | | + 'Language List' GUID 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:46pos:658 asf debug: | | + 'Metadata' GUID 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:516pos:704 asf debug: | | + 'Unknown' GUID 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26pos:1220 asf debug: | | + 'Padding' GUID 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3440pos:1246 asf debug: | | + 'Stream Prioritization' GUID 0xd4fed15b-0x88d3-0x454f-0x81f0ed5c45999e24 size:34pos:4686 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:88pos:4720 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:110pos:4808 asf debug: | | + 'Unknown' GUID 0xd6e229df-0x35da-0x11d1-0x903400a0c90349be size:38pos:4918 asf debug: | + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:256pos:4956 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:5212 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133pos:5326 asf debug: | + 'Stream Bitrate Propoerties' GUID 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 size:38pos:5459 asf debug: + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:65280050pos:5497 asf debug: + 'Unknown' GUID 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b size:85892pos:65285547 asf debug: + 'Unknown' GUID 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b size:4254pos:65371439 asf debug: + 'Unknown' GUID 0xd6e229d3-0x35da-0x11d1-0x903400a0c90349be size:2014pos:65375693 asf debug: + 'Index' GUID 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:1520pos:65377707 asf debug: found 2 streams access_file warning: unimplemented query in control main debug: selecting program id=0 asf debug: added new audio stream(codec:0x161,ID:1) access_file warning: unimplemented query in control asf debug: added new video stream(ID:2) main debug: using demux2 module "asf" main debug: looking for a subtitle file in D:\temp\Gypsy\wmv\ main debug: looking for packetizer module: 17 candidates main debug: using packetizer module "packetizer_copy" main debug: stream out mode -> no decoder thread main debug: looking for packetizer module: 17 candidates main debug: using packetizer module "packetizer_copy" main debug: stream out mode -> no decoder thread main debug: starting in async mode main debug: `test.wmv' successfully opened packetizer_copy debug: need dts > 0 packetizer_copy debug: need dts > 0 packetizer_copy debug: need dts > 0 packetizer_copy debug: need dts > 0 main debug: adding a new input stream_out_transcode debug: creating video transcoding from fcc=`WMV3' to fcc=`h264' main debug: looking for decoder module: 28 candidates ffmpeg debug: libavcodec initialized (interface 3349504 ) ffmpeg debug: postprocessing disabled ffmpeg debug: ffmpeg codec (Windows Media Video 3) started main debug: using decoder module "ffmpeg" main debug: looking for encoder module: 10 candidates main debug: using encoder module "x264" main debug: removing module "x264" ffmpeg warning: warning: first frame is no keyframe (wmv3@00B49620) 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.066667:1 stream_out_transcode debug: scaled pixel aspect is 1.066667:1 stream_out_transcode debug: source 720x576, crop 720x576, destination 720x576, padding 720x576 stream_out_transcode debug: encoder aspect is 576000:432000 main debug: looking for encoder module: 10 candidates main debug: using encoder module "x264" stream_out_duplicate debug: duplicated a new stream codec=h264 (es=1 group=0) main debug: adding a new input mux_mp4 debug: adding input stream_out_duplicate debug: - added for output 0 stream_out_transcode debug: drift is too high, resetting master sync packetizer_copy debug: need dts > 0 main debug: adding a new input stream_out_transcode debug: creating audio transcoding from fcc=`wma2' to fcc=`mp3 ' main debug: looking for decoder module: 28 candidates ffmpeg debug: libavcodec already initialized ffmpeg debug: ffmpeg codec (Windows Media Audio 2) started main debug: using decoder module "ffmpeg" main debug: looking for encoder module: 10 candidates ffmpeg debug: libavcodec already initialized ffmpeg debug: found encoder MPEG Audio layer 1/2/3 main debug: using encoder module "ffmpeg" stream_out_duplicate debug: duplicated a new stream codec=mpga (es=0 group=0) main error: cannot add a new stream (unsupported while muxing to this format) stream_out_duplicate debug: - failed for output 0 ffmpeg debug: ffmpeg codec (Windows Media Audio 2) stopped main debug: removing module "ffmpeg" main debug: removing module "ffmpeg" main error: cannot create packetizer output (wma2)
...and after finishing transcoding:

Code: Select all

asf warning: p_peek[0]&0x80 != 0x80 asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: undeclared stream[Id 0x0] asf warning: p_peek[0]&0x80 != 0x80 asf warning: undeclared stream[Id 0x0] asf warning: p_peek[0]&0x80 != 0x80 asf warning: undeclared stream[Id 0x0] asf warning: p_peek[0]&0x80 != 0x80 asf warning: unsupported packet header asf warning: cannot peek while getting new packet, EOF ? main debug: EOF reached main debug: closing input asf debug: free asf object 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 asf debug: free asf object 0x75b22633-0x668e-0x11cf-0xa6d900aa0062ce6c asf debug: free asf object 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 asf debug: free asf object 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 asf debug: free asf object 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca asf warning: unknown asf object 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 asf warning: unknown asf object 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 asf debug: free asf object 0xd4fed15b-0x88d3-0x454f-0x81f0ed5c45999e24 asf debug: free asf object 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a asf debug: free asf object 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a asf warning: unknown asf object 0xd6e229df-0x35da-0x11d1-0x903400a0c90349be asf debug: free asf object 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 asf debug: free asf object 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 asf debug: free asf object 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 asf debug: free asf object 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 asf debug: free asf object 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 asf debug: free asf object 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c asf debug: free asf object 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c asf warning: unknown asf object 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b asf warning: unknown asf object 0x35003b7b-0xa104-0x4c33-0xa9eee2a240431f9b asf warning: unknown asf object 0xd6e229d3-0x35da-0x11d1-0x903400a0c90349be asf debug: free asf object 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `wma2', 0 PES in FIFO main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `WMV3', 0 PES in FIFO main debug: removing an input ffmpeg debug: ffmpeg codec (Windows Media Video 3) stopped main debug: removing module "ffmpeg" main debug: removing module "x264" mux_mp4 debug: removing input main warning: no more input streams for this mux main debug: Program doesn't contain anymore ES main debug: removing module "asf" main debug: removing module "access_file" main debug: destroying sout main debug: destroying chain... (name=transcode) main debug: destroying chain... (name=duplicate) stream_out_duplicate debug: closing a duplication main debug: destroying chain... (name=std) mux_mp4 debug: Close mux_mp4 debug: movie duration 237s mux_mp4 debug: created 1 chunks (stco) main debug: removing module "mux_mp4" access_output_file debug: file access output closed main debug: removing module "access_output_file" main debug: removing module "stream_out_standard" main debug: destroying chain done main debug: removing module "stream_out_duplicate" main debug: destroying chain done main debug: removing module "stream_out_transcode" main debug: destroying chain done main debug: thread times: real 10m52.531250s, kernel 0m0.953125s, user 9m23.406250s main debug: thread 3900 joined (input/input.c:412) main: nothing to play

Re: no sound after converting WMV

Posted: 14 May 2008 20:48
by Jean-Baptiste Kempf
cannot add a new stream (unsupported while muxing to this format)

Very weird, it doesn't seem to try to encode in mp3. I don't know then.