Testing the new Experimental Transcoder (for improved remote viewing of recorded content)

I’ll even take Free Practice 1. :smile:

Sadly we only get quali and the main gp on channel 4 here!

I will try recording the football instead tonight to see if that has the same issues and send over tomorrow if it does

1 Like

hey Eric.. some recordings winging their way to you via email... all have massive interlacing artefacts when played at normal res on fireTv 4k via channels... especially the F1 quali which is mainly a blur of interlaced lines

1 Like

This is great. I was totally able to see what you're talking about. We'll figure out what the best steps forward are for this.

1 Like

As a follow-up to this work, I've just released a new experimental setting to provide automatic bandwidth adjustment for Live TV watching. You can read about it here:

Running 2019.12.26.0206 currently (update about once a week)

I have a remote (liveTV) stream that is choppy. Is this due to the new transcoder option?

My remote site (AppleTV) is set to 720p @ 3mbps
My remote site has 100mbps download
My local site has 200mbps download/20mbps upload

My DVR server is running in a Virtualbox which has 4 cores (AMD Ryzen 2400G) and 4GB dedicated to it.

2019/12/27 07:26:35 [ENC] Starting encoder for ch6.1 in /mnt/data/apps/dvr/storage/Streaming/ch6.1-dANY-ip192.168.100.54/encoder-1-827911728 at 1 (0.000000) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=3744 segment_size=0.01)
2019/12/27 07:27:18 [ENC] Segment 29 has unexpected duration: inputs=30 expected=1.5015 actual=2.002 expected_pts=43.443399-44.944899 actual_pts=42.952444-44.921078
2019/12/27 07:27:21 [ENC] Segment 31 has unexpected duration: inputs=33 expected=1.2012 actual=1.5015 expected_pts=46.446399-47.647599 actual_pts=46.489311-47.957444
2019/12/27 07:27:26 [ENC] Segment 34 has unexpected duration: inputs=37 expected=1.234567 actual=1.5015 expected_pts=50.650599-51.885166 actual_pts=50.693511-52.161644
2019/12/27 07:27:28 [ENC] Segment 36 has unexpected duration: inputs=40-41 expected=1.5015 actual=1.568233 expected_pts=53.386666-54.888166 actual_pts=53.362844-54.897711
2019/12/27 07:27:31 [ENC] Segment 38 has unexpected duration: inputs=43 expected=1.4014 actual=1.5015 expected_pts=56.389666-57.791066 actual_pts=56.432578-57.900711
2019/12/27 07:27:36 [ENC] Segment 41 has unexpected duration: inputs=47 expected=0.533867 actual=1.735067 expected_pts=61.027632-61.561499 actual_pts=60.803611-62.505311
2019/12/27 07:27:42 [ENC] Segment 45 has unexpected duration: inputs=52 expected=0.6006 actual=1.5015 expected_pts=65.965899-66.566499 actual_pts=66.008811-67.476944
2019/12/27 07:27:44 [ENC] Segment 47 has unexpected duration: inputs=54 expected=1.8018 actual=1.9019 expected_pts=68.468399-70.270199 actual_pts=68.110911-69.979444

Since the errors all look to be about problems with PTS in the stream, it looks like the problem was most likely with errors in the broadcast stream.

(Please correct me if I'm wrong.)

I’ve made some improvements to the latest DVR beta to hopefully fix what your seeing. Can you upgrade and try that?

Also, with this new system, if it’s working correctly you should be able to keep your streaming quality at 8mbps and the client will adjust up and down based on how much available bandwidth it sees.

Could you see if it handles everything correctly after you’ve upgraded?

I have just upgraded. I'll try in a bit and report back...

1 Like

Here is the latest remote live TV session...

2019/12/27 18:35:19 [HLS] Starting transcoder for channel 13.1 from 192.168.100.54 (encoder=remux, resolution=, deinterlacer=, bitrate=0)

2019/12/27 18:35:20 [HLS] Probed live stream in 519.985619ms: mpeg2video 1280x720 progressive 11311676bps

2019/12/27 18:35:21 [ENC] Starting encoder for ch13.1 in /mnt/data/apps/dvr/storage/Streaming/ch13.1-dANY-ip192.168.100.54/encoder-1-450247875 at 1 (0.434289) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=3744 segment_size=0.01)

