Jump to content

Streaming stops with OTA recordings that have artifacts at times


Recommended Posts

Posted

Hi all,

   Anyone else have any experience tuning emby for streaming recordings that have known "dead spots" aka "artifacts" in them?  I have a single OTA ASTC HDTV tuner in my machine and from time to time I get blips in the signal based on how far I am from the broadcasts.  When watching live thru the web player everything goes well, but for some reason if I have a recording and then play that back later thru the web app it will always stop at the exact same places in the recording.  If I play the recording locally everything goes fine, except for the obvious artifacts (pixelation, black lines, complete blackout for <1-2 sec).  But for some reason this causes the streaming/transcoding to completely stop.  It then restarts from the beginning, usually my work around is to drag the timebar (fast forward) to just after the glitch, and it will play perfectly again until it gets to the next "reception artifact".   I've tried changing the quality settings (anything from 144p to 720 10Mpbs to Auto) and it always errors at the exact same timestamps over and over.  Also confirmed CPU usage on the server at the time of the incidents and everything is normal.  Not using any hardware encoding (yet).  Tried Firefox, Chrome, Edge even the Emby Theater (1 min trial, till I can verify how to fix this issue and purchase this otherwise great piece of software).

 

When I look at my server logs I see errors about bitrates being exceeded, so then I tried increasing the maxbitrate to something insane like 1000Mpbs but still no go (and now I still get a no directplay profile found message instead).

When I look at the FFMPEG logs I usually see a "More than 1000 frames duplicated" message shortly before the end of the log file, is this a clue?

 

I've read others talking about FFMPEG settings to try -vsync 0 but I can't seem to find a way to customize or try this.  

 

Appreciate any thoughts or advice, even if its just to point me in the direction of if this is an FFMPEG problem or an HTML5 streaming video problem, thanks in advance!

-Dan

 

BEFORE CHANGING THE MAX BITRATE IN PLAYBACK -> STREAMING SETTINGS ID ALWAYS SEE THIS

2017-10-15 23:41:38.279 Info App: User policy for DJJ. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2017-10-15 23:41:38.279 Info App: Bitrate exceeds DirectStream limit: media bitrate: 12841727, max bitrate: 1000000
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, Path: C:\tv\Show\Show_20171015_13001600.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: False
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, No direct play profiles found for Path: C:\tv\Show\Show_20171015_13001600.ts
2017-10-15 23:41:38.279 Info App: Bitrate exceeds DirectStream limit: media bitrate: 12841727, max bitrate: 1000000
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, Path: C:\tv\Show\Show_20171015_13001600.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: False
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, No direct play profiles found for Path: C:\tv\Show\Show_20171015_13001600.ts
2017-10-15 23:41:38.279 Info App: Bitrate exceeds DirectStream limit: media bitrate: 12841727, max bitrate: 1000000
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, Path: C:\tv\Show\Show_20171015_13001600.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: False
2017-10-15 23:41:38.279 Info App: Profile: Unknown Profile, No direct play profiles found for Path: C:\tv\Show\Show_20171015_13001600.ts
2017-10-15 23:41:38.341 Info HttpServer: HTTP DELETE http://blahblah.gotdns.com:8096/emby/Videos/ActiveEncodings?deviceId=324287dbbe4cf0316d0f3437987984b104656500&PlaySessionId=50f402de5d494b489cfa88960b24e000. Host=blahblah.gotdns.com:8096, Connection=keep-alive, Origin=http://blahblah.gotdns.com:8096, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, X-Emby-Authorization=MediaBrowser Client="Emby Mobile", Device="Chrome", DeviceId="324287dbbe4cf0316d0f3437987984b104656500", Version="3.2.33.0", Token="c26d62ab57a94cbcba8c355aefedc517", Accept=*/*, Referer=http://blahblah.gotdns.com:8096/web/videoosd.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.8, Cookie=ASP.NET_SessionId=ccn31ncdr4y3pw3kiuinxddk; UseNewThemes=False; .ASPXAUTH=D1EBCDBB93E79A99F0AA2E085253B312300DC107EAE3200F5168195F643B727E95F85249B86FF7044D1D02ADFD4B31AE6D939A1C2D19E1C2DB04F56505CD19D5E8222014BC9AFBA9F7EDBC15ED84E59D2DD636E69630E6F6EF904959B8A59F0CAD783F8A65D533D6A8BCEA9686438E34BD93B3C2C6AAF723ED0ABFAB647920C8733A99B961BDE5320CA432F373F1372D
2017-10-15 23:41:38.341 Info App: Stopping ffmpeg process with q command for C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\c69f112c0a0bf6d9f57d55551ade3d10.m3u8
2017-10-15 23:41:38.464 Info App: FFMpeg exited with code 0

 

