| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > Testing / Bug Reports > Extracting Audio Wma V2 |
| Posted by: trodas Mar 14 2013, 09:06 PM | ||
| I would like to point out something at least odd, but maybe it is a bug. Usually, I need to export audio from many videos (to normalize it, etc.). Usualy works the Save WAV to save, well, not a WAV, yet a decodable data, witch using FFmpeg can be comverted to WAV and worked with later. In some cases I used the Export raw audio option, but usually everything works. Untill this video: http://www.moonfaker.com/videos4mirror/Re_Moon_Hoax_Not.wmv.zip When I saved the audio (raw as x.bit, "Save WAV" as x.wma) using VirtualDub, I cannot decode it using FFmpeg (latest):
Of course, I can much easier extract the audio using FFmpeg completely: ffmpeg -i x.wmv x.wav ...and it works just perfectly. Cases in point - exporting wma v2 audio somewhat not work at all. - saving WAV never produce actually a WAV and also did not work correctly when using wma v2 audio FFmpeg is open source and the code that save the audio well can be borrowed from it easily PS. I have a suggestion to make. After seeing some videos on YewTube, that emphasise choosing the setting "Video:Direct strem copy" - http://www.youtube.com/watch?v=lz8pZtk_ATE - how about to make this a default? Just for the simplier part of the users, lol. So that they not end up with crazy huge videos, so.... That should not hurt anyone? |
| Posted by: phaeron Mar 17 2013, 02:09 AM |
| Using the Save WAV command to produce a .wma file is bogus. WAV files can be compressed, and so that's what you're getting; however, not all programs can deal with this, and in your case you're likely relying on some scanning logic in FFMpeg that isn't guaranteed to be able to skip past the WAV header reliably. If what you want is an uncompressed PCM WAV file, change the audio mode. If you want raw data, use the Export Raw Audio command. |
| Posted by: Abrazo Mar 17 2013, 10:16 AM |
| @trodas I do not know what your final goal may be, but I do not see any problem to export whatever audio from within VirtualDub directly to a WAV by this method: > Set the Audio menu to Full processing mode > Set Audio > Compression... to "<No compression (PCM)>" > Set Audio > Conversion... > Sampling / Precision / Channels / High quality, to whatever you want > File > Save WAV... In this manner you can even transform or "convert" the audio directly into another codec-format, by: > setting Audio > Compression... to for exemple MPEG Layer-3 > File > Save WAV... I did a few tests with your sample video : no problem at all. It is only when leaving Audio-menu to "Direct Stream Copy" that you extract the original audio out of the movie and that you will get an audio-file that you maybe cannot read with another program. |
| Posted by: trodas Mar 18 2013, 10:57 AM |
| phaeron - you are right, usually it works, but not all the time, sadly Abrazo - thanks a lot for the explaination. I never come to realize, that what I choose VirtualDub to do in the Audio menu settings does apply to even the Save WAV function, witch I - to this day - seen as independent function that have really no connection to anything... I was dead wrong. And now I feel ashamed that I did not come to this conclusion sooner. In fact, I did not need FFmpeg now at all, since VirtualDub can and do save WAV perfectly... Mea culpa. |