2019/12/27 18:44:21 [ENC] Segment 540 has unexpected duration: inputs=2163-2167 expected=1.000667 actual=1.051044 expected_pts=538.972289-539.956611 actual_pts=538.976944-540.011311

2019/12/27 18:45:16 [ENC] Segment 595 has unexpected duration: inputs=2390-2394 expected=1.000667 actual=1.1011 expected_pts=594.027289-595.011611 actual_pts=593.981889-595.066311

2019/12/27 18:45:19 [ENC] Segment 598 has unexpected duration: inputs=2403-2407 expected=1.000667 actual=1.051044 expected_pts=597.030289-598.014611 actual_pts=597.034944-598.069311

2019/12/27 18:45:30 [ENC] Segment 609 has unexpected duration: inputs=2450-2454 expected=1.000667 actual=1.1011 expected_pts=608.041289-609.025611 actual_pts=607.995889-609.080311

2019/12/27 18:48:52 [ENC] Segment 811 has unexpected duration: inputs=3267-3271 expected=1.000667 actual=1.084422 expected_pts=809.993044-810.977356 actual_pts=809.964322-811.032056

2019/12/27 18:49:16 [ENC] Segment 835 has unexpected duration: inputs=3372-3376 expected=1.000667 actual=1.084422 expected_pts=834.017044-835.001356 actual_pts=833.988322-835.056056

2019/12/27 18:49:22 [ENC] Segment 841 has unexpected duration: inputs=3397-3401 expected=1.000667 actual=1.084422 expected_pts=840.023044-841.007356 actual_pts=839.994322-841.062056

2019/12/27 18:49:24 [ENC] Segment 843 has unexpected duration: inputs=3406-3410 expected=1.000667 actual=1.084422 expected_pts=842.025044-843.009356 actual_pts=841.996322-843.064056

2019/12/27 18:49:44 [ENC] Segment 863 has unexpected duration: inputs=3489-3493 expected=1.000667 actual=1.084422 expected_pts=862.045044-863.029356 actual_pts=862.016322-863.084056

2019/12/27 18:49:52 [ENC] Segment 871 has unexpected duration: inputs=3522-3526 expected=1.000667 actual=1.084422 expected_pts=870.053044-871.037356 actual_pts=870.024322-871.092056

2019/12/27 18:50:22 [ENC] Segment 901 has unexpected duration: inputs=3644-3648 expected=1.000667 actual=1.084422 expected_pts=900.083044-901.067356 actual_pts=900.054322-901.122056

2019/12/27 18:51:07 [ENC] Segment 946 has unexpected duration: inputs=3829-3833 expected=1.000667 actual=1.084422 expected_pts=945.128044-946.112356 actual_pts=945.099322-946.167056

2019/12/27 18:51:32 [ENC] Segment 971 has unexpected duration: inputs=3932-3936 expected=1.000667 actual=1.084422 expected_pts=970.153044-971.137356 actual_pts=970.124322-971.192056

2019/12/27 18:52:03 [ENC] Segment 1002 has unexpected duration: inputs=4062-4066 expected=1.000667 actual=1.084422 expected_pts=1001.184044-1002.168356 actual_pts=1001.155322-1002.223056

2019/12/27 18:56:01 [ENC] Segment 1240 has unexpected duration: inputs=5023-5027 expected=1.000667 actual=1.051044 expected_pts=1239.171789-1240.156111 actual_pts=1239.176444-1240.210811

2019/12/27 18:56:46 [ENC] Segment 1286 has unexpected duration: inputs=5213-5217 expected=1.000667 actual=1.084422 expected_pts=1284.967544-1285.951856 actual_pts=1284.938822-1286.006556

