user-1916
31-08-2017, 12:17 PM
My usage of get_iplayer is to download to computer harddrive, then copy that file to a USB stick which is then plugged into the USB port of a Samsung 5100 TV.
All has been well using the option
for some while, albeit receiving the warning about remapping to hvfxsd.
Since the start of August 2017, downloaded material has not been usable as it has been missing the audio, although the files play well (audio and video) on a computer using VLC on Ubuntu.
I found various discussions regarding this, such as this:
https://www.computing.net/answers/window...11344.html
I discovered that simply recoding the file produced by get_iplayer with Handbrake using the "out-of-the-box" setting was sufficient to create a playable (audio and video) file.
Whilst this was working well, there was a lot of time spent on the download and re-encoding. Also disk space was diminishing as I was keeping both versions.
using ffprobe I also discovered that the files directly produced by get_iplayer, at my options, were
Delving further into the settings of Handbrake I discovered that the critical setting was the Audio bitrate, which was at 160K in the preset dropdown.
I have a little experience with ffmpeg and discovered that
would also create a playable file. The actual codec seemed not to matter, but the audio bitrate was the breaking point
Whilst not a programmer, I can often successfully fiddle with existing code, and opened up the perl get_iplayer.
I changed the line
to
I changed from 160K as acquisition will be one of 96K, 128K, 320K from the figures given here:
https://github.com/get-iplayer/get_iplay...i/modesref
and it seemed redundant to specify 160K.
This fixes my issue, but I realise that hard coding options is generally regarded as "a bad thing", and of course I am now degrading my master copy, from which there can be no return.
I wonder if the audio part of the tv options should be specifiable separately from the overall tvmode, or be specifiable within the options file?
I've written this up as fully as I can partly to help any others who hit this problem with older TVs - I understand that it also affects many Sony models. It's not a specific request for extra functionality.
All has been well using the option
Code:
tvmode hvfvhigh
Since the start of August 2017, downloaded material has not been usable as it has been missing the audio, although the files play well (audio and video) on a computer using VLC on Ubuntu.
I found various discussions regarding this, such as this:
https://www.computing.net/answers/window...11344.html
I discovered that simply recoding the file produced by get_iplayer with Handbrake using the "out-of-the-box" setting was sufficient to create a playable (audio and video) file.
Whilst this was working well, there was a lot of time spent on the download and re-encoding. Also disk space was diminishing as I was keeping both versions.
using ffprobe I also discovered that the files directly produced by get_iplayer, at my options, were
Code:
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Delving further into the settings of Handbrake I discovered that the critical setting was the Audio bitrate, which was at 160K in the preset dropdown.
I have a little experience with ffmpeg and discovered that
Code:
for i in *.mp4; do ffmpeg -i $i -c:v copy -c:a aac -b:a 160K $i'-160K'.mp4; done
would also create a playable file. The actual codec seemed not to matter, but the audio bitrate was the breaking point
Whilst not a programmer, I can often successfully fiddle with existing code, and opened up the perl get_iplayer.
I changed the line
Code:
push @codec_opts, ( '-c:v', 'copy', '-c:a', 'copy' );
to
Code:
push @codec_opts, ( '-c:v', 'copy', '-c:a', 'aac', '-ab', '128K' );
I changed from 160K as acquisition will be one of 96K, 128K, 320K from the figures given here:
https://github.com/get-iplayer/get_iplay...i/modesref
and it seemed redundant to specify 160K.
This fixes my issue, but I realise that hard coding options is generally regarded as "a bad thing", and of course I am now degrading my master copy, from which there can be no return.
I wonder if the audio part of the tv options should be specifiable separately from the overall tvmode, or be specifiable within the options file?
I've written this up as fully as I can partly to help any others who hit this problem with older TVs - I understand that it also affects many Sony models. It's not a specific request for extra functionality.