These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

avconv not handling 896 x 504

user-533

I'm on Ubuntu 14.04 64-bit and have been successfully using get_iplayer from the ppa for over a month now. I download tv shows in the default mode (flashvhigh which is normally 832 x 468). Just lately I've noticed some shows are now coming down at resolution of 896 x 504 which unfortunately results in avconv being unable to convert and ending in error:

Code:
$ get_iplayer -g 724
get_iplayer 2.86-2-g969bd34-ppa17, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

Matches:
724:    Match of the Day - 2014 FIFA World Cup: 01/07/2014, BBC Sport, Football,Sport,TV,World Cup, default

INFO: 1 Matching Programmes
INFO: Checking existence of default version
INFO: flashvhigh1,flashvhigh2,flashhigh1,flashhigh2,flashstd1,flashstd2,flashlow1,flashlow2 modes will be tried for version default
INFO: Trying flashvhigh1 mode to record tv: Match of the Day - 2014 FIFA World Cup: 01/07/2014
INFO: File name prefix = Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014
RTMPDump v2.4-n87-gita9f353c-ppa8~saucy
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
INFO: Command exit code 1 (raw code = 256)
WARNING: Failed to stream file /home/gus/Downloads/bbc/Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014.partial.mp4.flv via RTMP
INFO: skipping flashvhigh1 mode
INFO: Trying flashvhigh2 mode to record tv: Match of the Day - 2014 FIFA World Cup: 01/07/2014
INFO: File name prefix = Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014
RTMPDump v2.4-n87-gita9f353c-ppa8~saucy
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   duration              2656.00
INFO:   moovPosition          28.00
INFO:   audiocodecid          mp4a
INFO:   width                 896.00
INFO:   height                504.00
INFO:   videocodecid          avc1
INFO:   avcprofile            100.00
INFO:   avclevel              31.00
INFO:   aacaot                2.00
INFO:   audiosamplerate       48000.00
INFO:   audiochannels         2.00
INFO:   videoframerate        25.00
INFO: trackinfo:
INFO:   length                239039999.00
INFO:   timescale             90000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
INFO:   length                239036400.00
INFO:   timescale             90000.00
INFO:   language              und
INFO: sampledescription:
INFO:   sampletype            avc1
477157.786 kB / 2655.98 sec (99.9%)
Download complete
avconv version 9.13-6:9.13-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on May  9 2014 13:34:03 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[flv @ 0x183b020] negative cts, previous timestamps might be wrong
    Last message repeated 93 times
[flv @ 0x183b020] max_analyze_duration reached
Input #0, flv, from '/home/gus/Downloads/bbc/Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014.partial.mp4.flv':
  Metadata:
    moovPosition    : 28
    avcprofile      : 100
    avclevel        : 31
    aacaot          : 2
    audiochannels   : 2
    videoframerate  : 25
  Duration: 00:44:16.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuv420p, 896x504 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, fltp
Output #0, mp4, to '/home/gus/Downloads/bbc/Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014.partial.mp4':
  Metadata:
    moovPosition    : 28
    avcprofile      : 100
    avclevel        : 31
    aacaot          : 2
    audiochannels   : 2
    videoframerate  : 25
    encoder         : Lavf54.20.4
    Stream #0.0: Video: libx264, yuv420p, 896x504 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 1k tbc
    Stream #0.1: Audio: libvo_aacenc, 48000 Hz, stereo
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
[mp4 @ 0x194a920] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 40 >= 40
av_interleaved_write_frame(): Invalid argument
INFO: Command exit code 1 (raw code = 256)
WARNING: flv conversion failed - retaining flv file
INFO: Recorded /home/gus/Downloads/bbc/Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014.partial.mp4.flv

INFO: Downloaded Thumbnail to '/home/gus/Downloads/bbc/Match_of_the_Day-s01e01-2014_FIFA_World_Cup_01_07_2014.jpg'



It appears ffmpeg is no longer easily installable in Ubuntu 14.04. I tried a static ffmpeg build to manually convert the flv to mp4 and it worked although with warnings about "negative cts, previous timestamps might be wrong"

Any ideas?

user-2

The video size isn't relevant per se, except that it suggests a different production pipeline was used for that programme. Whatever case, the video was messed up. I suspect this is an uncommon case, but if you find this occurring for programmes that are not related to a special event like the World Cup, post a couple of examples and I'll take a look.

As for avconv, there is nothing you can do other than what you have already done - switch to ffmpeg. This one of the ways ffmpeg and avconv have diverged since libav forked a few years ago. ffmpeg now prints the timestamp warnings but keeps going, while avconv has the old code that prints the warnings and dies.

get_iplayer prefers avconv if it is installed (to accommodate Debian-based distros). If you want to always use ffmpeg, set the
Code:
ffmpeg
option in your preferences. There is a PPA you can use for ffmpeg installation:

https://launchpad.net/~samrog131/+archive/ppa

These forums are archived

See this post for further info