Repair TS for Chromecast

Begonnen von arcimus, März 11, 2021, 18:42:32

« vorheriges - nächstes »

arcimus

Hello All,
I'm evaluating TS-Doctor 3.1.8 to see if it can resolve a long standing issue I've had playing MPEG2 files on Chromecast.  The files are ATSC broadcasts recorded by MythTV with a SiliconDust HDHomeRun, streamed through Plex to a Chromecast.  The vast majority of files work just fine.  However, occasionally, one of the recordings will consistently cause the Chromecast to reboot at some point in the recording.  I do not see errors in Plex when this happens.

I opened an example file in TS-Doctor 3.1 then saved to a new file in an attempt to fix the video, but I do not see an improvement.  The "Result of the process" screen displays 5 warnings and 3 errors.  I'm not sure if these are found and corrected, or just found.  Any advice?  Am I using the program correctly?

Here is the log:

Opening file \\Dvr\root\storage\recordings\1361_20210222040000_orig.ts

OS: Windows 10 Build 18363 x64
OS language    : EN [EN-US,EN]
Appl. language : English
TSDoctor.exe V 3.1.8 (Build 050D43) Trial
Instance     : 0
System memory: 15.95 GB / Free: 8.22 GB
Used memory  : 185.73 MB
NVIDIA GeForce RTX 2070 (DISPLAY1) nvldumd.dll 27.21.14.5751
NVIDIA GeForce RTX 2070 (DISPLAY2) nvldumd.dll 27.21.14.5751
CPU type     : AMD Ryzen 5 2600X Six-Core Processor           
CPU count    : 12
CPU usage    : 9%
Resolution   : 2560 x 1440 (32Bit) 96 DPI
Monitors     : 2
Supported TS source filter found  : TS Doctor FileSource (on)
Supported splitter filter found   : Haali Media Splitter
Supported audio filter found      : Cypheros Audio Decoder
Supported Mpeg video filter found : Cypheros MPEG2 Video Decoder
Supported H.264 video filter found : Microsoft DTV-DVD Video Decoder
Supported H.265 video filter found :
Supported video renderer found    : Video Renderer, Haali Video Renderer, Enhanced Video Renderer

Channel database : 8405 channels, 7 satellites [Thor 0.8°W, Astra 19.2°E, Astra 23.5°E, Astra 28.2°E, Astra 4.9°E, Hellas Sat 39°E, Hotbird 13°E]
Teletext database: 304 channels, version 20.8.20

File size: 2669768072
Packets  : 14200894

Found 1 fill packets at end
Broadcast standard selected: ATSC
Broadcast standard detected: DVB

112   (0070): 0%   = PMT
113   (0071): 88%  = MPEG2 Video (PES_StreamID E0 = Video_Stream_0) {00000100} [PCR,PTS,DTS]
116   (0074): 8%   = AC3 Audio (PES_StreamID BD = Private_Stream_1) {0B77D8F9} [PTS][PESLength]
118   (0076): 2%   = AC3 Audio (PES_StreamID BD = Private_Stream_1) {0B77E0B8} [PTS][PESLength]
117   (0075): 2%   = AC3 Audio (PES_StreamID BD = Private_Stream_1) {0B77B57C} [PTS][PESLength]
0     (0000): 0%   = PAT



PES WARNING: More than one PMT found, selecting PMT 1, PID 0070

Selecting PMT with PID 112 (0070) at position 0000013C
CRC OK!
Conforming PMT entry 1 to ATSC standard
Conforming PMT entry 2 to ATSC standard
Conforming PMT entry 3 to ATSC standard

0.
  stream_type              : 2 = ITU-T Rec. H.262 | ISO/IEC 13818-2 Video | ISO/IEC 11172-2 constr. parameter video stream
  elementary_pid           : 113 (0071)
  ES_info_length           : 14

1.
  stream_type              : 129 = Private stream type Audio AC3
  elementary_pid           : 116 (0074)
  ES_info_length           : 24

2.
  stream_type              : 129 = Private stream type Audio AC3
  elementary_pid           : 117 (0075)
  ES_info_length           : 24

3.
  stream_type              : 129 = Private stream type Audio AC3
  elementary_pid           : 118 (0076)
  ES_info_length           : 24

PCR PID is 113 (0071)

searching for channel: SID=1, TID=3223, VPID=113
First video PTS is 2921907088 09:01:05.634
Last video PTS  is 3245634993 10:01:02.611

First PCR  is 876547285800 09:01:04.714
Last PCR  is 973671564220 10:01:01.910
Duration of video stream is 323747595 00:59:57.196
Video PCR to PTS difference -920 ms
116   (0074): Delay to video stream = -784ms
117   (0075): Delay to video stream = -592ms
118   (0076): Delay to video stream = -592ms

PID allocation
  :112   (0070)###########..#############.######################.#.#######.#####.###########.#.#######.#.###.######.
V :113   (0071)#####################################################################################################
A :116   (0074)####################################################################################################.
A :118   (0076)####################################################################################################.
A :117   (0075)####################################################################################################.
  :0     (0000)####################################################################################################.

