Feature request --pvr-summary-only?

Arthur Dent misc.lists at blueyonder.co.uk
Mon Apr 14 01:02:48 PDT 2014


Hello all,

I love get_iplayer. Thank you to the dedicated development team.

One small niggle for me however comes from running -pvr from a cron job.
On my Fedora 20 system my logs fill with output from the download
process. The strange thing is that, even though I currently run it with
the -q (quiet) switch, it still produces output.

This is my cron command:
12 * * * * /usr/local/bin/get_iplayer --pvr --quiet
 
I include a small sample of the output below:

I do want to be informed when a download has completed because with some
programmes that only run sporadically (like Horizon for instance) I
might not have realised that the programme had aired.

So ideally I would like an option that allowed the download to run
without producing output, but would display (and hence log) a summary at
the end - e.g.:
"New radio programme: 'The Hitchhiker's Guide to the Galaxy - Primary
Phase: 6. Fit the Sixth' Successfully recorded"

Would that be possible?

Thanks in advance.

Mark

A small sample of the current output:

CMDOUT (ffmpeg version 2.1.4 Copyright (c) 2000-2014 the FFmpeg developers)
 CMDOUT (  built on Feb 25 2014 08:24:47 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7))
 CMDOUT (  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect)
 CMDOUT (  libavutil      52. 48.101 / 52. 48.101)
 CMDOUT (  libavcodec     55. 39.101 / 55. 39.101)
 CMDOUT (  libavformat    55. 19.104 / 55. 19.104)
 CMDOUT (  libavdevice    55.  5.100 / 55.  5.100)
 CMDOUT (  libavfilter     3. 90.100 /  3. 90.100)
 CMDOUT (  libavresample   1.  1.  0 /  1.  1.  0)
 CMDOUT (  libswscale      2.  5.101 /  2.  5.101)
 CMDOUT (  libswresample   0. 17.104 /  0. 17.104)
 CMDOUT (  libpostproc    52.  3.100 / 52.  3.100)
 CMDOUT (Input #0, flv, from '/home/mark/Media/Video/Inspector De Luca - s01e04 - Via Delle Oche.flashhigh1.b01jg7jl.6000.2014-04-12.partial.mp4.flv':)
 CMDOUT (  Metadata:)
 CMDOUT (    moovPosition    : 36)
 CMDOUT (    avcprofile      : 77)
 CMDOUT (    avclevel        : 30)
 CMDOUT (    aacaot          : 2)
 CMDOUT (    videoframerate  : 25)
 CMDOUT (    audiochannels   : 2)
 CMDOUT (  Duration: 01:36:35.01, start: 0.000000, bitrate: 807 kb/s)
 CMDOUT (    Stream #0:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 1k tbn, 50 tbc)
 CMDOUT (    Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp)
 CMDOUT (Output #0, mp4, to '/home/mark/Media/Video/Inspector De Luca - s01e04 - Via Delle Oche.flashhigh1.b01jg7jl.6000.2014-04-12.partial.mp4':)
 CMDOUT (  Metadata:)
 CMDOUT (    moovPosition    : 36)
 CMDOUT (    avcprofile      : 77)
 CMDOUT (    avclevel        : 30)
 CMDOUT (    aacaot          : 2)
 CMDOUT (    videoframerate  : 25)
 CMDOUT (    audiochannels   : 2)
 CMDOUT (    encoder         : Lavf55.19.104)
 CMDOUT (    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 16k tbn, 1k tbc)
 CMDOUT (    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo)
 CMDOUT (Stream mapping:)
 CMDOUT (  Stream #0:0 -> #0:0 (copy))
 CMDOUT (  Stream #0:1 -> #0:1 (copy))
 CMDOUT (Press [q] to stop, [?] for help)
 CMDOUT (frame=13024 fps=0.0 q=-1.0 size=   50749kB time=00:08:40.96 bitrate= 798.0kbits/s    
frame=26066 fps=26066 q=-1.0 size=  101518kB time=00:17:22.62 bitrate= 797.6kbits/s    
frame=39100 fps=26066 q=-1.0 size=  152251kB time=00:26:03.98 bitrate= 797.5kbits/s    
frame=52130 fps=26065 q=-1.0 size=  203030kB time=00:34:45.20 bitrate= 797.6kbits/s    
frame=64613 fps=25698 q=-1.0 size=  251606kB time=00:43:04.51 bitrate= 797.5kbits/s    
frame=77592 fps=25741 q=-1.0 size=  302169kB time=00:51:43.65 bitrate= 797.6kbits/s    
frame=90689 fps=25805 q=-1.0 size=  353160kB time=01:00:27.52 bitrate= 797.5kbits/s    
frame=103874 fps=25875 q=-1.0 size=  404483kB time=01:09:14.94 bitrate= 797.5kbits/s    
frame=115335 fps=25548 q=-1.0 size=  449117kB time=01:16:53.39 bitrate= 797.5kbits/s    
frame=128459 fps=25618 q=-1.0 size=  500217kB time=01:25:38.34 bitrate= 797.5kbits/s    
frame=141093 fps=25586 q=-1.0 size=  549416kB time=01:34:03.73 bitrate= 797.5kbits/s    
frame=144875 fps=25365 q=-1.0 Lsize=  568122kB time=0)
 CMDOUT (1:36:35.00 bitrate= 803.1kbits/s    
)
 CMDOUT (video:498003kB audio:66118kB subtitle:0 global headers:0kB muxing overhead 0.709187%)
 CMDOUT ()
 CMDOUT ( Started writing to temp file.)
 CMDOUT ( Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  0% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% --------------------------------------------)
 CMDOUT (-----------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: >  1% -------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  1% ------------------------------------------------------|
 Progress: =>  2% ------------------------------)
 CMDOUT (------------------------|
 Progress: =>  2% ------------------------------------------------------|
 Progress: =>  2% ------------------------------------------------------|
 Progress: =>  2% ------------------------------------------------------| 

and so on....




More information about the get_iplayer mailing list