lharris 3 Posted September 21, 2019 Share Posted September 21, 2019 (edited) Emby Devs, I have a weird issue, I have some MKV's that have two English Audio channels, one is a mono channel and is set as default, the second is commentary and is stereo. When watching these files on the web interface there are zero issues and everything works correctly. The audio starts with the default channel as it should and you can use the note icon in the web interface to switch audio channels. On the Fire TV the episode direct streams, but starts with the commentary channel and when you attempt to change it on the Fire stick, all the UI elements are there, but they have no effect and act as if I did nothing. It doesn't change the audio during playback using the speaker icon or via prior to start of playback by using the little drop down in the episode summary. For troubleshooting I've either done the following: I've watched via the web interface under the same user account and I selected the default channel even though it was already correct, I switch off then back on. I stopped playback and attempted to watch on the firestick and found the selected audio track was not remembered. At the episode summary screen I set the audio track to the non-default, then switched back to default before playing the episode. No Change. I re-muxed the MKV with no changes, just to see if it was a weird MKV. <- No change in behavior I re-muxed again with the SubStationAlpha subtitles removed <- No change in behavior I re-muxed to MP4 using this command ffmpeg -i "<input file>" -map 0:a? -map 0:s? -map 0:v? -c:v copy -c:a copy -c:s copy "<output file>" <- This command essentialy grabs all tracks and copies them. SubStationAlpha subtitles are not supported in MP4's so I re-muxed using the MKV that had them removed as the source. <- Also no change in behavior. I searched around and didn't find much, Found this link here, but it didn't seem to match up perfectly with my issue: https://emby.media/community/index.php?/topic/69483-audio-channel-selection-has-real-no-option/?hl=%2Baudio+%2Bchannel Logs attached, I started messing with this after midnight. There might be some other random traffic in there as my wife was watching something on another fire stick at one point. Any suggestions would be appreciated. I can also provide sample files if it would be helpful. I have a bunch of them, the two I was testing with tonight are 30MB and 67MB so it should be to difficult to make them available. See photo's below: Track Information: UI Elements where audio selection makes no difference or is ignored: Photo taken of TV running Emby for Fire TV Stick Thanks! Edited September 21, 2019 by lharris Link to comment Share on other sites More sharing options...
Luke 37113 Posted September 21, 2019 Share Posted September 21, 2019 Hi there, can you please copy and paste the media info for this title from the bottom of the web app detail screen? Thanks ! Link to comment Share on other sites More sharing options...
lharris 3 Posted September 22, 2019 Author Share Posted September 22, 2019 (edited) Please see below. Also, it's not a typo or a mistake, both audio sections are identical in the Media Info section. Thanks! Media Info Video Title 480p HEVC Codec HEVC Profile Main Level 90 Resolution 720x480 Aspect ratio 4:3 Anamorphic No Interlaced No Framerate 23.976 Bitrate 607 kbps Color primaries smpte170m Color space smpte170m Color transfer bt709 Pixel format yuv420p Ref frames 1 Audio Title English AAC stereo (Default) Language English Codec AAC Profile HE-AAC Layout stereo Channels 2 ch Bitrate 192 kbps Sample rate 48,000 Hz Default Yes Subtitle Title English (DVDSUB) Language English Codec DVDSUB Default No Forced No External No Subtitle TitleEnglish (ASS) Language English Codec ASS Default No Forced No External No Audio Title English AAC stereo Language English Codec AAC Profile HE-AAC Layout stereo Channels 2 ch Bitrate 192 kbps Sample rate 48,000 Hz Default No Subtitle Title English (DVDSUB) Language English Codec DVDSUB Default No Forced No External No Subtitle Titl eEnglish (ASS) Language English Codec ASS Default No Forced No External No Container mkv Edited September 22, 2019 by lharris Link to comment Share on other sites More sharing options...
ebr 14930 Posted September 22, 2019 Share Posted September 22, 2019 Okay, I think the issue here is going to come down to the fact that the two tracks are both marked as stereo (2-channel). Are you sure one of them is actually mono? Link to comment Share on other sites More sharing options...
lharris 3 Posted September 23, 2019 Author Share Posted September 23, 2019 (edited) Okay, I think the issue here is going to come down to the fact that the two tracks are both marked as stereo (2-channel). Are you sure one of them is actually mono? Your assumption is correct. I extracted the tracks using gMKVExtractGUI and dragged both .aac files into Audacity and both are stereo. To double check I also dragged the "mono" track into VLC and under Tools -> Codec Information, it says stereo. So my assumption at this point is a wonky audio track. All of the MKV's with commentary are behaving this way, soooo yay.............................. So as a test I re-encoded the track: ffmpeg -i "<input>.aac.org" -c:a aac -q:a 10 "<output>.aac" I then re-muxed the MKV, dis-selecting the original track 2 and adding in the re-encoded file as track 2. I gave it a test in Emby for Fire TV and it seems to be working correctly now! It starts with the correct track and you can now switch between them. Not sure what exactly the problem is, but the Fire TV client definitely doesn't like Track 2 and seems to disregard it without really making that apparent to the user... though I don't have any good ideas about how to make the user understand that. Anyway it sounds like I'll have a heck of a job going through and cleaning up the audio in each one that has commentary. Let me know if you would like a sample to perhaps make the client a little more robust in dealing with wonky audio tracks. Thanks! Edited September 23, 2019 by lharris Link to comment Share on other sites More sharing options...
ebr 14930 Posted September 23, 2019 Share Posted September 23, 2019 Don't embark on a large task of conversion. This isn't really your problem it is a problem in the app related to it not being able to tell the difference between the two of them since they have the exact same parameters (that the app is currently looking at). Link to comment Share on other sites More sharing options...
ebr 14930 Posted September 23, 2019 Share Posted September 23, 2019 Can you drop box me a sample video with this issue? Link to comment Share on other sites More sharing options...
lharris 3 Posted September 23, 2019 Author Share Posted September 23, 2019 I sent you a private message with Links. Thanks! Link to comment Share on other sites More sharing options...
ebr 14930 Posted September 24, 2019 Share Posted September 24, 2019 Thanks for the samples. It turns out the main audio track IS mono but Emby is reporting it as stereo. I don't know if that is a problem in ffprobe or our limitation but, if we could fix that, then the switching would work. @@softworkz? Interestingly, the sample rate is also incorrect. It is 24k but we report as 48. The next release of the app will fudge some things to make the track selection on your particular items here work. Link to comment Share on other sites More sharing options...
Luke 37113 Posted February 12, 2020 Share Posted February 12, 2020 Are you still running into this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now