Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: ethanduong on April 10, 2023, 08:33:10 PM

Title: Can't play extracted Opus audio from Youtube AV1 video with any player
Post by: ethanduong on April 10, 2023, 08:33:10 PM
So I grabbed a Youtube video
using IDM.
I know this is the original YouTube video and not converted by any third-party converter because of the link:
(https://i.imgur.com/7nB5ARt.png)

On MPC-HC the audio codec is said to be Opus:
(https://i.imgur.com/lWrkPXy.png)

But when I extract it using Avidemux, no file extension was given:
(https://i.imgur.com/wswqocS.png)

So I tried Ogg, Opus, m4a, mkv as the extension of the audio extraction. None was recognized and processed by Foobar, WMP, Audacity. Even MPC-HC refused to play it after extraction.

I don't know much about codec though, and I'm just curious about the reason. Any help would be very much appreciated!

This is the archive containing both the original video and the extracted audio in case anyone wants to take a look:
https://drive.google.com/file/d/123Z8C0zXzk6Cy4Chy-qqU6qMW9KzuN_q/view?usp=share_link (https://drive.google.com/file/d/123Z8C0zXzk6Cy4Chy-qqU6qMW9KzuN_q/view?usp=share_link)
Title: Re: Can't play extracted Opus audio from Youtube AV1 video with any player
Post by: szlldm on April 10, 2023, 08:43:44 PM
I think it exports raw Opus audio, without container.
Title: Re: Can't play extracted Opus audio from Youtube AV1 video with any player
Post by: ethanduong on April 11, 2023, 02:41:59 AM
Quote from: szlldm on April 10, 2023, 08:43:44 PMI think it exports raw Opus audio, without container.

Appreciate the info! Now what can/should I do with it? Audacity won't process it and it's the only audio-processing program I have on my computer.
Title: Re: Can't play extracted Opus audio from Youtube AV1 video with any player
Post by: eumagga0x2a on April 11, 2023, 06:47:05 AM
If your purpose is to edit the audio in Audacity, then open the source MKV directly in Audacity. Unless you have a build with reduced functionality, it should be able to demux Matroska and import the audio track just fine.

Your other options are to request an AAC audio stream for this video passing the appropriate value to the -f option of yt-dlp on the command line (often 140) or to save audio using Avidemux, but with codec set to PCM. Raw Opus streams are useless.
Title: Re: Can't play extracted Opus audio from Youtube AV1 video with any player
Post by: ethanduong on April 11, 2023, 02:14:34 PM
Quote from: eumagga0x2a on April 11, 2023, 06:47:05 AMIf your purpose is to edit the audio in Audacity, then open the source MKV directly in Audacity. Unless you have a build with reduced functionality, it should be able to demux Matroska and import the audio track just fine.

Your other options are to request an AAC audio stream for this video passing the appropriate value to the -f option of yt-dlp on the command line (often 140) or to save audio using Avidemux, but with codec set to PCM. Raw Opus streams are useless.

Oh thanks a lot! Somehow I didn't think about just importing the file directly to Audacity. It worked!