Need help with "command" function.

C E Macfarlane c.e.macfarlane at macfh.co.uk
Wed Nov 11 04:19:28 PST 2015


Doh!  Originally sent this only to myself ...

No, doesn't work.  Not absolutely sure why not, but one problem seems to be
that the default option that GiP feeds to ffmpeg ...
	-acodec copy
... is still being applied as well as and before the option from the GiP
command-line ...
	-acodec (or -c:a) <other codec>

See below for a debug listing ...

www.macfh.co.uk/CEMH.html

>     >     >     This is what I'm trying...
>     >     >     get_iplayer --force --type=radio --mode=flashaaclow
>     >     >     --command="ffmpeg -i XfileprefixX.m4a -vn -c:a libmp3lame
>     >     >     -b:a 96k XfileprefixX.mp3; rm XfileprefixX.m4a"
>     --get "Bells
>     >     >     on Sunday"
>     >     >
>     get_iplayer --force --type=radio --mode=flashaaclow --get "Bells on
>     Sunday" --ffmpeg-radio-opts '-acodec mp3'

get_iplayer --force --type=radio --mode=flashaaclow --get "Bells on Sunday"
	--ffmpeg-radio-opts '-c:a libmp3lame -b:a 96k'
...
ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 27 2014 22:27:25 with gcc 4.2.3 (GCC)
  configuration: --prefix=/opt/share --enable-small --enable-gpl --enable-no
nfree --disable-debug --disable-runtime-cpudetect --disable-doc --disable-ar
mv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument
'/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partia
l.m4a.flv'.
Reading option '-vn' ... matched as option 'vn' (disable video) with
argument '1'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec
('copy' to copy stream)) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument
'libmp3lame'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please
use -b:v)) with argument '96k'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option
'/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partia
l.m4a' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file
/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partial
.m4a.flv.
Successfully parsed a group of options.
Opening an input file:
/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partial
.m4a.flv.
[flv @ 0xe62480] Format flv probed with size=2048 and score=100
[flv @ 0xe62480] Before avformat_find_stream_info() pos: 13 bytes read:32768
seeks:0
[flv @ 0xe62480] max_analyze_duration 5000000 reached at 5040000
microseconds
[flv @ 0xe62480] After avformat_find_stream_info() pos: 34382 bytes
read:65536 seeks:0 frames:122
Input #0, flv, from
'/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partia
l.m4a.flv':
  Metadata:
    moovPosition    : 28
    aacaot          : 2
    audiochannels   : 2
    length          : 8551680
    timescale       : 90000
    sampletype      : mp4a
  Duration: 00:01:35.02, start: 0.000000, bitrate: 51 kb/s
    Stream #0:0, 122, 1/1000: Audio: aac, 48000 Hz, stereo, fltp
Successfully opened the file.
Parsing a group of options: output file
/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partial
.m4a.
Applying option vn (disable video) with argument 1.
Applying option acodec (force audio codec ('copy' to copy stream)) with
argument copy.
Applying option c:a (codec name) with argument libmp3lame.
Applying option b:a (video bitrate (please use -b:v)) with argument 96k.
Successfully parsed a group of options.
Opening an output file:
/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partial
.m4a.
Unknown encoder 'libmp3lame'
[AVIOContext @ 0xe61fa0] Statistics: 65536 bytes read, 0 seeks
INFO: Command exit code 1 (raw code = 256)
WARNING: flv conversion failed - retaining flv file
INFO: Recorded
/i-data/244ca2a4/BackUp/Media/Downloads/Bells_on_Sunday_-_2015-11-08.partial
.m4a.flv
DEBUG: Record using flashaaclow1 mode return code: '0'




More information about the get_iplayer mailing list