user-1374
14-08-2016, 01:08 AM
I have not seen this info in another post but please forgive me if it is.
The problem seems to be caused by the video stream having a non zero PES length. FFMPEG does not seem to cope with this although I did find this post https://ffmpeg.org/pipermail/ffmpeg-deve...56593.html
I don't know if this patch proposal was ever implemented. Hopefully there is someone out there who understands FFMPEG and PES length better than I.
I hope this helps.
The reason I think this is the problem is...
If I downloaded the raw ts and ran it through FFMPEG I saw the problem with the sound being out of sync.
If I downloaded the raw ts and ran it through TS_Doctor it would complain:
"PES length on video stream detected. This can be problematic!"
"Patch PES length on video stream to a save value - Yes/No"
If I said "No" and ran it through FFMPEG I saw the problem with the sound being out of sync.
If I said "Yes" and ran it through FFMPEG I did not see the problem with the sound being out of sync.
So it suggests that the only difference between the TS_Doctor output files is the PES length fix.
Is it possible to tell us what the FFMPEG command line options used by get_iplayer are?
I needed to use "-bsf:a aac_adtstoasc" to get FFMPEG to run against the raw TS but I am sure best practice would include others?
Thanks for your great work!
The problem seems to be caused by the video stream having a non zero PES length. FFMPEG does not seem to cope with this although I did find this post https://ffmpeg.org/pipermail/ffmpeg-deve...56593.html
I don't know if this patch proposal was ever implemented. Hopefully there is someone out there who understands FFMPEG and PES length better than I.
I hope this helps.
The reason I think this is the problem is...
If I downloaded the raw ts and ran it through FFMPEG I saw the problem with the sound being out of sync.
If I downloaded the raw ts and ran it through TS_Doctor it would complain:
"PES length on video stream detected. This can be problematic!"
"Patch PES length on video stream to a save value - Yes/No"
If I said "No" and ran it through FFMPEG I saw the problem with the sound being out of sync.
If I said "Yes" and ran it through FFMPEG I did not see the problem with the sound being out of sync.
So it suggests that the only difference between the TS_Doctor output files is the PES length fix.
Is it possible to tell us what the FFMPEG command line options used by get_iplayer are?
I needed to use "-bsf:a aac_adtstoasc" to get FFMPEG to run against the raw TS but I am sure best practice would include others?
Thanks for your great work!