OT: Help with Broken Downloads Please

Budge ajebay at errichel.co.uk
Tue Dec 22 10:34:46 PST 2015


On 22/12/15 15:48, batguano999 wrote:
>  > I believe this confirms my view that there is something there!!! 
>  > I assume running it through ffmpeg will sort it out but I need help with 
>  > correct commands. 
>  >  
>  > _______________________________________________ 
>  > get_iplayer mailing list 
>  > get_iplayer at lists.infradead.org 
>  > http://lists.infradead.org/mailman/listinfo/get_iplayer 
>  > 
> Doh!
> Your original post says they contain aac.
> So an FFmpeg command would be like this...
> ffmpeg -i foo.mp3 -c copy foo.m4a

Thanks again.  That was fun!!!  Here is the result:--

alastair at ibmx3400:~/GiP_Recordings> ffmpeg -i
Composer_of_the_Week_-_Carl_Philipp_Emmanuel_Bach_1714-1788_1._The_Belligerent_Flautist.mp3
-c copy
Composer_of_the_Week_-_Carl_Philipp_Emmanuel_Bach_1714-1788_1._The_Belligerent_Flautist.m4a
ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (SUSE Linux)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0
-grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g'
--optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g' --disable-htmlpages --enable-pic
--disable-stripping --enable-shared --disable-static
--enable-runtime-cpudetect --enable-gpl --disable-openssl
--enable-avresample --enable-libcdio --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libcelt --enable-libcdio
--enable-libdc1394 --enable-libfreetype --enable-libgsm
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-pic
--enable-pthreads --enable-vaapi --enable-vdpau --disable-decoder=dca
--enable-libdcadec --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-libtwolame
--enable-libvo-aacenc --enable-libx264 --enable-libx265 --enable-libxvid
--enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[aac @ 0xf36e40] Error decoding AAC frame header.
[aac @ 0xf358c0] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from
'Composer_of_the_Week_-_Carl_Philipp_Emmanuel_Bach_1714-1788_1._The_Belligerent_Flautist.mp3':
  Metadata:
    encoder         : Lavf53.24.2
    artist          : BBC Radio 4
    album           : Composer_of_the_Week - Carl_Ph
    track           : 1
    comment         : Tagged with EasyTAG
    title           : of the Week - Carl Philipp Emm
    date            : 2011
    genre           : Other
  Duration: 01:11:26.78, bitrate: 190 kb/s
    Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 190 kb/s
[ipod @ 0xf491c0] Codec for stream 0 does not use global headers but
container format requires global headers
Output #0, ipod, to
'Composer_of_the_Week_-_Carl_Philipp_Emmanuel_Bach_1714-1788_1._The_Belligerent_Flautist.m4a':
  Metadata:
    genre           : Other
    artist          : BBC Radio 4
    album           : Composer_of_the_Week - Carl_Ph
    track           : 1
    comment         : Tagged with EasyTAG
    title           : of the Week - Carl Philipp Emm
    date            : 2011
    encoder         : Lavf56.40.101
    Stream #0:0: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 190 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[ipod @ 0xf491c0] Malformed AAC bitstream detected: use the audio
bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc'
option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted
size=       1kB time=00:00:00.02 bitrate= 182.3kbits/s   
video:0kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!
alastair at ibmx3400:~/GiP_Recordings>

This tells me to use aac_adtstoasc to fix it but as usual  cannot quite
get the command.  What is the -bsf:a aac_adtstoasc command, or rather
where does it fit in total command string?
Sorry to be so dumb.



More information about the get_iplayer mailing list