Web transcoding failing - h264 and mpeg2

For the h264, the web player says “Remux Running: 0s @” but nothing ever plays, it just spins. The log shows:
2017/09/29 13:09:14 [HLS] Starting transcoder for file-1941 at 0s (encoder=remux, resolution=720, deinterlacer=linear, bitrate=6000) [mpegts @ 0x7f9b46009a00] Dropped corrupted packet (stream = 0) [mpegts @ 0x7f9b46009a00] Dropped corrupted packet (stream = 1) 2017/09/29 13:09:37 [HLS] Stopping transcoder session file-1941 @ 0s

On the mpeg2, it says “Transcoder Running: 0s @” but nothing ever plays and it just spins. The log shows:

2017/09/29 13:12:18 [HLS] Starting transcoder for file-1839 at 0s (encoder=libx264, resolution=720, deinterlacer=linear, bitrate=6000) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 3) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 2) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 5) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 11) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 12) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 14) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 10) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 8) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 15) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 1) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 9) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 18) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 23) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 13) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 21) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 32) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 34) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 28) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 24) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 38) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 35) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 17) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 26) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 44) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 29) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 30) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 41) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 49) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 45) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 52) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 31) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 37) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 36) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 50) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 40) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 54) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 60) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 62) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 27) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 47) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 57) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 69) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 59) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 70) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 38) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 73) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 7) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 75) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 71) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 77) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 53) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 22) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 74) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 20) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 67) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 58) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 76) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 83) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 81) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 84) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 85) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 72) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 34) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 61) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 92) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 64) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 91) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 94) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 99) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 42) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 96) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 79) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 102) [mpegts @ 0x7fd742008000] Dropped corrupted packet (stream = 90) 2017/09/29 13:12:28 [HLS] Stopping transcoder session file-1839 @ 0s

Could this be because I use comchap to put the chapters from the EDL in the file?

Huh that’s a lot of streams. What does ffmpeg -hide_banner -i file.mpg show for the list of input streams?

This is the h264 one:
Input #0, matroska,webm, from 'Flip or Flop Atlanta S01E11 2017-09-28 From Junky to Funky 2017-09-28-2100.mpg': Metadata: ENCODER : Lavf57.71.100 Duration: 00:31:00.33, start: 0.000000, bitrate: 3555 kb/s Chapter #0:0: start 0.000000, end 0.000000 Metadata: title : Chapter 1 Chapter #0:1: start 0.000000, end 13.630000 Metadata: title : Commercial 1 Chapter #0:2: start 13.630000, end 501.600000 Metadata: title : Chapter 2 Chapter #0:3: start 501.600000, end 632.160000 Metadata: title : Commercial 2 Chapter #0:4: start 632.160000, end 872.220000 Metadata: title : Chapter 3 Chapter #0:5: start 872.220000, end 1085.530000 Metadata: title : Commercial 3 Chapter #0:6: start 1085.530000, end 1432.630000 Metadata: title : Chapter 4 Chapter #0:7: start 1432.630000, end 1644.460000 Metadata: title : Commercial 4 Chapter #0:8: start 1644.460000, end 1813.550000 Metadata: title : Chapter 5 Chapter #0:9: start 1813.550000, end 1858.860000 Metadata: title : Commercial 5 Chapter #0:10: start 1858.860000, end 1860.330000 Metadata: title : Chapter 6 Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 1k tbn, 119.88 tbc (default) Metadata: DURATION : 00:31:00.325000000 Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: DURATION : 00:30:59.264000000

This is the mpeg2 one:
Input #0, matroska,webm, from 'Gotham S04E02 2017-09-28 A Dark Knight The Fear Reaper 2017-09-28-2000.mpg': Metadata: ENCODER : Lavf57.71.100 Duration: 01:02:00.13, start: 0.000000, bitrate: 11851 kb/s Chapter #0:0: start 0.000000, end 0.000000 Metadata: title : Chapter 1 Chapter #0:1: start 0.000000, end 48.260000 Metadata: title : Commercial 1 Chapter #0:2: start 48.260000, end 550.750000 Metadata: title : Chapter 2 Chapter #0:3: start 550.750000, end 746.780000 Metadata: title : Commercial 2 Chapter #0:4: start 746.780000, end 1288.620000 Metadata: title : Chapter 3 Chapter #0:5: start 1288.620000, end 1515.410000 Metadata: title : Commercial 3 Chapter #0:6: start 1515.410000, end 1943.070000 Metadata: title : Chapter 4 Chapter #0:7: start 1943.070000, end 2186.580000 Metadata: title : Commercial 4 Chapter #0:8: start 2186.580000, end 2540.920000 Metadata: title : Chapter 5 Chapter #0:9: start 2540.920000, end 2786.530000 Metadata: title : Commercial 5 Chapter #0:10: start 2786.530000, end 3174.640000 Metadata: title : Chapter 6 Chapter #0:11: start 3174.640000, end 3336.950000 Metadata: title : Commercial 6 Chapter #0:12: start 3336.950000, end 3670.080000 Metadata: title : Chapter 7 Chapter #0:13: start 3670.080000, end 3719.100000 Metadata: title : Commercial 7 Chapter #0:14: start 3719.100000, end 3720.130000 Metadata: title : Chapter 8 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 1k tbn, 119.88 tbc (default) Metadata: DURATION : 01:02:00.134000000 Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: DURATION : 01:01:59.205000000

Looks normal. I guess the chapter markers are affecting it some how. Do other recordings still transcode ok?

Only things I haven’t added chapters to, which at this point is like 5 out of 100+ episodes ha.

Send me a small sample file and I’ll see what’s going on.

Just sent a link to [email protected]

Seeing the same issue, but not sure why.

Do your converted files play in the Channels apps directly?

Yup, no issues at all in Channels. If I use Plex and set it to transcode they play fine there, too.

That’s cool, I hadn’t tested the Channels player with mkv files before.

I tested one out before I started working on the rest, I just didn’t think to test it in the web player.

The transcoder assumes files on disk are mpg, and is trying to the read the mkv as a mpg file. I’ll fix it for next build.

1 Like

As always you’re the best. Thanks!

See… this is why we can’t have nice things.

:stuck_out_tongue_winking_eye:

1 Like

Nice things are had again! :joy: The fix is live!

2 Likes