These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Some Downloads Have Audio Out Of Sync With Image

Pages: 1 2

user-991

I've only recently noticed this & that is playing back a download but not all downloads using VLC the playback is jerky as in the image plays for a few seconds & then stops for a split second & carries on like that. The audio does not do this but flows normally. So I tried playing the download using a different video media software, SMPlayer, & this time the image runs smoothly but the audio is out of sync with the people talking etc. Now after checking several downloads I've come across a common denominator & that is the problem occurs with HD downloads i.e. I use the CLI & I copy the URL from the BBC iPlayer & paste it into the CLI but with the added --tvmode=best at the end for the programmes that I do want downloading in the highest definition, but programmes I've downloaded in the default mode I have no problem with the playback.
So any ideas please? I hope so because I think I have a lot of programmes downloaded like this & I don't know how far back it goes & most of them I won't be able to re-download as they will be out of date. Plus as you can appreciate the time etc of re-downloading. My downloads are normally in FLV format which gets converted to MP4 as the donload finishes.
I have to say that I'm only using GiP 2.94 only & my ffmpeg is v2.2.3 & my RTMPDump is v2.4. I'm running Windows 8.1.
Can I also ask something else besides the above problem. Should I upgrade to GiP 2.97 & if I do will it be best to use the installer & if I use that should I protect the folder with my present downloads & the download history file as obviously I don't want them overwritten if I use the windows auto installer?
Thanks in advance to any replies & the great work done by people like Rinky Dinky.

user-2

Upgrade to v2.97. GiP 2.94 is no longer supported and will likely continue to cause problems. There is no need to protect downloaded files and download history during upgrade - the installer doesn't touch them - but make a backup if it makes you feel better.

user-991

Thanks for that Dinky & your quick reply. I shall go & do that in a short as I'm just eating at the mo.

user-2

Before switching to v2.97, read this:

https://github.com/get-iplayer/get_iplay...ig-quality

You will probably want to use --tvmode=tv25fps, or else HD downloads will be twice as big as those in v2.94.

user-991

By the way Dinky, I've noticed here & there over time when you have replied to some people with problems downloading that they are not in the UK as the message or similar, "You appear to be using get_iplayer outside the UK" comes up. Well I've never been out of the UK since the first day I ever used GiP but I do get that message when I am trying to download a programme that is out of date i.e. older than 30 days or 7 days if it is a film. I don't know if you were aware of this & if you are then obviously ignore my message here.

user-2

My responses in the forums do not necessarily correlate with GiP warning messages. Interpreting error conditions in GiP is not an exact science, and sometimes you can physically be in the UK while appearing outside it as far as the BBC is concerned. Again, v2.97 works a bit better in this area.

user-991

Hi Dinky,
Thanks for the previous tips & links etc.
Eventually I got to download GiP v2.97 & installed it without any problem. Before doing a test download, actually a re-download of one of the programmes I've got problems with, I checked that I had got v2.97 installed. Then I re-downloaded a programme that I originally downloaded in HD which was a file size of 1,128,574KB & this had the jerky picture but the audio was OK & in sync using VLC player. But then playing this using SMPlayer the picture ran smoothly but the audio was out of sync. So now with the new downloaded programme which now had a file size of 2,445,551KB I first played it using the VLC Player & the same problem occurs & with the SMPlayer it is the same as above with the picture running smoothly but the audio lags quite a lot behind. So if the picture shows someone starting to talk the audio kicks in about 23secs later. So at the mo GiP v2.97 has not had any effect on my problem I'm afraid. As I've said I have no problems with the standard download.

user-2

You will need to follow our instructions to provide a full report. Without a proper report, we have no clue what you are really doing, and no way of diagnosing what is wrong.

user-991

OK Dinky, I'll do that now.

user-991