2019/12/27 18:57:22 [ENC] Segment 1322 has unexpected duration: inputs=5367-5371 expected=1.000667 actual=1.051056 expected_pts=1321.003544-1321.987856 actual_pts=1321.008189-1322.042556

2019/12/27 18:58:18 [SNR] Statistics for ch6.1 WCSH-HD: ss=100% snq=100%,87%-100% seq=100% bps=11914688,5552768-14567744 pps=1132,527-1383

2019/12/27 18:58:18 [TNR] Closed connection to 10706583/0 for ch6.1 WCSH-HD

2019/12/27 18:58:29 [HLS] Stopping transcoder session ch13.1-dANY-ip192.168.100.54 (out: 23m10.005822s, finished: false)

2019/12/27 18:58:29 [ENC] Stopped encoder for ch13.1 in /mnt/data/apps/dvr/storage/Streaming/ch13.1-dANY-ip192.168.100.54/encoder-1-450247875 after encoding 1 to 1388

2019/12/27 18:58:29 [TNR] Closed connection to 10706583/1 for ch13.1 CBS

2019/12/27 18:58:30 [TNR] Opened connection to 10706583/0 for ch13.1 CBS

2019/12/27 18:58:30 [HLS] Starting transcoder for channel 13.1 from 192.168.100.54 (encoder=remux, resolution=, deinterlacer=, bitrate=0)

2019/12/27 18:58:31 [HLS] Probed live stream in 512.307549ms: mpeg2video 1280x720 progressive 4802941bps

2019/12/27 18:58:34 [TNR] Opened connection to 10706583/1 for ch8.1 WMTW-HD

2019/12/27 18:58:34 [HLS] Starting transcoder for channel 8.1 from 192.168.100.54 (encoder=remux, resolution=, deinterlacer=, bitrate=0)

2019/12/27 18:58:35 [HLS] Probed live stream in 1.301917055s: mpeg2video 1920x1080 progressive 9032865bps

2019/12/27 18:58:37 [ENC] Starting encoder for ch8.1 in /mnt/data/apps/dvr/storage/Streaming/ch8.1-dANY-ip192.168.100.54/encoder-1-959975586 at 1 (2.029956) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=3744 segment_size=0.01)

2019/12/27 18:58:50 [ENC] Segment 7 has unexpected duration: inputs=7-8 expected=2.118644 actual=2.185511 expected_pts=11.756344-13.841756 actual_pts=11.777678-13.929822

2019/12/27 18:58:55 [ENC] Segment 11 has unexpected duration: inputs=12-13 expected=1.151078 actual=1.251256 expected_pts=18.346256-19.464044 actual_pts=18.367589-19.568789

2019/12/27 18:59:02 [ENC] Segment 16 has unexpected duration: inputs=20-21 expected=1.868422 actual=1.951945 expected_pts=23.601511-25.436678 actual_pts=23.622844-25.541422

2019/12/27 18:59:04 [HLS] Stopping inactive session ch13.1-dANY-ip192.168.100.54

2019/12/27 18:59:04 [HLS] Stopping transcoder session ch13.1-dANY-ip192.168.100.54 (out: 33.558s, finished: false)

2019/12/27 18:59:04 [TNR] Closed connection to 10706583/0 for ch13.1 CBS

2019/12/27 18:59:09 [ENC] Segment 21 has unexpected duration: inputs=27-28 expected=1.868411 actual=1.918578 expected_pts=30.558456-32.393622 actual_pts=30.629844-32.498378

2019/12/27 18:59:11 [ENC] Segment 24 has unexpected duration: inputs=32 expected=1.434767 actual=1.5015 expected_pts=34.996222-36.397622 actual_pts=35.017556-36.485689

2019/12/27 18:59:34 [ENC] Segment 39 has unexpected duration: inputs=47 expected=1.434767 actual=1.5015 expected_pts=57.251789-58.653189 actual_pts=57.273122-58.741256

2019/12/27 18:59:44 [ENC] Segment 45 has unexpected duration: inputs=54-55 expected=1.468133 actual=1.534867 expected_pts=66.160689-67.595456 actual_pts=66.182022-67.683522