EXAMPLE FROM SERVER LOG
UserId=8e95338d8a184293ba03d8ee92654087&StartTimeTicks=1098739950&AutoOpenLiveStream=true&AudioStreamIndex=1&EnableDirectPlay=false&EnableDirectStream=false&AllowVideoStreamCopy=false&MediaSourceId=d48c330c510c8d550cfeb6566b9b2f2c&MaxStreamingBitrate=1000000. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
2017-10-16 00:21:12.625 Info App: User policy for DJJ. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2017-10-16 00:21:12.625 Info App: RemoteClientBitrateLimit: 1000000000, RemoteIp: 1.1161.83, IsInLocalNetwork: False
2017-10-16 00:21:12.625 Info App: Bitrate exceeds DirectStream limit: media bitrate: 12841727, max bitrate: 1000000
2017-10-16 00:21:12.625 Info App: Profile: Unknown Profile, Path: C:\tv\Show\Show_20171015_13001600.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: False
2017-10-16 00:21:12.625 Info App: Profile: Unknown Profile, No direct play profiles found for Path: C:\tv\Show\Show_20171015_13001600.ts
2017-10-16 00:21:12.694 Info HttpServer: HTTP DELETE http://blahblah.gotdns.com:8096/emby/Videos/ActiveEncodings?deviceId=324287dbbe4cf0316d0f3437987984b104656500&PlaySessionId=58242d093701476c94fd551598cdbdb2. Host=blahblah.gotdns.com:8096, Connection=keep-alive, Origin=http://blahblah.gotdns.com:8096, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, X-Emby-Authorization=MediaBrowser Client="Emby Mobile", Device="Chrome", DeviceId="324287dbbe4cf0316d0f3437987984b104656500", Version="3.2.33.0", Token="c26d62ab57a94cbcba8c355aefedc517", Accept=*/*, Referer=http://blahblah.gotdns.com:8096/web/videoosd.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.8, Cookie=ASP.NET_SessionId=ccn31ncdr4y3pw3kiuinxddk; UseNewThemes=False; .ASPXAUTH=D1EBCDBB93E79A99F0AA2E085253B312300DC107EAE3200F5168195F643B727E95F85249B86FF7044D1D02ADFD4B31AE6D939A1C2D19E1C2DB04F56505CD19D5E8222014BC9AFBA9F7EDBC15ED84E59D2DD636E69630E6F6EF904959B8A59F0CAD783F8A65D533D6A8BCEA9686438E34BD93B3C2C6AAF723ED0ABFAB647920C8733A99B961BDE5320CA432F373F1372D
2017-10-16 00:21:12.694 Info App: Stopping ffmpeg process with q command for C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\9c050527e152baa3aa3666a2c1b86a3a.m3u8
2017-10-16 00:21:17.705 Info App: Killing ffmpeg process for C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\9c050527e152baa3aa3666a2c1b86a3a.m3u8
2017-10-16 00:21:17.705 Info App: Deleting partial stream file(s) C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\9c050527e152baa3aa3666a2c1b86a3a.m3u8
2017-10-16 00:21:17.705 Info App: FFMpeg exited with code -1
2017-10-16 00:21:17.767 Info HttpServer: HTTP GET http://blahblah.gotdns.com:8096/emby/videos/d48c330c510c8d550cfeb6566b9b2f2c/master.m3u8?DeviceId=324287dbbe4cf0316d0f3437987984b104656500&MediaSourceId=d48c330c510c8d550cfeb6566b9b2f2c&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=616000&AudioBitrate=384000&PlaySessionId=4bf39dcb1b274e22b8b9319c73a893a6&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=23c63bb88d014253baea71205c20dc0b&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported,ContainerBitrateExceedsLimit&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-deinterlace=true&allowVideoStreamCopy=false. Host=blahblah.gotdns.com:8096, Connection=keep-alive, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36, Accept=*/*, Referer=http://blahblah.gotdns.com:8096/web/videoosd.html, Accept-Encoding=gzip, deflate, Accept-Language=en-US,en;q=0.8, Cookie=ASP.NET_SessionId=ccn31ncdr4y3pw3kiuinxddk; UseNewThemes=False; 
 