First I-Frame PTS at 09:01:05.634 [00:00:00.033]
Video format: MPEG2 1280x720 / 59.940 fps
EIA-608 data ( Closed Caption )
First GOP = 60 frames : I0 P3 B1 B2 P6 B4 B5 P9 B7 B8 P12 B10 B11 P15 B13 B14 P18 B16 B17 P21 B19 B20 P24 B22 B23 P27 B25 B26 P30 B28 B29 P33 B31 B32 P36 B34 B35 P39 B37 B38 P42 B40 B41 P45 B43 B44 P48 B46 B47 P51 B49 B50 P54 B52 B53 P57 B55 B56 P59 B58

AC3 6 channels: 18 times
Audio stream 1: Dolby Digital 5.1 48000Hz (ENG)
AC3 1 channels: 18 times
Audio stream 2: Dolby Digital 1.0 48000Hz (SPA)
AC3 1 channels: 18 times
Audio stream 3: Dolby Digital 1.0 48000Hz (ENG)
Commercial search options: VA
Commercial search skipped

No cutting

File area distribution
1 [1-1] : 1361_20210222040000.ts

OCR skipped: -1, -1, -1, 0, 0
SRT writer skipped

Cut in  at PCR: 00:00:00.000 (09:01:04.714)
Cut out at PCR: 00:59:57.196 (10:01:01.910)
First packet  : 00000002
Last packet   : 00D8B03D
Using current PCR as start PCR

Starting at packet 00000002 PCR: 00:00:00.000 (09:01:04.714)
TS  WARNING: For PID 0071 00:25:35.271 TS packet 005B1783: Packet discontinuity  last=12 , current=2
TS  WARNING: For PID 0076 00:25:35.271 TS packet 005B180B: Packet discontinuity  last=7 , current=10
PES ERROR  : For PID 0076 00:25:35.560 PES packet 00001F3D is invalid (SizeMismatch), starting with TS packet 005B1701 Size: 1944 should be 2312
TS  WARNING: For PID 0071 00:46:41.951 TS packet 00A7BECD: Packet discontinuity  last=0 , current=9
TS  WARNING: For PID 0076 00:46:41.951 TS packet 00A7BED0: Packet discontinuity  last=10 , current=12
TS  WARNING: For PID 0074 00:46:41.951 TS packet 00A7BEE6: Packet discontinuity  last=13 , current=15
PES ERROR  : For PID 0076 00:46:42.184 PES packet 00003902 is invalid (SizeMismatch), starting with TS packet 00A7BE0B Size: 2128 should be 2312
PES ERROR  : For PID 0074 00:46:41.992 PES packet 00003902 is invalid (SizeMismatch), starting with TS packet 00A7BE9D Size: 10576 should be 10760
Ending at packet 00D8B03D PCR: 00:59:57.196 (10:01:01.910)

File sizes:
            C:\Users\XXXXXX\Desktop\1361_20210222040000.ts 2,597,258 KB [CRC=C284D14C]
Cutted packets at the beginning: 0
Cutted packets at the end: 1
Discarded packets (not needed): 56958

PID stream sizes
$0071:   2,304,364 KB
$0074:     202,943 KB
$0075:      44,717 KB
$0076:      44,716 KB

PID stream average bitrates
$0071: 5.2 Mbps
$0074: 462.2 Kbps
$0075: 101.8 Kbps
$0076: 101.8 Kbps

ERRORS : 3
WARNINGS : 5

Speed: 66.2 MBytes/sec
Duration: 00:00:38

Cypheros

Hi, so far as I can see there were reception problem during the recording, creating errors and missing packets. TS-Doctor can not perform miracles and bring back missing data but can try to make the scars less visible. Most mediaplayers have not problem with little scars in TS recordings because it is pretty common to have some errors (reception interference) in transport streams from time to time.

Try to use Tools/Expert tools/"TS Packet Timing" on the fixed file and please post a screenshot of the result, to see if the important timers are OK.

arcimus

Thanks much for your response.  I attached the screenshot.

Cypheros

Video PTS and PCR looking good. No jumps, no problems.

Is current version of Plex in use and the Chromcast device has the current firmware?
Check if Plex is transcoding the file and try to disable it.

arcimus

#4
Yes, Plex is fully updated and the Chromecast is running the latest firmware.

I disabled transcoding in Plex, but all my broadcast recordings would not play, with the following errors in the Plex console:

[Chromecast] [PDE] Unable to play item; This server is not powerful enough to convert video.
[Chromecast] [MDE] Unable to play; server unable to transcode video
[Chromecast] [MDE] Soft subtitles failed; Closed captioning
[Chromecast] [MDE] Invalid profile property; protocol: undefined !== hls
[Chromecast] [MDE] Unable to validate protocol; re-analyze the media if possible
[Chromecast] [MDE] Starting analysis of 720 (mpegts, mpeg2video, ac3, 4, main)


Also, I tried Play Original Quality in the Plex android app, but the Plex logs show that it is still being transcoded.

arcimus

Any further thoughts?  I read that demuxing and remuxing might fix.  Any truth to that?

Cypheros

Could help but there is also a good chance to introduce new problems like loosing the lipsync.


www.cypheros.de