bennettpeter / android-MythTV-Leanfront

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

Set defaults for recording playback #29

Closed jimbolaya closed 2 years ago

jimbolaya commented 2 years ago

I was hoping to have an option for making some setting default when I'm playing recordings.

I'm running this on one of the Walmart ONN 4K $20 boxes. When I playback any recording I have to set the audio sync to -300 and I like to have the CC turned on.

I'd like to make this a default setting for playing back recordings.

bennettpeter commented 2 years ago

For the audio delay - normally I would recommend using the Android audio sync settings to fix it if is is affecting everything. However, it seems the onn does not have an audio sync adjustment in the Android settings. The fire stick and shield both have an audio sync adjustment. Does the audio sync problem also exist with other apps, like youtube? Do you have an unusual sound system that could be causing the problem? Does restarting the onn device fix the problem? If necessary I can add the setting. For subtitles - there can be many subtitles in a recording or video. How do I know which one to enable?

jimbolaya commented 2 years ago

I have not experienced the audio sync issue on any of the other applications. We regularly watch Netflix, Amazon, Hoopla and occasionally Kanopy.

I don't think my sound system is very unusual. Audio comes from the TV via optical cable (or maybe digital coax) to the receiver, which is an Onkyo. The receiver is pretty old, but I've not experienced audio delays otherwise.

Also, watching downloaded videos (mp4 or mpg), I've not experienced any audio sync issues.

Restarting has no effect.

For subtitles, that's a good question. However, the option exists for the regular front end and normally, just picking the first one is fine. Or picking a language, since for videos at least, they're tagged that way. I don't know if CCs are necessarily tagged that way for recorded programs. I guess I was just hoping for an option.

Thank you for looking at this.

bennettpeter commented 2 years ago

Also, watching downloaded videos (mp4 or mpg), I've not experienced any audio sync issues.

Are you saying that watching videos through leanfront is fine but watching recordings is out of sync?

Do you use a sync adjustment in mythfrontend?

In leanfront I try to treat recordings and videos the same, so if you specified a sync adjustment it would apply to both recordings and videos, unless I do something special for it.

Perhaps it is a specific type of recording that is out of sync. How are your recordings made?

jimbolaya commented 2 years ago

I'll have to double check on the videos vs recording playback, but I believe that's my experience.

I couldn't find where the sync adjustment for the mythfrontend was. I may have to play back a video and check there.

My recordings are all US, so ts for anything in the last 5 years. I'll take a look at my older recordings that are still in mpg format.

bennettpeter commented 2 years ago

mpg or ts are the same contents in the file, its just the extension that changed, so that will not make any difference. I was more interested in whether you used antenna, cable card, HD PVR, etc.

Sync adjustment for mythfrontend - while playing press M for Menu and find audio sync. I believe mythfrontend remembers what you previously set and uses the same setting next time you play. I don't know if it does that for videos as well as recordings.

jimbolaya commented 2 years ago

I did find an offset on the mythfrontend on my android box. I changed it back to zero there, but it didn't seem to make a difference. I'll play with it though since I didn't do a thorough check.

Thank you for your help on this.

bennettpeter commented 2 years ago

The easiest will be to add two settings to the Playback section of Settings.

Settings for Playback have a separate set for each playback group. if you use playback groups. This way you can have different values for different recordings by adding them to a different playback group. Videos are all in the Default playback group, there is no way to change playback group for videos.

The settings will be: "Audio offset in milliseconds" and "Enable captions".

For captions, the first CC will be enabled. If subtitle tracks exist the first of them will be enabled instead. (USA recordings use CC, videos and recordings from other countries use subtitle tracks).

bennettpeter commented 2 years ago

I have added these two settings in v0-347-gdab0d3e. For captions I added a number so you can use 1 for caption number 1 or another number if a different caption works for you. If different recordings have different caption lists you can put them if different playback groups where you can use different settings for each playback group. The captions and audio sync setting take effect 5 seconds after playback starts.