ANOTHER EXAMPLE FROM SERVER LOG
 
017-10-16 00:04:07.207 Info App: User policy for DJJ. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
2017-10-16 00:04:07.207 Info App: Profile: Unknown Profile, Path: C:\tv\Show\Show_20171015_13001600.ts, isEligibleForDirectPlay: True, isEligibleForDirectStream: True
2017-10-16 00:04:07.207 Info App: Profile: Unknown Profile, No direct play profiles found for Path: C:\tv\Show\Show_20171015_13001600.ts
2017-10-16 00:04:07.254 Info HttpServer: HTTP DELETE http://blahblah.gotdns.com:8096/emby/Videos/ActiveEncodings?deviceId=c4be0c1ff07e2ecc80542ea35100eb6de9193f68&PlaySessionId=bd2eefe0d3a54f3c893f70894f4f6682. Accept=*/*, Origin=http://blahblah.gotdns.com:8096, Referer=http://blahblah.gotdns.com:8096/web/videoosd.html, Accept-Language=en-US, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063, x-emby-authorization=MediaBrowser Client="Emby Mobile", Device="Edge", DeviceId="c4be0c1ff07e2ecc80542ea35100eb6de9193f68", Version="3.2.33.0", Token="d53e94648a294084a0a8f34e637a1f37", Accept-Encoding=gzip, deflate, Host=blahblah.gotdns.com:8096, Content-Length=0, Connection=Keep-Alive, Cache-Control=no-cache
2017-10-16 00:04:07.254 Info App: Stopping ffmpeg process with q command for C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\c29d4d58ea44b741d4ab944800c8c4f0.m3u8
2017-10-16 00:04:12.267 Info App: Killing ffmpeg process for C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\c29d4d58ea44b741d4ab944800c8c4f0.m3u8
2017-10-16 00:04:12.267 Info App: Deleting partial stream file(s) C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\c29d4d58ea44b741d4ab944800c8c4f0.m3u8
2017-10-16 00:04:12.368 Info HttpServer: HTTP GET http://blahblah.gotdns.com:8096/emby/videos/d48c330c510c8d550cfeb6566b9b2f2c/master.m3u8?DeviceId=c4be0c1ff07e2ecc80542ea35100eb6de9193f68&MediaSourceId=d48c330c510c8d550cfeb6566b9b2f2c&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=266282666&AudioBitrate=384000&PlaySessionId=6e71bbad29074afa98f7674af6d42e21&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=23c63bb88d014253baea71205c20dc0b&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-deinterlace=true&allowVideoStreamCopy=false. Accept=*/*, Referer=http://blahblah.gotdns.com:8096/web/videoosd.html, Accept-Language=en-US, User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063, Accept-Encoding=gzip, deflate, Host=blahblah.gotdns.com:8096, Connection=Keep-Alive
2017-10-16 00:04:12.370 Info HttpServer: HTTP Response 200 to 1.1161.83. Time: 2ms. http://blahblah.gotdns.com:8096/emby/videos/d48c330c510c8d550cfeb6566b9b2f2c/master.m3u8?DeviceId=c4be0c1ff07e2ecc80542ea35100eb6de9193f68&MediaSourceId=d48c330c510c8d550cfeb6566b9b2f2c&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=266282666&AudioBitrate=384000&PlaySessionId=6e71bbad29074afa98f7674af6d42e21&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=23c63bb88d014253baea71205c20dc0b&RequireAvc=true&RequireNonAnamorphic=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&h264-deinterlace=true&allowVideoStreamCopy=false 
2017-10-16 00:04:12.383 Info App: FFMpeg exited with code -1
 
 
 
