Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: candycanearter07 Newsgroups: comp.os.linux.advocacy Subject: Re: Need Help -- Audio Experts Date: Wed, 25 Dec 2024 16:20:03 -0000 (UTC) Organization: the-candyden-of-code Lines: 57 Message-ID: References: Injection-Date: Wed, 25 Dec 2024 17:20:04 +0100 (CET) Injection-Info: dont-email.me; posting-host="44517e9e7eec9b7ed0131131f3836f21"; logging-data="2599789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18YGEe575Ca7krXmF/8v66p3rJL/On/xeAEh6K4hZ1niA==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:mWGZghuH3TjrDhHGges354j76uo= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA] wrote at 15:37 this Wednesday (GMT): > 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. If you want a command line media player, mpv is also pretty good. If you're stubborn about keeping wav, you can also use yt-dlp with the --extract-audio and --audio-format wav flags. -- user is generated from /dev/urandom