Hi again Dinky,
Let me try & explain quickly what I have done since yesterday after your last post.
Whilst I was looking at the guidelines on correctly posting a problem/question etc I was using the newly downloaded GiP v2.97 software to download a short BBC News programme but in several types of quality including using --tvmode=flashbetter. After each download I tried playing the programme, but any download that was in a resolution higher than the SD one that was in the GiP v2.94 which I had until yesterday would not play properly as stated earlier in this post. So what I did then was to copy each programme that was in the different resolutions to my Galaxy Note 3 phone & tried playing each one on it. And the result was that all the programmes played whether is was the old SD version or the 50fps HD version. So the conclusion is that I have a problem with my laptop & not the actual downloads whatever the resolution etc. So I need to find out what has changed on my Laptop as in recent past I had no problems viewing HD downloads like I do now. So I'm sorry that I've bothered you Dinky but in the end I've got the latest GiP, although it's different & I'm trying to get used to it.

But let me say Dinky that although I'm now familiar to the different modes that I can download programmes in, it does mean more work for me because of the way I download them using the URL method to download in the old SD mode using --tvmode=flashbetter. But I do have a problem with the new v2.97 GiP software. Not long ago I had several downloads on the go & a couple of them timed out before they had finished. Loss of Internet signal or similar which I get a lot. So the message I get with v2.97 which is different to v2.94 which just basically said "timed out" I get the following.

INFO: Begin recording file: C:\Users\Purple PC\Desktop\iPlayer Recordings\Tubular_Bells_The_Mike_Oldfield_Story_-__b03cw8g0_original.partial.mp4.ts
Recording:  1188.23MB / 2337.99MB  1439kbps  50.8% 01:49:06 remaining
ERROR: Failed to download segment (255)
ERROR: Segment URL: http://vod-hls-uk-live.bbcfmt.vo.llnwd.n...3973bad432
INFO: Recorded: 1189.55MB in 01:53:49 at  1427kbps to C:\Users\Purple PC\Desktop
\iPlayer Recordings\Tubular_Bells_The_Mike_Oldfield_Story_-__b03cw8g0_original.partial.mp4.ts
WARNING: Retry recording for 'Tubular Bells: The Mike Oldfield Story - - (b03cw8g0)'
INFO: File name prefix = Tubular_Bells_The_Mike_Oldfield_Story_-__b03cw8g0_original
ERROR: Cannot instantiate streamer for class=Streamer:: version=original mode=hvfhd1
INFO: skipping this programme
ERROR: Failed to record 'Tubular Bells: The Mike Oldfield Story - - (b03cw8g0)'


So I did what I did with v2.94 & that is to restart the download & with v2.94 in most cases it carries on downloading from roughly where it stopped when it timed out. But with v2.97 it looks like it starts the download again from scratch & overwrites the partial download that got created when the original download stopped due to timing out. As you can see from the above Copy & Paste from the CLI that the download was 50.8% done when it timed out & stopped. To get to this point it took a long time even though the download speed was about 15Mbps so to start from scratch again each time this happens & I do get timed out a lot maybe because I'm connected to WiFi HotSpots most of the time, would be a right pain. In v2.94 like I said the download would resume although it does say that some timings or something doesn't match.
So is there a problem with resuming downloads that have stopped due to timing out with v2.97?
Thanks.

user-2

It seems that your laptop and/or upstream connection cannot sustain get_iplayer downloads, especially if they are run simultaneously. All I can suggest is downloading one programme at a time, but if the latency is that bad it might not help much.

Only flash modes will resume downloading across sessions, for reasons not worth going into here. Resume functionality should be implemented for hvf/hls modes in the next release. The flash modes will be available for at least one more release, so you should keep using them for the present in order to benefit from the resume functionality.

user-991

Thanks Dinky & like everyone else we appreciate the work & help you do.

user-991

Sorry, but this is something I've noticed with v2.97 after a programme has finished downloading & before it starts converting. This is what is showing in the CLI.

INFO: Begin converting file (etc)
[h264 @ 04ae1a20] non-existing SPS 0 referenced in buffering period
Last message repeated 1 times
[h264 @ 04ae1a20] non-existing SPS 0 referenced in buffering period
frame= 501 fps=0.0 q=-1.0 size= 3807kb time=00:00:20.01 bitrate=1558.3kbits/ etc
etc, etc

