Hello all,
Is there a command line tool to extract wma from wmv without recoding/encoding? (ie., I don't want any processing and just need the original stream).
I tried ffmpeg but it gave me this error.
[NULL @ 00000000003fc880] Requested output format 'wma' is not a suitable output format
audio.wma: Invalid argument
Thank you in advance.
+ Reply to Thread
Results 1 to 8 of 8
-
-
Should work with mka as output format. E.g.:
Code:ffmpeg -i in.wmv -map 0:a:0 -c:a copy -y out.mka
-
Did you try "-f wma"? ffmpeg seems to expect "-f asf" instead. At least that's what ffmpeg choose if you omit the -f option completely and just name the output "whatever.wma". (Use -map and -c:a as shown by fornit.)
But do you really need the original, compressed stream or do you want to work/edit further on it? Then choose a lossless output format like PCM/WAV. -
Advanced Systems Format (asf) is the canonical container for Windows Media Audio.
-
You were right! Thank you for the pointer. I got rid of "-f wma" and ffmpeg produced the wma file just as what I wanted.
However, the original audio stream was 96Kpbs (according to MediaInfo) and the output file is 128kbps so looks like ffmpeg did do some minor recoding. Is there any option to tell ffmpeg to preserve the original bitrate? -
What does the ffmpeg log say? If it says it copied the track(*) then I would trust it and assume MediaInfo was working incorrectly. MediaInfo isn't always accurate with >1 tracks + variable bitrate when it comes to detecting the average bitrates.
(*) I.e. you used -c:a copy or -c copy and the log shows something like:
Code:Stream mapping: Stream #0:0 -> #0:0 (copy)
-
Thanks, sneaker. I added "-c:a copy" and looks like it worked. Thank you!
Code:Input #0, asf, from 'R:\hcm1m7cap011\M7VIREC01\VIREC165\ADNC0400V0096A\Vi0165201 8\Vi0165201808\Vi016520180810\Vi016520180810111500112000000100.wmv': Metadata: WMFSDKNeeded : 0.0.0.0000 DeviceConformanceTemplate: MP@ML WMFSDKVersion : 12.0.7601.17514 IsVBR : 0 Duration: 00:05:00.11, start: 0.000000, bitrate: 497 kb/s Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, fltp , 96 kb/s Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x288, 400 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc Output #0, asf, to 'D:\Dinh\MRL\AudioRefs\0165\20180810111500.wma': Metadata: WMFSDKNeeded : 0.0.0.0000 DeviceConformanceTemplate: MP@ML WMFSDKVersion : 12.0.7601.17514 IsVBR : 0 WM/EncodingSettings: Lavf58.17.101 Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, fltp , 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help size= 2598kB time=00:02:21.52 bitrate= 150.4kbits/s speed= 160x video:0kB audio:1662kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 56.301533% Exiting normally, received signal 2.
Similar Threads
-
Any command line tool for windows to edit MP4 metadata without remuxing?
By dothrakihorde in forum EditingReplies: 7Last Post: 16th Aug 2018, 18:00 -
Recommended command line cross-platform download tool, not youtube-dl?
By colorstar in forum Newbie / General discussionsReplies: 0Last Post: 12th Dec 2017, 07:38 -
tsMuxeR command line
By t00 in forum Blu-ray RippingReplies: 7Last Post: 19th Nov 2017, 12:20 -
PotPlayer: Command Line
By burningbush in forum Software PlayingReplies: 5Last Post: 7th Dec 2013, 17:54 -
How to Use x264 Command Line
By Anonymous344 in forum Newbie / General discussionsReplies: 37Last Post: 2nd Nov 2013, 08:49