No audio when transcoding WMV files?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
colinnwn
New Cone
New Cone
Posts: 3
Joined: 07 Mar 2007 17:41
Location: Dallas TX

No audio when transcoding WMV files?

Postby colinnwn » 07 Mar 2007 22:54

Hi,

I have a .wmv file from the internet that plays fine in VLC 0.8.6a Windows. When it plays, the message contains the following about the detected file format

Code: Select all

asf debug: - codec[0] audio name:"Windows Media Audio 9.1" description:" 16 kbps, 16 kHz, mono 1-pass CBR" information_length:2 asf debug: - codec[1] video name:"Windows Media Video 9" description:"" information_length:4
I was trying to transcode it into a lower filesize, but when I try to transcode it to any other encapsulation method, audio or video codec and bitrate, I get video but no audio. Does VLC or ffmpeg or whatever it is using not support transcoding WMA 9.1, or am I making a basic transcode selection mistake?

Also, it kinda sucks waiting for the transcoding to finish only to discover it didn't work correctly. As a feature request, would it be possible for a message box to pop up after you click 'ok' but before transcoding starts that warns of any problems the transcoded file will have? It seems the message console knows and highlights major problems in red. Couldn't this just be redirected to a message box and ask if you want to cancel or continue? I ran into several problems choosing an invalid encapsulation method that didn't work at all, like .mov having no audio or video and .wav having no video and only static for audio.

Thanks.

Here is one sample of the command line the open file save stream dialog is creating

Code: Select all

:sout=#transcode{vcodec=h264,vb=256,scale=1,acodec=mp4a,ab=96,channels=1}:duplicate{dst=std{access=file,mux=mp4,dst="C:\Colin\video.mp4"}}
A sample of the I think relevant error messages

Code: Select all

ffmpeg debug: found encoder MPEG AAC Audio main debug: using encoder module "ffmpeg" stream_out_duplicate debug: duplicated a new stream codec=mp4a (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)

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 08 Mar 2007 07:05

You can look at the error Messages while doing the transcode and don't need to wait tell the end.

Try samplerate=<rate> in your command line at the end of the audio command separated by commas.

colinnwn
New Cone
New Cone
Posts: 3
Joined: 07 Mar 2007 17:41
Location: Dallas TX

Postby colinnwn » 08 Mar 2007 16:35

Hi DJ,

I tried your suggestion and still get video without audio. The command line I pasted into the 'stream audio MRL target' field was

Code: Select all

:sout=#transcode{vcodec=h264,vb=256,scale=1,acodec=mp4a,ab=96,channels=1,samplerate=44000}:duplicate{dst=std{access=file,mux=mp4,dst="C:\Colin\video.mp4"}}
I did figure out that to see complete messages you had to have the message console open before you started the transcode. It was so verbose and most of it seemed irrelevant, that I didn't want to post it all here out of courtesy. But in case I am missing something, it is included below.

Do you have any other ideas?
Thanks.

Code: Select all