I've noticed this at least twice now. Some of the text i.e. non-existing SPS 0 referenced in buffering period is in red & the other bit of text is in blue. I don't know whether this is normal or not.

user-2

See Recording section in FAQ list

user-991

Thanks for all your help & advice so far Dinky.
As previously said that my problem with viewing a HD programme download using VLC media player or similar is related to a problem I have elsewhere & not with the download itself. SD downloads play fine & the HD ones play fine on my Note 3 phone. So before I found out that my problem on my Laptop is nothing to do with the actual HD download I did what you had suggested & upgraded my GiP to v2.97 from v2.94. So since your last post here I've been using GiP v2.97 & getting used to how it works differently to my previous version. I know how to download the various quality options etc but I've not had a good time this week & I'm so far behind. I have a few problems/issues.
One possible issue which you are aware of already Dinky & you have advised. That problem is if I'm downloading a programme & let's say I lose internet connection for a couple of minutes, when I start the download again instead of continuing the download it starts again & overwrites what has been downloaded so far. I think this might only be with the HD downloads. I will have to check this problem again to see if I'm still getting it. Also, when I cannot finish the download & I want to continue it the next day, for instance, with v2.94 that I was using I could continue the download at another time & it would continue from where it was stopped. This was a useful thing for me but I don't think that works with v2.97.
Now why I am so far behind with downloads this week is for 2 reasons. The first one is that although wherever I am connected to a Wi-Fi Hotspot & the connection speed is say 15Mbps, it seems with Gip v2.97 it takes longer to download the programmes compared to when I was using Gip v2.94. I'm almost certain there is a difference in the timed it takes to download a programme whether it is a SD or HD 25fps programme.
Now other than the possible time it takes to download a programme now compared to before, I also have an issue once the download has finished & the .ts file gets converted to the MP4 file. Now afterv I upgraded to Gip v2.97 the conversion at the end of a download can go as fast as 100x & this speed is shown at the bottom of the CLI screen. But then there are many, too many, times that the speed of conversion has gone as low as 0.0012x. In this situation a 350Mb download has taken something like nearly 2-3hrs to finish converting to a MP4 file. Now with Gip v2.94 that I was using prior to last week I never had an issue with the converting side of things. The speed was always quite fast.
So I'd like to ask some questions please & I'm sorry I'm asking more than one.

For now, how best can I revert back to GiP v2.94?

What program, ffmpeg??? does the converting after a programme has been downloaded?
And where does this program live?
I'm using Windows 8.1 on a 64bit machine. So is it best for me to always use 64bit software rather than 32bit? For instance, there are 32bit & 64bit versions of ffmpeg. So should I be using the 64bit version?

Am I right in thinking that GiP is only available in 32bit versions?

In advance again I'd just like to say Thanks for any advice etc that anybody may have as well as Dinky.

user-2

(20-12-2016, 02:19 PM)Also, when I cannot finish the download & I want to continue it the next day, for instance, with v2.94 that I was using I could continue the download at another time & it would continue from where it was stopped. This was a useful thing for me but I don't think that works with v2.97.
As I already told you, use --modes=flash if you want the same resume behavour in 2.97 as 2.94
Quote:The first one is that although wherever I am connected to a Wi-Fi Hotspot & the connection speed is say 15Mbps, it seems with Gip v2.97 it takes longer to download the programmes compared to when I was using Gip v2.94. I'm almost certain there is a difference in the timed it takes to download a programme whether it is a SD or HD 25fps programme.
Wi-fi connection speed is no predictor of download speed. Unless you can demonstrate you are performing a controlled test with exactly the same media streams under exactly the same conditions, such comparisons are essentially meaningless.
Quote:In this situation a 350Mb download has taken something like nearly 2-3hrs to finish converting to a MP4 file. Now with Gip v2.94 that I was using prior to last week I never had an issue with the converting side of things. The speed was always quite fast.
That would usually indicate your machine is overloaded, but there is no way for me to know. It could also be a slow external disk being used for output directory (especially over wifi). If that isn't the case, you can try swapping in another version of ffmpeg, though the supplied version works well enough for everyone else.
Quote:For now, how best can I revert back to GiP v2.94?
You can't, at least not easily. Your issues have nothing to do with get_iplayer itself, so there would be no point.
Quote:What program, ffmpeg??? does the converting after a programme has been downloaded?
And where does this program live?
In utils subdirectory of installation directory
Quote:For instance, there are 32bit & 64bit versions of ffmpeg. So should I be using the 64bit version?
It doesn't matter as far as get_iplayer is concerned
Quote:Am I right in thinking that GiP is only available in 32bit versions?
Yes, and that will not change.

