Deutsch   English   Français   Italiano  
<pan$aa1fc$21961175$e8dc4fbc$6b336423@linux.rocks>

View for Bookmarking (what is this?)
Look up another Usenet article

From: Farley Flud <ff@linux.rocks>
Subject: Need Help -- Audio Experts
Newsgroups: comp.os.linux.advocacy
Mime-Version: 1.0
Message-Id: <pan$aa1fc$21961175$e8dc4fbc$6b336423@linux.rocks>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 53
Path: ...!eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Wed, 25 Dec 2024 15:37:36 +0000
Nntp-Posting-Date: Wed, 25 Dec 2024 15:37:36 +0000
X-Received-Bytes: 1587
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Bytes: 1921

Music is available on YouTube (???) but it is containerized in a video
format.

Fortunately, with GNU/Linux, it is easy to extract.

First, determine the audio format:

ffprobe file.xxx

Usually, this will be AAC or OPUS.

Second, do the extraction:

ffmpeg -i file.xxx -acodec copy file.(opus/aac)

So far, so good.  But how can we now play the audio?

If the file is OPUS just do:

opusdec file.opus --force-wav - | aplay

Beautiful!

If the file is AAC then do:

faad -w file.aac | aplay

However this does NOT work, although according to the docs
it should.

The stdout of faad is fucked.  Most likely it is a serious bug.

This DOES work:

ffmpeg -i file.aac -f wav pipe:1 | aplay

(I omit the WAV file analysis of the two different commands.)

Can anyone confirm that the "faad -w" command is FUBAR?

If I get confirmation then I will report the bug.

Note that this DOES work:

faad -o file.wav file.acc && aplay file.wav

Only in the stdout case (-w) is the WAV file maligned.

Note: I don't want to hear any "Duh, just use VLC man" responses.


-- 
Systemd: solving all the problems that you never knew you had.