Gentoo Archives: gentoo-user

From: David Haller <gentoo@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: what audio file format / container to play on Android.
Date: Tue, 05 Jul 2016 21:45:25
Message-Id: 20160705091020.xquja4tzqqucdlwj@grusum.endjinn.de
In Reply to: Re: [gentoo-user] OT: what audio file format / container to play on Android. by Stroller
1 Hello,
2
3 On Sat, 02 Jul 2016, Stroller wrote:
4 >Well, I tried that.
5 >
6 > youtube-dl -x --audio-format best http://www.bbc.co.uk/programmes/b07fl5bh
7 >
8 >This gives an .m4a file which also does not play on the device.
9
10 Have you tried mkv? E.g. download to m4a as above and then do a quick
11
12 mkvmerge -o output.mkv input.m4a
13
14 or use youtube-dl / ffmpeg like this:
15
16 youtube-dl -x --audio-format best \
17 --recode-video mkv --postprocessor-args "-acodec copy" URL
18
19 Both give me a mkv containing the unaltered aac stream and plays well
20 with mplayer, vlc, xine,
21
22 -dnh
23
24 --
25 Shh! Be vewy quiet, I'm hunting wuntime errors!