user-991

Since my post before this not so long ago & in addition to that.

After reading a different post titled '2.97 failing to produce files' I've been slightly enlightened.
ffmpeg is the program that converts a .ts file to a MP4 file.
What I also understand is that the latest ffmpeg version is 3.2.2 & can be got from here for Linux & Windows,

https://www.johnvansickle.com/ffmpeg/

And for those people like me (for now), these are the links for both the 32bit & 64bit Windows static builds,


release: 3.2.2
x86 build: https://johnvansickle.com/ffmpeg/release...tar.xz.md5
x86_64 build: https://johnvansickle.com/ffmpeg/release...tar.xz.md5

As regards the above, I still have the questions,as regards GiP.
Where does ffmpeg live? so that I can check the version I have & to make sure if I need to download the latest that it goes in the right directory etc.
My Laptop is a 64bit machine running Widows 8.1 64bit so is it best for me to download the 64bit build of ffmpeg or does GiP need the 32bit build?

Thanks.

Thanks for your reply above Dinky & I only saw it after I had sent another post. So sorry about that & you have answered some or all the questions in my 2nd post now. So thanks again.

user-2

(20-12-2016, 03:07 PM)What I also understand is that the latest ffmpeg version is 3.2.2 & can be got from here for Linux & Windows,

https://www.johnvansickle.com/ffmpeg/
Those builds are for Linux only. For Windows:

https://ffmpeg.zeranoe.com/builds/

user-991

Thanks for that last post with that info in it Dinky.

And finally (hopefully lol) just confirm I'm using the right commands for what I want to do Dinky. By the way I'm not a beginner in computing terms but I'm not as knowledgeable or as experienced as yourself or others like Vangelis etc especially GiP.
Anyway, I use the CLI & for the examples I'm about to give I use the URL & not the PID of a programme. I download programmes in SD & HD according to my preference.

Assuming the programme is available in both SD & HD versions to download, what I used in v2.94 to download a programme in SD is:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook

Now if I wanted this programme in HD I used this:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook --tvmode=best

But now, using v2.97, when I want the download to be in SD & with the benefit of the resume behaviour I use this:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook  --tvmode=flashbetter

And if I want the HD version but only at 25fps & no resume behaviour I use this:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook --tvmode=tv25fps

But if I want the full blown HD version at 50fps & no resume behaviour I would just do this:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook

Now let me see if I've understood you Dinky in regards to v2.97 & the download options.
If I want to download the above programme in SD, HD 25fps, HD 50fps & with the resume behaviour I need to use --modes=flash in my CLI.
e.g.
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook --modes=flash

As I've used already to download this programme in SD I would use this:-
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook  --tvmode=flashbetter

But using --modes=flash to have the ressume behaviour with the HD 25fps & HD 50fps, what options do I add on to the following so I get the HD downloads but with the resume behaviour?
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook --modes=flash

user-2

(20-12-2016, 04:02 PM)But using --modes=flash to have the ressume behaviour with the HD 25fps & HD 50fps, what options do I add on to the following so I get the HD downloads but with the resume behaviour?
get_iplayer --url http://www.bbc.co.uk/iplayer/episode/b08...peter-cook --modes=flash
That is all you need. --modes=flash will automatically try best quality for both TV and radio. However, there are no 50fps flash streams available.
Pages: 1 2

These forums are archived

See this post for further info