2
1
For .webm files obtained with youtube-dl-f bestaudio containing no video stream, is it preferable to run ffmpeg -i input.webm -vn -c:a copy output.opus or can one simply rename the source file, changing the extension?
I mean, the audio stream is clearly the same, but regarding the metadata, is there disadvantage in the second approach?
[Update] I checked metadata with mediainfo. Even if I save the ffmpeg output to .webm (by running ffmpeg -i input.webm -vn -c:a copy output.webm), the metadata differs.
Notice the new entry called "Bit depth":
And for the record, this is the .opus result:
I'd like a canonical answer on whether there's something in the container definition that identifies it as a "pure audio" file as opposed to a audio/video file, something that is handled correctly only by "re-wrapping" the stream in a new container file.


Suggestion: You can answer this question yourself by using MediaInfo or with a no-op command (
ffmpeg -i input.webmvsffmpeg -i output.opus). Have you tried this? – oldmud0 – 2017-07-26T01:38:32.197@oldmud0 I had tried mediainfo, but not the second suggestion. I updated the question to address your comment. Thanks. – Marc.2377 – 2017-07-26T02:28:13.743