bennettpeter / android-MythTV-Leanfront

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

"Change Audio Track" results in "Unexpected Runtime Exception" and "Playback Failed" #7

Closed bobMuk closed 4 years ago

bobMuk commented 4 years ago

Great piece of software - thanks for all the effort you've put in!

I installed yesterday and found that many recordings don't have any audio. If I use "Change audio track" (and the runtime exception doesn't occur) then it does find the audio and plays fine. However something like 95% of the time when I click "Change Audio Track" I get the runtime exception.

I'm on mythtvbackend 31 and running the current latest version of leanfront (leanfront-v0-218-gd488336) on a Fire TV 4K

In the Fire TV settings I've disabled surround and have stereo only.

It looks like there's a way to retrieve logs with adb, if I can set this up would they be of any use? I can also provide an example recording if that's any use.

bobMuk commented 4 years ago

Using adb turned out to be trivial, I had no idea :)

$ adb logcat lfe:D *:S

bobMuk commented 4 years ago

BTW - it looks like where I've said "no audio", it infact seems to be selecting the "descriptive" audio track. This specific recording starts with some commercials before the actual programme starts and the commercials appear to have audio-description, while the actual programme that I've recorded does not (so the programme is silent throughout).

bennettpeter commented 4 years ago

This error occurs when there is mpeg2 audio that the fire stick does not support. A workaround is to select ffmpeg in the audio selections.

bobMuk commented 4 years ago

Thanks Peter - I thought I'd tried changing the audio to ffmpeg but it did indeed fix it. So far I've not tried a recording that doesn't like ffmpeg so I think we're good. Is there anything that can be done about the wrong audio track being selected? It's not the biggest chore in the world to manually select the correct one but it'd be nice to not need to.

bennettpeter commented 4 years ago

How often does it select the wrong track? If it is more than an occasional problem I can look into providing some sort of setting to select a different audio track.

bobMuk commented 4 years ago

I did some testing with various recordings and it does seem to only be this programme (though multiple weekly recordings of it - I guess it could be anything from this channel but I rarely watch anything on it). So I'm happy to close this. Thanks again!