bennettpeter / android-MythTV-Leanfront

:tv: MythTV Android TV frontend
GNU General Public License v3.0
45 stars 9 forks source link

small percentage of recordings have no length displayed and I cannot ff or rew on them #14

Closed tonyguadagno closed 3 years ago

tonyguadagno commented 3 years ago

Hi, I have noticed this on 2 of my recordings. the recordings seem to play fine, however, there is no length displayed at the bottom right. Also ff and rew do not work.

i was on leanfront-release-v0-261-g92ab8a3.apk but just upgraded to leanfront-release-v0-284-gde137ef.apk and the recordings are behaving the same.

i can provide samples if you are interested.

thanks

bennettpeter commented 3 years ago

Go to Settings, Tweaks and increase the value of TS Search Packets .

tonyguadagno commented 3 years ago

ok, i will try that and let you know. thanks

tonyguadagno commented 3 years ago

hi, i tried 4000 and 6000 and had the same behavior....should i be going higher?

bennettpeter commented 3 years ago

If it still does not work at 100,000 I will need to debug it. If it works at 100,000, try smaller values until you find the lowest value where it works.

tonyguadagno commented 3 years ago

hi, i tried 100000 and got the same results, what can i provide to help you debug? i am willing to give you the recording if you like? let me know. thanks

bennettpeter commented 3 years ago

Please provide the recording. You can share it on Dropbox or Google Drive.

tonyguadagno commented 3 years ago

here you go, please let me know when you download it so i can delete. thanks

https://drive.google.com/file/d/105CQj3_p0AbBBdiHkML8O-TeYqY0yvpq/view?usp=sharing

bennettpeter commented 3 years ago

I have downloaded the file. It plays fine with vlc but it does not play at all with leanfront on fire stick 4K. I just get a rotating circle. Are you using a fire stick or a shield? I will investigate what is going on.

tonyguadagno commented 3 years ago

hmm...interesting...so i am using leanfront on a fire stick 4k. and the file does play for me, with the issues i listed above.....it seems to play fine on mythfrontend including ff and rew....not sure why it will not play for you... also, this is not the only recording it has happened to, however, very few are like this. let me know if i can provide more info.

bennettpeter commented 3 years ago

I have fixed this and posted a new apk (leanfront-release-v0-288-gaef474f.apk). Please try it and confirm whether it works.

Also make sure you reset the value of TS Search Packets to the default (2600). Otherwise you could see a slowdown in starting playback and skipping

tonyguadagno commented 3 years ago

Peter, perfect!!! works great. thanks for your efforts

btw, what was the issue?

bennettpeter commented 3 years ago

Fixed in 696789c163f15f36e84c82fa64b708361c5f0bd6 .The code in Exoplayer was finding an incorrect end time, due to either corrupt data or misinterpretation of correct data. I added a sanity check to ensure it has a valid value. I shall be submitting the fix to Exoplayer.