EXAMPLE FROM FFMPEG LOG:
 
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528630, current: 10213200; changing to 12528631. This may result in incorrect timestamps in the output file.
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528631, current: 10215120; changing to 12528632. This may result in incorrect timestamps in the output file.
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 6 9
[mpeg2video @ 000002c213646ae0] invalid cbp -1 at 25 10
[mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0] ac-tex damaged at 23 11
ac-tex damaged at 69 7
[mpeg2video @ 000002c213646ae0] invalid cbp -1 at 7 12
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 47 8
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 462 DC, 462 AC, 462 MV errors in P frame
frame= 1998 fps=109 q=31.0 size=N/A time=00:02:19.22 bitrate=N/A dup=133 drop=1 speed=7.58x    
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528632, current: 10217040; changing to 12528633. This may result in incorrect timestamps in the output file.
[mpeg2video @ 000002c213646ae0] Invalid mb type in P-frame at 7 9
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 3 10
[mpeg2video @ 000002c213646ae0] mb incr damaged
    Last message repeated 1 times
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 4 7
[mpeg2video @ 000002c213646ae0] invalid cbp 0 at 32 8
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 477 DC, 477 AC, 477 MV errors in P frame
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede638.ts' for writing
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528633, current: 10218960; changing to 12528634. This may result in incorrect timestamps in the output file.
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528634, current: 10220880; changing to 12528635. This may result in incorrect timestamps in the output file.
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 21 41
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 41 42
[mpeg2video @ 000002c213646ae0] Invalid mb type in P-frame at 68 43
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 6 44
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 320 DC, 320 AC, 320 MV errors in P frame
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528635, current: 10222800; changing to 12528636. This may result in incorrect timestamps in the output file.
[mpeg2video @ 000002c213646ae0] invalid frame_pred_frame_dct
[mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0]     Last message repeated 2 times
MT_DMV in progressive_sequence
skip with previntra
[mpeg2video @ 000002c213646ae0] 00 motion_type at 1 18
[mpeg2video @ 000002c213646ae0] MT_DMV in progressive_sequence
mb incr damaged
00 motion_type at 2 10
    Last message repeated 2 times
[mpeg2video @ 000002c213646ae0]     Last message repeated 7 times
[mpeg2video @ 000002c213646ae0]     Last message repeated 8 times
[mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0] MT_DMV in progressive_sequence
00 motion_type at 20 2
00 motion_type at 4 11
00 motion_type at 8 39
    Last message repeated 5 times
[mpeg2video @ 000002c213646ae0] [mpeg2video @ 000002c213646ae0]     Last message repeated 6 times
    Last message repeated 6 times
MT_DMV in progressive_sequence
[mpeg2video @ 000002c213646ae0] 00 motion_type at 3 5
[mpeg2video @ 000002c213646ae0] 00 motion_type at 4 40
[mpeg2video @ 000002c213646ae0] MT_DMV in progressive_sequence
    Last message repeated 1 times