2019/12/27 18:59:45 [HLS] Stopping transcoder session ch8.1-dANY-ip192.168.100.54 (out: 1m11.799667s, finished: false)

2019/12/27 18:59:45 [ENC] Stopped encoder for ch8.1 in /mnt/data/apps/dvr/storage/Streaming/ch8.1-dANY-ip192.168.100.54/encoder-1-959975586 after encoding 1 to 45

2019/12/27 18:59:45 [TNR] Closed connection to 10706583/1 for ch8.1 WMTW-HD

2019/12/27 18:59:46 [TNR] Opened connection to 10706583/0 for ch8.1 WMTW-HD

2019/12/27 18:59:46 [HLS] Starting transcoder for channel 8.1 from 192.168.100.54 (encoder=remux, resolution=, deinterlacer=, bitrate=0)

2019/12/27 18:59:46 [HLS] Probed live stream in 518.316471ms: mpeg2video 1920x1080 tt 7524624bps

2019/12/27 19:00:19 [HLS] Stopping inactive session ch8.1-dANY-ip192.168.100.54

2019/12/27 19:00:19 [HLS] Stopping transcoder session ch8.1-dANY-ip192.168.100.54 (out: 33.093567s, finished: false)

[mpegts @ 0x555555920fc0] 2019/12/27 19:00:19 [TNR] Closed connection to 10706583/0 for ch8.1 WMTW-HD

Dropped corrupted packet (stream = 1)

[mpegts @ 0x555555920fc0] Dropped corrupted packet (stream = 2)

How was the playback? Did it play cleanly or did you have issues?

Playback is better. The stream holds up much better than before.

I’m researching an issue with throughput on my site-to-site vpn. This is my root cause to this problem...but much appreciate making the tv stream more resilient!

Running DVR Beta version: 2019.12.31.2144

See below error from ffmpeg...

I'm getting choppy video again while streaming remotely.

