Gentoo Archives: gentoo-user

From: Willie M <matthews.willie80@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: what audio file format / container to play on Android.
Date: Mon, 04 Jul 2016 21:56:32
Message-Id: c0b5d43e-e436-d1a2-c024-969ff51b5966@gmail.com
In Reply to: Re: [gentoo-user] OT: what audio file format / container to play on Android. by Stroller
1 On 07/02/2016 05:30 AM, Stroller wrote:
2 >
3 >> On 2 Jul 2016, at 10:43, Mick <michaelkintzios@×××××.com> wrote:
4 >>
5 >> Since the youtube-dl can only download the audio stream as suggested above,
6 >> you don't need to transcode with ffmpeg - although it is not difficult to do so
7 >> for streams you have already downloaded:
8 >>
9 >> ffmpeg -i input.mp4 -q:a 0 -map a output.mp3
10 >
11 > Yeah, but I'd obviously prefer not to transcode, because that's lossy.
12 >
13 >> or output.m4a if you prefer.
14 >
15 > Well, I tried that.
16 >
17 > youtube-dl -x --audio-format best http://www.bbc.co.uk/programmes/b07fl5bh
18 >
19 > This gives an .m4a file which also does not play on the device.
20 >
21 > The question may boil down to the Google Drive audio / video player, and its (in)ability to play AAC audio. But that would be surprising, don't you think?
22 >
23 >> As an alternative for BBC you could also use get_iplayer:
24 >>
25 >> get_iplayer --get XXXX --radiomode=flashaachigh --
26 >> flvstreamer="/usr/bin/flvstreamer"
27 >
28 > I'm reluctant to do that at present, because I have a "perfectly good" audio stream already.
29 >
30 > The .mp4 or .m4a files I have play just fine in VLC or Quicktime Player.
31 >
32 > I assumed that it should only be necessary to repack the audio into a different container to get it to play.
33 >
34 > In my experience most players conform to Postel's Principle, being liberal in the input they'll accept. When I've had media playback problems before, I think it's usually been a container issue.
35 >
36 > Stroller.
37 >
38 >
39
40 I also tried to download it and play it using best but it would not
41 play. You best bet is to just extract the audio as mp3 using the command
42 I showed you.
43
44 youtube-dl -x --audio-format mp3 http://www.bbc.co.uk/programmes/b07fl5bh
45
46 I had no problem at all playing it.
47 --
48
49 Willie Matthews
50 matthews.willie80@×××××.com
51 (702) 659-9966

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] OT: what audio file format / container to play on Android. Stroller <stroller@××××××××××××××××××.uk>