00 motion_type at 2 17
[mpeg2video @ 000002c213646ae0] 00 motion_type at 10 6
[mpeg2video @ 000002c213646ae0] 00 motion_type at 4 7
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 12 8
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528636, current: 10224720; changing to 12528637. This may result in incorrect timestamps in the output file.
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528637, current: 10226640; changing to 12528638. This may result in incorrect timestamps in the output file.
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528638, current: 10228560; changing to 12528639. This may result in incorrect timestamps in the output file.
[mpeg2video @ 000002c213646ae0] skipped MB in I-frame at 1 27
[mpeg2video @ 000002c213646ae0] skipped MB in I-frame at 4 29
[mpeg2video @ 000002c213646ae0] skipped MB in I-frame at 10 6
[mpeg2video @ 000002c213646ae0] skipped MB in I-frame at 4 7
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 17 26
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 480 DC, 480 AC, 480 MV errors in I frame
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528639, current: 10230480; changing to 12528640. This may result in incorrect timestamps in the output file.
[segment @ 000002c213753020] Non-monotonous DTS in output stream 0:1; previous: 12528640, current: 10232400; changing to 12528641. This may result in incorrect timestamps in the output file.
[mpegts @ 000002c211a69260] Invalid timestamps stream=0, pts=1423080400, dts=3544345111, size=24637
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 22 37
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 46 38
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 25 39
[mpeg2video @ 000002c213646ae0] skip with previntra
[mpeg2video @ 000002c213646ae0] mb incr damaged
[mpeg2video @ 000002c213646ae0] ac-tex damaged at 45 43
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 613 DC, 613 AC, 613 MV errors in B frame
[mpeg2video @ 000002c213646ae0] slice mismatch
[mpeg2video @ 000002c213646ae0] invalid cbp 0 at 3 2
[mpeg2video @ 000002c213646ae0] slice mismatch
[mpeg2video @ 000002c213646ae0] Warning MVs not available
[mpeg2video @ 000002c213646ae0] concealing 320 DC, 320 AC, 320 MV errors in P frame
More than 1000 frames duplicated
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede639.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede640.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede641.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede642.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede643.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede644.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede645.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede646.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede647.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede648.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede649.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede650.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede651.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede652.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede653.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede654.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede655.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede656.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede657.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede658.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede659.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede660.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede661.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede662.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede663.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede664.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede665.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede666.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede667.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede668.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede669.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede670.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede671.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede672.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede673.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede674.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede675.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede676.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede677.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede678.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede679.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede680.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede681.ts' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede6.m3u8.tmp' for writing
[segment @ 000002c213753020] Opening 'C:\Users\DJJ\AppData\Roaming\Emby-Server\transcoding-temp\3977ff4134095dbde8306f7d03f3ede682.ts' for writing

 

Posted

Can you provide a sample video for testing? thanks.

Posted