2020/01/01 14:29:00.994361 [TNR] Opened connection to 10706583/0 for ch8.1 WMTW-HD
2020/01/01 14:29:00.998699 [HLS] Starting transcoder for channel 8.1 from 192.168.100.54 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2020/01/01 14:29:01.848424 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-remux: [mpegts @ 0x5555562ca000] Could not find codec parameters for stream 0 (Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv, top first)): unspecified size
2020/01/01 14:29:01.848456 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-remux: Consider increasing the value for the 'analyzeduration' and 'probesize' options
2020/01/01 14:29:02.315721 [HLS] Probed live stream in 1.316295805s: mpeg2video 1920x1080 tt 10427279bps
2020/01/01 14:29:04.459460 [HLS] Session ch8.1-dANY-ip192.168.100.54 started in 3.843643137s
2020/01/01 14:29:04.460161 [HLS] Session ch8.1-dANY-ip192.168.100.54 started in 3.8443403s
2020/01/01 14:29:04.466627 [ENC] Starting encoder for ch8.1 in /mnt/data/58oldfarmroad/apps/dvr/storage/Streaming/ch8.1-dANY-ip192.168.100.54/encoder-1-635361375 at 1 (1.553722) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=3000 segment_size=0.01)
2020/01/01 14:29:04.474289 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: [mpegts @ 0x5555561af540] Could not find codec parameters for stream 0 (Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv)): unspecified size
2020/01/01 14:29:04.474320 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: Consider increasing the value for the 'analyzeduration' and 'probesize' options
2020/01/01 14:29:04.556409 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: [mpeg2video @ 0x5555561e0200] video_delay is larger in decoder than demuxer 1 > 0.
2020/01/01 14:29:04.556445 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. ([email protected])
2020/01/01 14:29:04.575051 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: Last message repeated 4 times
2020/01/01 14:29:04.575079 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: [libx264 @ 0x5555561d0a00] MB rate (324000000) > level limit (522240)
2020/01/01 14:29:04.590285 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: [mpeg2video @ 0x5555561e0200] video_delay is larger in decoder than demuxer 1 > 0.
2020/01/01 14:29:04.590329 [HLS] ffmpeg: ch8.1-dANY-ip192.168.100.54-1-h264-aac-3000-128-720-0-0--blend-false-false-0.01: If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. ([email protected])
2020/01/01 14:29:14.488282 [ENC] Segment 7 has unexpected duration: inputs=9-10 expected=1.5015 actual=1.568234 expected_pts=9.261422-10.729556 actual_pts=9.282756-10.817622
2020/01/01 14:29:22.973086 [ENC] Segment 14 has unexpected duration: inputs=19-20 expected=1.3013 actual=1.368033 expected_pts=18.370522-19.638456 actual_pts=18.391856-19.726522
2020/01/01 14:29:28.782512 [ENC] Segment 18 has unexpected duration: inputs=25-26 expected=1.5015 actual=1.568233 expected_pts=23.976122-25.444256 actual_pts=23.997456-25.532322
2020/01/01 14:29:34.274597 [ENC] Segment 22 has unexpected duration: inputs=30-31 expected=0.633956 actual=0.717389 expected_pts=30.382522-30.983122 actual_pts=30.403856-31.071189
2020/01/01 14:29:40.479242 [ENC] Segment 28 has unexpected duration: inputs=39 expected=0.650611 actual=0.717389 expected_pts=36.722189-37.356156 actual_pts=36.743522-37.410856
2020/01/01 14:29:45.478096 [ENC] Segment 32 has unexpected duration: inputs=43 expected=1.484722 actual=1.551544 expected_pts=40.809611-42.277744 actual_pts=40.830944-42.332444
2020/01/01 14:30:02.792324 [ENC] Segment 44 has unexpected duration: inputs=60 expected=1.818367 actual=1.885222 expected_pts=57.409522-59.211322 actual_pts=57.430856-59.266022
2020/01/01 14:30:18.880833 [ENC] Segment 54 has unexpected duration: inputs=73 expected=1.818367 actual=1.885211 expected_pts=72.808244-74.593356 actual_pts=72.862944-74.698111
2020/01/01 14:30:25.170418 [ENC] Segment 59 has unexpected duration: inputs=80 expected=1.618178 actual=1.668333 expected_pts=80.649411-82.234322 actual_pts=80.704111-82.339078
2020/01/01 14:30:29.081996 [ENC] Segment 61 has unexpected duration: inputs=82-83 expected=1.868411 actual=1.968633 expected_pts=83.435522-85.270689 actual_pts=83.456856-85.375444
2020/01/01 14:30:33.573585 [ENC] Segment 64 has unexpected duration: inputs=86-87 expected=0.867478 actual=0.934266 expected_pts=89.574989-90.409156 actual_pts=89.596322-90.497222
2020/01/01 14:30:43.574824 [ENC] Segment 71 has unexpected duration: inputs=96-97 expected=1.5015 actual=1.6016 expected_pts=98.850922-100.319056 actual_pts=98.838889-100.407122
2020/01/01 14:30:47.078102 [ENC] Segment 73 has unexpected duration: inputs=100-101 expected=1.4014 actual=1.468134 expected_pts=101.954022-103.322056 actual_pts=101.975356-103.410122

This is fixed in the latest build.

You guys are good! I thought I had the latest beta as it was from yesterday....I should have checked! Downloading now.....

When I attempt to watch the Rose Bowl, Channels is continually crashing while trying to watch remotely with the latest beta. The viewer crashes when I attempt to "Watch now" on any pre-recorded or live video. This is on Galaxy S10, Galaxy Note 8, and the Shield, Version 2.1.19.beta-v12310704.

How do I get an older Beta installed so I can watch the Rose Bowl?

Update your DVR by click-and-hold on the Check for Update button. The issue is on the server side not the client.

Will the Server software update while it's recording programs?

No, it will wait until they're done and then update.

If you think the beta client is the issue, you can opt-out on getchannels.com/beta and the devices should update to the latest stable version instead.