Linux Terminal Script

Clive roadcone at gmx.com
Tue Dec 22 14:09:07 PST 2015


Jon,

A copy/paste from four McLevy files - two converted, two failed but with 
separate errors.

Clive

clive at clive-MX8716B ~/Downloads/x/Spoken Word/Plays/McLevy $ find . 
-iname \*.aac | while read f; do ffmpeg -i "$f" -c copy -bsf:a 
aac_adtstoasc "${f%.aac}".m4a; done
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg 
developers
   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
   configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg 
--enable-avresample --disable-debug --enable-nonfree --enable-gpl 
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb 
--disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse 
--enable-libdcadec --enable-libfreetype --enable-libx264 
--enable-libx265 --enable-libfdk-aac --enable-libvorbis 
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex 
--enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid 
--enable-libvo-aacenc --enable-libvidstab
   libavutil      55.  9.100 / 55.  9.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 17.100 /  6. 17.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
[aac @ 0xa7e3200] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 
'./Afternoon_Play_McLevy_-_Series_7_-_1._The_Firebrand_b00yync9_default.aac':
   Duration: 00:53:23.84, bitrate: 109 kb/s
     Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 109 kb/s
[ipod @ 0xa7fcdc0] Codec for stream 0 does not use global headers but 
container format requires global headers
Output #0, ipod, to 
'./Afternoon_Play_McLevy_-_Series_7_-_1._The_Firebrand_b00yync9_default.m4a':
   Metadata:
     encoder         : Lavf57.19.100
     Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
109 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=   24640kB time=00:26:16.93 bitrate= 128.0kbits/s
Enter command: <target>|all <time>|-1 <command>[ <argument>]
Parse error, at least 3 arguments were expected, only 1 given in string 
'Levy_-_Series_7_-_4._A_Distant_Death_b00zm08b_default.aac'
size=   42644kB time=00:45:00.03 bitrate= 129.4kbits/s
video:0kB audio:42188kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 1.079245%
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg 
developers
   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
   configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg 
--enable-avresample --disable-debug --enable-nonfree --enable-gpl 
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb 
--disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse 
--enable-libdcadec --enable-libfreetype --enable-libx264 
--enable-libx265 --enable-libfdk-aac --enable-libvorbis 
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex 
--enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid 
--enable-libvo-aacenc --enable-libvidstab
   libavutil      55.  9.100 / 55.  9.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 17.100 /  6. 17.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
noon_Play_McLevy_-_Series_7_-_3._Prince_of_Darkness_b00zf340_default.aac: No 
such file or directory
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg 
developers
   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
   configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg 
--enable-avresample --disable-debug --enable-nonfree --enable-gpl 
--enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb 
--disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse 
--enable-libdcadec --enable-libfreetype --enable-libx264 
--enable-libx265 --enable-libfdk-aac --enable-libvorbis 
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex 
--enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid 
--enable-libvo-aacenc --enable-libvidstab
   libavutil      55.  9.100 / 55.  9.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 17.100 /  6. 17.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
[aac @ 0xaffc200] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 
'./Afternoon_Play_McLevy_-_Series_7_-_2._Dead_Reckoning_b00z5hr8_default.aac':
   Duration: 00:44:42.48, bitrate: 131 kb/s
     Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 131 kb/s
[ipod @ 0xb015dc0] Codec for stream 0 does not use global headers but 
container format requires global headers
Output #0, ipod, to 
'./Afternoon_Play_McLevy_-_Series_7_-_2._Dead_Reckoning_b00z5hr8_default.m4a':
   Metadata:
     encoder         : Lavf57.19.100
     Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
131 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=   42644kB time=00:45:00.03 bitrate= 129.4kbits/s
video:0kB audio:42188kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 1.079158%
clive at clive-MX8716B ~/Downloads/x/Spoken Word/Plays/McLevy $



More information about the get_iplayer mailing list