Hi Luke,

   Sent you a PM with a link to download a test file, I truncated it to a 250MB chunk.  It fails at exactly 1:48 everytime.  If you skip past that part to about 2:05 or 2:10 you can get it to continue and finish the rest of the clip.   But if you let it run into the blackout at 1:48 the player will just stop, then re initiate the stream from the very beginning of the file. I should mention I also tried playback locally (http://localhost:8096) from the server, so definitely can rule out any network issue.  I should mention I recorded this in NextPVR before I set up Emby.  Playing it back in NextPVR also had the exact same problem.  Both use FFMPEG, but I'm not sure if the web players are the same or different.  Thanks again for the fast response and helping to look into this for me.  I'm obviously trying to resolve the signal issue with a better antenna and amplifier but with OTA this is likely to happen occasionally anyways.

 

-Dan

Posted

@@Waldonnis I added you to the PM with the sample file. do you think there are any params we can adjust to be more resilient to this sort of thing? Thanks !

Waldonnis
Posted

I got the PM (and file), so I'll poke at it and see what I can find.  Any chance I can get an ffmpeg log as well?  You can add it to the PM chain, if you'd like.

 

A glance over the log snippet above implies that PTS/DTS jumps, which are often commercial inserts or the result of poorly-handled concatenation, may be causing issues.  There are ways to fix that, but would rather see the full ffmpeg log to see what's already being done in this case.

Posted

Hi guys,

   Here's an FFMPEG full log.  I should mention I initially started with the FFMPEG that came in the latest EMBY stable release, but suspecting an FFMPEG issue I did download and have been using 3.3.4 most recently.  The problem is identical either way, so it shouldn't make a difference.  From the logs I've sent so far do you think it is an FFMPEG crapping out problem and not a HTTP protocol / streaming issue?  It would be cool if we can find the right command line option to keep FFMPEG going during these kind of blips if thats the case! 

 

Thanks again for helping to look into this, and so fast!  I would think this might be a fairly common issue for folks with OTA HDTV so if we can fix it that would be awesome!  Please let me know if there's anything else I can do to help.  I think with the test recording file though you can probably reproduce this on your own very easily, but I'm eager to assist too!

 

-Dan

Waldonnis
Posted

I think you forgot to attach the log  :P

 

Looking at the sample file now and the streams are really unhappy.  I'm seeing tons of corrupted audio and video frames, which are making the demuxer go nuts.  I'm guessing this is just a side-effect of drops in the digital OTA signal, but I think this can be accounted for (albeit while also preserving some of the corruption).  A simple remux fails, but transcoding the video stream only with libx264 does produce a watchable file...although it does "pause" during playback a bit when it hits the areas that were corrupted in the original file.  Same results when audio is added to the mix (ac3->aac in my quick test).

 

I generated a report during the transcode that I still have to look over as well.  I haven't tried introducing any options yet for correcting timestamps since I'm still just trying to get a handle on how bad the streams' corruption situation is.  Even ffprobe crashes when dumping the frames, so I may have to dig out my hex editor if I need to see more detail.

Posted (edited)

Woops heres the log file again, hopefully it posted this time!  Thanks for the continued updates on your progress debugging this.    And yea i think the corrupted frames are unavoidable if you have a digital OTA signal interruption, but sounds like you've found a way to keep the thing watchable at least.  I swear the other day to get thru the entire recording every 10min or so I had to keep fast forwarding past the glitchy OTA signal parts, it was such a pain in the butt!

ffmpeg_log.txt

Edited by djjaeger82
Waldonnis
Posted (edited)

Thanks!  Yeah, I'm playing with the discardcorrupt fflag for starters, which seems to do decently and basically just pads the timeline with duplicated non-corrupt frames.  It's an option that helped me in the past with some severely corrupted streams when I just wanted to edit or split out the good parts but couldn't get past the bad using my normal methods.  It's not something I'd recommend quite yet, as there are some other things I'm still looking at (I still have to dump some debugging info) and it has some caveats.

 

On a funny side note, I tried adding a few things to try to get a remux to actually work, mostly to see if I could correct the timestamps without fixing the stream data (for science!).  Because of the corruption, the reported length of the output file was 25hrs...hehehe.  Just shows how sometimes generating timestamps can go horribly wrong when the streams themselves are the real issue.

 

Edit:

I'm starting to think copyts is what's killing us here, but want to look at it more in depth and with a command line that's closer to what the server would use.  If the demuxer isn't fixing the timestamps and instead just passing them through untouched (and corrupted), the rest of the encoding execution chain will be dealing with input that probably doesn't make sense.  Still a lot of things I haven't accounted for yet, though, so it's too early to draw a solid conclusion yet.  I'll see keep at it after a much needed nap.  I will say that in the absence of copyts, limited testing with various vsync values produced watchable output that wasn't far from the original source (0 duped frames and only 7 drops as well)...and that's without having to resort to fflags like discardcorrupt at all.

Edited by Waldonnis
  • 2 weeks later...
Waldonnis
Posted

Sorry for the delay...it's been a crazy couple of weeks.  I'll get back to looking at this very soon.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...