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: Fri, 01 Jul 2016 22:53:04
Message-Id: 6cd0a6a1-5d6a-31ad-2b85-0c213a691f9a@gmail.com
In Reply to: [gentoo-user] OT: what audio file format / container to play on Android. by Stroller
1 On 07/01/2016 03:10 PM, Stroller wrote:
2 > I've only recently started using my Android device for playing audio.
3 >
4 > About once a week I listen to a podcast, which is usually an MP3 I've downloaded from NPR.org.
5 >
6 > On my laptop I copy these to Google Drive (big shout to net-misc/drive) and then I can access then via Drive on my Android phone.
7 >
8 > Google Drive on Android seems to play these audio files on a built-in player; its only controls are to skip forwards or backwards 30 seconds, but this is adequate for podcasts.
9 >
10 > I have here a BBC radio show that I downloaded a couple of weeks ago with net-misc/youtube-dl.
11 >
12 > When downloaded it saves as an .mp4 file. I have also tried renaming it to .m4a but, either way, Google Drive complains "unable to process this video".
13 >
14 > How do I need to process this audio to get it to play, please?
15 >
16 > I'd obviously prefer to keep the same audio stream, rather than transcoding it. I assume that the player can handle AAC (??), it just needs to be in another container.
17 >
18 > Thanks in advance for any suggestions,
19 >
20 > Stroller.
21 >
22 >
23 >
24 > Details:
25 >
26 >
27 > $ youtube-dl http://www.bbc.co.uk/programmes/b07fl5bh
28 > [bbc.co.uk] b07fl5bh: Downloading video page
29 > [bbc.co.uk] b07fl2qw: Downloading media selection XML
30 > [bbc.co.uk] b07fl2qw: Downloading m3u8 information
31 > [bbc.co.uk] b07fl2qw: Downloading m3u8 information
32 > [bbc.co.uk] b07fl2qw: Downloading m3u8 information
33 > [hlsnative] Downloading m3u8 manifest
34 > [hlsnative] Total fragments: 390
35 > [download] Destination: The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4
36 > [download] 100% of 40.56MiB in 01:42
37 > [ffmpeg] Fixing malformated aac bitstream in "The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4"
38 > $ file The\ Bronze\ Age\ Collapse\,\ In\ Our\ Time\ -\ BBC\ Radio\ 4-b07fl2qw.mp4
39 > The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]
40 > $ midentify The\ Bronze\ Age\ Collapse\,\ In\ Our\ Time\ -\ BBC\ Radio\ 4-b07fl2qw.mp4
41 > ID_AUDIO_ID=0
42 > ID_AID_0_LANG=eng
43 > ID_CLIP_INFO_NAME0=major_brand
44 > ID_CLIP_INFO_VALUE0=isom
45 > ID_CLIP_INFO_NAME1=minor_version
46 > ID_CLIP_INFO_VALUE1=512
47 > ID_CLIP_INFO_NAME2=compatible_brands
48 > ID_CLIP_INFO_VALUE2=isomiso2mp41
49 > ID_CLIP_INFO_NAME3=encoder
50 > ID_CLIP_INFO_VALUE3=Lavf56.25.101
51 > ID_CLIP_INFO_N=4
52 > ID_FILENAME=The\ Bronze\ Age\ Collapse,\ In\ Our\ Time\ -\ BBC\ Radio\ 4-b07fl2qw.mp4
53 > ID_DEMUXER=lavfpref
54 > ID_AUDIO_FORMAT=MP4A
55 > ID_AUDIO_BITRATE=128000
56 > ID_AUDIO_RATE=48000
57 > ID_AUDIO_NCH=2
58 > ID_START_TIME=0.00
59 > ID_LENGTH=2495.91
60 > ID_SEEKABLE=1
61 > ID_CHAPTERS=0
62 > ID_AUDIO_BITRATE=128000
63 > ID_AUDIO_RATE=48000
64 > ID_AUDIO_NCH=2
65 > ID_AUDIO_CODEC=ffaac
66 > ID_EXIT=EOF
67 > $
68 >
69 >
70
71 You can just have youtube-dl download just the audio of the youtube video.
72
73 youtube-dl -x --audio-format mp3 http://www.bbc.co.uk/programmes/b07fl5bh
74
75 You can also set other formats for the audio
76
77 "best", "aac", "vorbis", "mp3", "m4a", "opus", or "wav"
78
79 --
80
81 Willie Matthews
82 matthews.willie80@×××××.com

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. Mick <michaelkintzios@×××××.com>