coolsaber57 3 Posted January 24, 2019 Share Posted January 24, 2019 I'm having some issues with using Bluetooth headphones on my Nvidia Shield TV. This has been an issue for a few months, but I thought I'd see if there's a solution. I have a set of bluetooth headphones connected to my Nvidia Shield and am using the latest Android TV version, with an Emby Docker container running on my Unraid server, which is version 4.0.0.2. 1. After a short period of time (1-10 minutes) after starting a TV show or movie, the video will stop. If I choose Playback Correction twice (which I believe means Transcoding), the video will continue. I'm not sure I understand why it starts playing correctly, but stops at random point. 2. An even weirder issue is that if I allow the next episode to autoplay, there is audio playing from the currently selected episode as well as the previous episode simultaneously. Eventually the audio from the previous episode will stop, but it's still quite annoying and I have to force stop the episode to get it to stop. These scenarios only happen when I have a Bluetooth headset connected. Any insight/suggestions as to these issues? Link to comment Share on other sites More sharing options...
ebr 14959 Posted January 24, 2019 Share Posted January 24, 2019 Wow, both of those sound quite odd. I use BT headphones all the time, however, I don't connect them to the Shield, they are connected to a BT receiver that is connected to my AVR. I've never seen these issues. The next time you encounter the video stopping, exit back to the home screen and send a log from the app. Thanks. Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 25, 2019 Author Share Posted January 25, 2019 (edited) Wow, both of those sound quite odd. I use BT headphones all the time, however, I don't connect them to the Shield, they are connected to a BT receiver that is connected to my AVR. I've never seen these issues. The next time you encounter the video stopping, exit back to the home screen and send a log from the app. Thanks. Sure, done. I just encountered issue #1 at 12:53 or :54am EST. User is Chris. I'll try and see if I can reproduce #2 and send a log again. Edited January 25, 2019 by coolsaber57 Link to comment Share on other sites More sharing options...
ebr 14959 Posted January 25, 2019 Share Posted January 25, 2019 Okay, so here's what is happening when it freezes up: 01-25 00:51:27.954 369 8063 I chatty : uid=10095(u0_a95) Thread-65 expire 54 lines 01-25 00:51:30.392 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 84 of playlist 0 01-25 00:51:30.392 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/85.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 85 of playlist 0 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/86.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 86 of playlist 0 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/87.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.736 369 369 I System.out: Adding request to queue: http://192.168.2.12:8096/emby/Sessions/Playing/Progress 01-25 00:51:30.748 369 369 I System.out: Response received from: http://192.168.2.12:8096/emby/Sessions/Playing/Progress 01-25 00:51:30.798 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.798 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 87 of playlist 0 We need to see the server log to be sure but my first guess is your server (or at least transcoding temp location) is running out of disc space... Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 25, 2019 Author Share Posted January 25, 2019 Okay, so here's what is happening when it freezes up: 01-25 00:51:27.954 369 8063 I chatty : uid=10095(u0_a95) Thread-65 expire 54 lines 01-25 00:51:30.392 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 84 of playlist 0 01-25 00:51:30.392 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/85.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 85 of playlist 0 01-25 00:51:30.530 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/86.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 86 of playlist 0 01-25 00:51:30.664 369 8063 V mpv : [ffmpeg/demuxer:v] hls,applehttp: Opening 'http://192.168.2.12:8096/emby/videos/1651/hls1/main/87.ts?DeviceId=2e4eacd9b8f99a23&MediaSourceId=ea2485a68bf27a0f1aa6020ff587132b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac,mp3&VideoBitrate=109808000&AudioBitrate=192000&PlaySessionId=2b270561f5cf4de49a4b9809264f8ae4&api_key=283bff4039144396889cd69e69742417&AudioStreamIndex=1&SubtitleMethod=Encode&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&mpeg2video-deinterlace=true&h264-deinterlace=true&TranscodeReasons=DirectPlayError,ContainerBitrateExceedsLimit&AllowVideoStreamCopy=false' for reading 01-25 00:51:30.736 369 369 I System.out: Adding request to queue: http://192.168.2.12:8096/emby/Sessions/Playing/Progress 01-25 00:51:30.748 369 369 I System.out: Response received from: http://192.168.2.12:8096/emby/Sessions/Playing/Progress 01-25 00:51:30.798 369 8063 V mpv : [ffmpeg:warn] http: HTTP error 500 Internal Server Error 01-25 00:51:30.798 369 8063 V mpv : [ffmpeg/demuxer:warn] hls,applehttp: Failed to open segment 87 of playlist 0 We need to see the server log to be sure but my first guess is your server (or at least transcoding temp location) is running out of disc space... Hi EBR, what's the safest way to get you the log? I can post the .txt file here, but don't know if it contains secret key info. Link to comment Share on other sites More sharing options...
ebr 14959 Posted January 25, 2019 Share Posted January 25, 2019 You can PM it to me if you wish. Thanks. Link to comment Share on other sites More sharing options...
ebr 14959 Posted January 25, 2019 Share Posted January 25, 2019 This looks like a source error to me... ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 8.2.1 (GCC) 20180831 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3 libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 [matroska,webm @ 0x5609a47ea980] Read error at pos. 589945241 (0x2329d999) Input #0, matroska,webm, from 'file:/media/TV/It's Always Sunny in Philadelphia/Season 02/S02E06.mkv': Metadata: encoder : libebml v1.3.0 + libmatroska v1.4.0 creation_time : 2013-08-10T23:03:24.000000Z Duration: 00:23:03.26, start: 0.000000, bitrate: 3411 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 720x480 [SAR 8:9 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default) Stream #0:3(spa): Subtitle: dvd_subtitle, 720x480 Stream #0:4(fre): Subtitle: dvd_subtitle, 720x480 Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x5609a4814100] using SAR=8/9 [libx264 @ 0x5609a4814100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x5609a4814100] profile Main, level 4.1 [libx264 @ 0x5609a4814100] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=15 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3411 vbv_bufsize=6823 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [segment muxer @ 0x5609a4896180] Value -1383.000000 for parameter 'segment_time_delta' out of range [0 - 9.22337e+12] [segment muxer @ 0x5609a4896180] Error setting option segment_time_delta to value -1383. Could not write header for output file #0 (incorrect codec parameters ?): Numerical result out of range Error initializing output stream 0:0 -- [aac @ 0x5609a4834ac0] Qavg: -nan Conversion failed! I think the reason it seems to be related to your headphones is because using those would be the only time we would try to convert the audio from DD to straight stereo. @@softworkz Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 25, 2019 Author Share Posted January 25, 2019 (edited) This looks like a source error to me... ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 8.2.1 (GCC) 20180831 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3 libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 [matroska,webm @ 0x5609a47ea980] Read error at pos. 589945241 (0x2329d999) Input #0, matroska,webm, from 'file:/media/TV/It's Always Sunny in Philadelphia/Season 02/S02E06.mkv': Metadata: encoder : libebml v1.3.0 + libmatroska v1.4.0 creation_time : 2013-08-10T23:03:24.000000Z Duration: 00:23:03.26, start: 0.000000, bitrate: 3411 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 720x480 [SAR 8:9 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default) Stream #0:3(spa): Subtitle: dvd_subtitle, 720x480 Stream #0:4(fre): Subtitle: dvd_subtitle, 720x480 Please use -profile:a or -profile:v, -profile is ambiguous Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x5609a4814100] using SAR=8/9 [libx264 @ 0x5609a4814100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x5609a4814100] profile Main, level 4.1 [libx264 @ 0x5609a4814100] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=15 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3411 vbv_bufsize=6823 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [segment muxer @ 0x5609a4896180] Value -1383.000000 for parameter 'segment_time_delta' out of range [0 - 9.22337e+12] [segment muxer @ 0x5609a4896180] Error setting option segment_time_delta to value -1383. Could not write header for output file #0 (incorrect codec parameters ?): Numerical result out of range Error initializing output stream 0:0 -- [aac @ 0x5609a4834ac0] Qavg: -nan Conversion failed! I think the reason it seems to be related to your headphones is because using those would be the only time we would try to convert the audio from DD to straight stereo. @@softworkz Sorry, I'm not sure what that means - does that imply the episode format itself? I'm not sure about that as it actually happens with other shows as well (e.g. I was watching the show "The Detour" and it displayed the same behavior, as well as "Brooklyn 99"). Also - when I start up one of the episodes, I see the "Direct" tag on the video, which eventually stops due to the issue. It's only when I actually force it to Transcode (i.e. hit Playback correction x2) that it will play the video (usually - sometimes it just gives up). Edited January 25, 2019 by coolsaber57 Link to comment Share on other sites More sharing options...
Luke 37247 Posted January 25, 2019 Share Posted January 25, 2019 what platform are you running emby server on? Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 25, 2019 Author Share Posted January 25, 2019 what platform are you running emby server on? I'm running the binhex-emby Docker container under Unraid. Link to comment Share on other sites More sharing options...
Luke 37247 Posted January 25, 2019 Share Posted January 25, 2019 Ok, it's including an incompatible fffmpeg build. We don't support 4.1 yet. I would report this to them, or switch to our Docker for a better experience. Thanks. 1 Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 25, 2019 Author Share Posted January 25, 2019 Ok, it's including an incompatible fffmpeg build. We don't support 4.1 yet. I would report this to them, or switch to our Docker for a better experience. Thanks. OK, I just set up the official Emby docker and will test it tonight and report back if that was the issue. Link to comment Share on other sites More sharing options...
Luke 37247 Posted January 25, 2019 Share Posted January 25, 2019 Thanks ! Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 26, 2019 Author Share Posted January 26, 2019 Thanks ! OK, so I just ran into the same issue again and sent a log 2-3 minutes ago (11:52-3ish PM EST), user Chris. Link to comment Share on other sites More sharing options...
ebr 14959 Posted January 27, 2019 Share Posted January 27, 2019 Hi. The ffmpeg log is the one we need to see. Thanks. Link to comment Share on other sites More sharing options...
coolsaber57 3 Posted January 28, 2019 Author Share Posted January 28, 2019 Hi. The ffmpeg log is the one we need to see. Thanks. OK, sent a few fffmpeg logs your way Link to comment Share on other sites More sharing options...
Martin 2 Posted August 22, 2020 Share Posted August 22, 2020 I get this same issue where the video freezes up and when I choose Playback Correction twice, the video will continue. Sometimes not. This being purely from Nvidia Shield TV via HDMI out to the TV. Running the server on the Shield TV itself I then tested results under the various transcoding options and found some joy on some videos. I then tested by using different codecs and later different containers of same codecs till I generally came right. Living alone and having a sort of delayed fix I haven't spent much time on testing further but it appears to be related to some codec containers and how they're transcoded. Now that I'm having visitors more often (national lockdown advise etc.) the issue is becoming a bit cumbersome again. Link to comment Share on other sites More sharing options...
Luke 37247 Posted August 22, 2020 Share Posted August 22, 2020 8 hours ago, Martin said: I get this same issue where the video freezes up and when I choose Playback Correction twice, the video will continue. Sometimes not. This being purely from Nvidia Shield TV via HDMI out to the TV. Running the server on the Shield TV itself I then tested results under the various transcoding options and found some joy on some videos. I then tested by using different codecs and later different containers of same codecs till I generally came right. Living alone and having a sort of delayed fix I haven't spent much time on testing further but it appears to be related to some codec containers and how they're transcoded. Now that I'm having visitors more often (national lockdown advise etc.) the issue is becoming a bit cumbersome again. Hi, do you know which codecs? 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