> On 5 Jul 2016, at 16:54, wabe <waben...@gmail.com> wrote: > > If you wanna put the audio data into another container without recoding > it, you can use for example something like that: > > ffmpeg -i filename.mp4 -acodec copy filename.m4a
This has worked. Many thanks for your help. I did not actually expect this, as I thought .mp4 and .m4a were the same thing (see links below) and renaming the .mp4 to .m4a did not have any effect. ffmpeg did, however, seem to do no more than copy the stream (it took only a second or so), so presumably it has marked the container differently somehow. See attached, anyone who's interested. I appreciate the contributions of all who've replied, Stroller. [1] http://stackoverflow.com/questions/9412384/ [2] https://en.wikipedia.org/wiki/MPEG-4_Part_14#.MP4_versus_.M4A [3] https://wiki.jriver.com/index.php/MP4_and_M4A_File_Support
$ youtube-dl http://www.bbc.co.uk/programmes/b07fl5bh [bbc.co.uk] b07fl5bh: Downloading video page [bbc.co.uk] b07fl2qw: Downloading media selection XML [bbc.co.uk] b07fl2qw: Downloading m3u8 information [bbc.co.uk] b07fl2qw: Downloading m3u8 information [bbc.co.uk] b07fl2qw: Downloading m3u8 information [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 390 [download] Destination: The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4 [download] 100% of 40.56MiB in 01:36 [ffmpeg] Fixing malformated aac bitstream in "The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4" $ ffmpeg -i The\ Bronze\ Age\ Collapse\,\ In\ Our\ Time\ -\ BBC\ Radio\ 4-b07fl2 qw.mp4 -acodec copy The\ Bronze\ Age\ Collapse\,\ In\ Our\ Time\ -\ BBC\ Radio\ 4\ \[b07fl2qw\].m4a ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8.5 (Gentoo 4.8.5 p1.3, pie-0.6.2) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=' ' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-vaapi --disable-vdpau --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --enable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --disable-libfdk-aac --enable-libopenjpeg --enable-libbluray --disable-libcelt --disable-libgme --enable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --enable-librtmp --enable-libssh --enable-libschroedinger --disable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --enable-libfreetype --enable-libsoxr --enable-pthreads --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --disable-libfaac --enable-libtheora --enable-libtwolame --disable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-x11grab --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'The Bronze Age Collapse, In Our Time - BBC Radio 4-b07fl2qw.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf56.25.101 Duration: 00:41:35.92, start: 0.000000, bitrate: 129 kb/s Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name : SoundHandler Output #0, ipod, to 'The Bronze Age Collapse, In Our Time - BBC Radio 4 [b07fl2qw].m4a': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf56.25.101 Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 128 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help size= 39457kB time=00:41:35.91 bitrate= 129.5kbits/s video:0kB audio:38999kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.174792% $