main debug: adding playlist item `C:\Colin\Video.wmv' ( C:\Colin\Video.wmv ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 4380 (input) created at priority 1 (input/input.c:265) 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=C:\Colin\video.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 C:\Colin\video.mp4 stream_out_standard debug: creating `file/mp4://C:\Colin\video.mp4' stream_out_standard debug: extension is mp4 stream_out_standard debug: extension -> mux=mp4 stream_out_standard debug: using `file/mp4://C:\Colin\video.mp4' main debug: looking for sout access module: 1 candidate access_output_file debug: file access output opened (`C:\Colin\video.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 opend 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-scale to 1 main debug: set sout option: sout-transcode-acodec to mp4a main debug: set sout option: sout-transcode-ab to 96 main debug: set sout option: sout-transcode-channels to 1 main debug: set sout option: sout-transcode-samplerate to 44000 stream_out_transcode debug: codec audio=mp4a 44000Hz 1 channels 96Kb/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: drive letter C: found in source main debug: `C:\Colin\Video.wmv' gives access `' demux `' path `C:\Colin\Video.wmv' main debug: creating demux: access='' demux='' path='C:\Colin\Video.wmv' main debug: looking for access_demux module: 1 candidate main debug: creating access '' path='C:\Colin\Video.wmv' main debug: looking for access2 module: 5 candidates vcd debug: trying .cue file: C:\Colin\Video.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Colin\Video.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 - 21813 kbytes/s main debug: creating demux: access='' demux='' path='C:\Colin\Video.wmv' main debug: looking for demux2 module: 45 candidates asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5410 asf debug: read "header object" subobj:8, reserved1:1, reserved2:2 asf debug: found object guid: 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:300 asf debug: read "extended content description object" asf debug: - 'Application' = 'Windows Movie Maker 2.1.4026.0' asf debug: - 'WM/ParentalRating' = '' asf debug: - 'WMFSDKVersion' = '10.00.00.3802' asf debug: - 'WMFSDKNeeded' = '0.0.0.0000' asf debug: - 'IsVBR' = 'false' 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:0xf5a7b73c-0xf849-0x4e84-0xb4c7710637a21a78 file_size:5805142 creation_date:128087751646400000 data_packets_count:4132 play_duration:4031320000 send_duration:4021480000 preroll:5000 flags:2 min_data_packet_size:1403 max_data_packet_size:1403 max_bitrate:119446 asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4421 asf debug: read "header extension object" reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6 header_extension_size:4375 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:354 asf debug: read "metadata object" 6 entries asf debug: - IsVBR=0 asf debug: - DeviceConformanceTemplate=L2 asf debug: - IsVBR=0 asf debug: - DeviceConformanceTemplate=MP@ML asf debug: - WM/WMADRCPeakReference=32767 asf debug: - WM/WMADRCAverageReference=3459 asf debug: found object guid: 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3720 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=16000 buffer=1345 initial fullness=0 asf debug: - alternate data bitrate=16000 buffer=1345 initial fullness=0 asf debug: - maximum object size=640 asf debug: - flags=0x2 asf debug: - stream number=1 language=0 asf debug: - average time per frame=3153194 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=96301 buffer=5000 initial fullness=0 asf debug: - alternate data bitrate=96301 buffer=5000 initial fullness=0 asf debug: - maximum object size=11931 asf debug: - flags=0x2 asf debug: - stream number=2 language=0 asf debug: - average time per frame=666666 asf debug: - stream name count=0 asf debug: - payload extension system count=1 asf debug: found object guid: 0xd9aade20-0x7c17-0x4f9c-0xbc288555dd98e2a2 size:38 asf warning: unknown asf object (not loaded) asf debug: found object guid: 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:228 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:" 16 kbps, 16 kHz, mono 1-pass CBR" information_length:2 asf debug: - codec[1] video name:"Windows Media Video 9" 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=17393 asf debug: - stream=2 bitrate=102053 asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:5797246 asf debug: read "data object" file_id:0xf5a7b73c-0xf849-0x4e84-0xb4c7710637a21a78 total data packet:4132 reserved:257 asf debug: found object guid: 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:2486 asf debug: read "index object" file_id:0xf5a7b73c-0xf849-0x4e84-0xb4c7710637a21a78 index_entry_time_interval:10000000 max_packet_count:11 index_entry_count:405 asf debug: + 'Unknown' GUID 0x0-0x0-0x0-0x0000000000000000 size:0pos:0 asf debug: + 'Header' GUID 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c size:5410pos:0 asf debug: | + 'Extended content description' GUID 0xd2d0a440-0xe307-0x11d2-0x97f000a0c95ea850 size:300pos:30 asf debug: | + 'Content Description' GUID 0x75b22633-0x668e-0x11cf-0xa6d900aa0062ce6c size:42pos:330 asf debug: | + 'File Properties' GUID 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365 size:104pos:372 asf debug: | + 'Header Extension' GUID 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365 size:4421pos:476 asf debug: | | + 'Language List' GUID 0x7c4346a9-0xefe0-0x4bfc-0xb229393ede415c85 size:39pos:522 asf debug: | | + 'Unknown' GUID 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 size:26pos:561 asf debug: | | + 'Metadata' GUID 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca size:354pos:587 asf debug: | | + 'Padding' GUID 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 size:3720pos:941 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:88pos:4661 asf debug: | | + 'Extended Stream Properties' GUID 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a size:110pos:4749 asf debug: | | + 'Unknown' GUID 0xd9aade20-0x7c17-0x4f9c-0xbc288555dd98e2a2 size:38pos:4859 asf debug: | + 'Codec List' GUID 0x86d15240-0x311d-0x11d0-0xa3a400a0c90348f6 size:228pos:4897 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:114pos:5125 asf debug: | + 'Stream Properties' GUID 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365 size:133pos:5239 asf debug: | + 'Stream Bitrate Propoerties' GUID 0x7bf875ce-0x468d-0x11d1-0x8d82006097c9a2b2 size:38pos:5372 asf debug: + 'Data' GUID 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c size:5797246pos:5410 asf debug: + 'Index' GUID 0x33000890-0xe5b1-0x11cf-0x89f400a0c90349cb size:2486pos:5802656 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 C:\Colin\ 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: `C:\Colin\Video.wmv' successfully opened 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: 27 candidates ffmpeg debug: libavcodec already initialized 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@00AE1FA0) stream_out_transcode debug: decoder aspect is 770400:432000 stream_out_transcode debug: source pixel aspect is 1.000000:1 stream_out_transcode debug: scaled pixel aspect is 0.998997:1 stream_out_transcode debug: source 428x240, crop 428x240, destination 432x242, padding 432x242 stream_out_transcode debug: encoder aspect is 770400: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 main debug: looking for crop padd module: 1 candidate ffmpeg debug: input: 432x242 -> 428x240 ffmpeg debug: input: 428x240 I420 -> 432x242 I420 ffmpeg debug: libavcodec already initialized main debug: using crop padd module "ffmpeg" packetizer_copy debug: need dts > 0 main debug: adding a new input stream_out_transcode debug: creating audio transcoding from fcc=`wma2' to fcc=`mp4a' main debug: looking for decoder module: 27 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 AAC Audio main debug: using encoder module "ffmpeg" main debug: looking for audio filter2 module: 5 candidates audio_format debug: s16l->fl32, bits per sample: 16 main debug: using audio filter2 module "audio_format" main debug: looking for audio filter2 module: 5 candidates linear_resampler debug: fl32/16000KHz/1->s16l/44000KHz/1 main debug: using audio filter2 module "linear_resampler" main debug: looking for audio filter2 module: 5 candidates audio_format debug: fl32->s16l, bits per sample: 32 main debug: using audio filter2 module "audio_format" stream_out_duplicate debug: duplicated a new stream codec=mp4a (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 debug: removing module "audio_format" main debug: removing module "linear_resampler" main debug: removing module "audio_format" main error: cannot create packetizer output (wma2) 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 warning: unknown asf object 0x26f18b5d-0x4584-0x47ec-0x9f5f0e651f0452c9 asf debug: free asf object 0xc5f8cbea-0x5baf-0x4877-0x8467aa8c44fa4cca asf warning: unknown asf object 0x1806d474-0xcadf-0x4509-0xa4ba9aabcb96aae8 asf debug: free asf object 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a asf debug: free asf object 0x14e6a5cb-0xc672-0x4332-0x8399a96952065b5a asf warning: unknown asf object 0xd9aade20-0x7c17-0x4f9c-0xbc288555dd98e2a2 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 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" main debug: removing module "ffmpeg" 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 396s 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 2m45.791703s, kernel 0m0.731051s, user 2m38.918513s main debug: thread 4380 joined (input/input.c:412) main: nothing to play

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 09 Mar 2007 06:22

There is no such thing as 44000 audio for sampling.

WMap audio is not supported under FFmpeg and if you have WMFormat 11 installed (WMP 11) it also won't work under VLC. However WMP 10 did work for WMap audio.

colinnwn
New Cone
New Cone
Posts: 3
Joined: 07 Mar 2007 17:41
Location: Dallas TX

Postby colinnwn » 11 Mar 2007 22:23

I realized after I started transcoding that the CD audio rate is actually 44100. I didn't redo it because I thought even though it wasn't a standard, any reasonable number would work, it would just affect the quality. Is this not true?

And do I understand correctly that FFmpeg is doing the transcoding for VLC, so VLC won't be able to transcode the audio track of this video no matter what I do? If I had an already transcoded video with a WMap audio track, that if I exchange WMP10 for 11, VLC should be able to play it but still couldn't transcode it?

Thanks.

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 11 Mar 2007 22:43

I realized after I started transcoding that the CD audio rate is actually 44100. I didn't redo it because I thought even though it wasn't a standard, any reasonable number would work, it would just affect the quality. Is this not true?
VLC recognizes valid sample frequencies but I'm not sure it will up or down convert.
And do I understand correctly that FFmpeg is doing the transcoding for VLC, so VLC won't be able to transcode the audio track of this video no matter what I do? If I had an already transcoded video with a WMap audio track, that if I exchange WMP10 for 11, VLC should be able to play it but still couldn't transcode it?
I have never been successful in transcoding WMa or WMap audio in any of the VLC versions. So really this discussion may be a moot point. I was kind of wondering if anyone else would jump on this discussion.

However it is my understanding that transcoding some formats into WMv and WMa is possible using the command line in VLC 0.8.6, but I have not tried this for a lack of desire to use this format.

When transcoding any MP4 type video to MPEG 2 the command FPS=<framrate> is necessary and when transcoding a number of audio formats to other formats the command samplerate=<rate> is also necessary. So was worth a shot to see if anyone else may have any success with WMa or a working WMap for audio.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 111 guests