Corrupt Video after 30 seconds

Hi.

My Raspberry Pi 3 has started having issues with playing videos. Specifically it looks like the video is corrupt after playing for around 30 seconds. The video itself is not corrupt as it plays fine on other devices. The pi is connected via ethernet cable and videos that previously played fine now do not.

Here’s my debug log…




2021-02-06 12:42:10.014 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x06 at pos 198589752 (0xbd63d38)
2021-02-06 12:42:10.087 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348203000.000000, diff:319873000.000000
2021-02-06 12:42:10.088 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348224000.000000, diff:319895000.000000
2021-02-06 12:42:10.088 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348245000.000000, diff:319916000.000000
2021-02-06 12:42:10.089 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348266000.000000, diff:319937000.000000
2021-02-06 12:42:10.089 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348288000.000000, diff:319958000.000000
2021-02-06 12:42:10.089 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348309000.000000, diff:319980000.000000
2021-02-06 12:42:10.090 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348330000.000000, diff:320001000.000000
2021-02-06 12:42:10.090 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28308000.000000, curr:348351000.000000, diff:320022000.000000
2021-02-06 12:42:10.091 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:28180000.000000, curr:30080000.000000, diff:1750000.000000
2021-02-06 12:42:10.092 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:28180000.000000, curr:348200000.000000, diff:319870000.000000
2021-02-06 12:42:10.092 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 319870000.000000
2021-02-06 12:42:10.323 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:28490000.000000, curr:31030000.000000, diff:2357000.000000
2021-02-06 12:42:10.323 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:28651000.000000, curr:31106000.000000, diff:2433000.000000
2021-02-06 12:42:10.323 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 2433000.000000
2021-02-06 12:42:12.542 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x04 at pos 403321345 (0x180a3201)
2021-02-06 12:42:12.560 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363457000.000000, diff:332587000.000000
2021-02-06 12:42:12.560 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363478000.000000, diff:332609000.000000
2021-02-06 12:42:12.561 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363499000.000000, diff:332630000.000000
2021-02-06 12:42:12.562 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363520000.000000, diff:332651000.000000
2021-02-06 12:42:12.562 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363542000.000000, diff:332672000.000000
2021-02-06 12:42:12.562 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363563000.000000, diff:332694000.000000
2021-02-06 12:42:12.563 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363584000.000000, diff:332715000.000000
2021-02-06 12:42:12.564 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:30848000.000000, curr:363605000.000000, diff:332736000.000000
2021-02-06 12:42:12.576 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:30777000.000000, curr:363457000.000000, diff:332587000.000000
2021-02-06 12:42:12.576 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 332587000.000000
2021-02-06 12:42:12.817 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x0f at pos 403714967 (0x18103397)
2021-02-06 12:42:13.949 T:1459421408   ERROR: ffmpeg[56FD00E0]: Truncating packet of size 1779468062 to 1115182321
2021-02-06 12:42:14.035 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:32230000.000000, curr:34730000.000000, diff:2346000.000000
2021-02-06 12:42:14.035 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:32362000.000000, curr:34795000.000000, diff:2411000.000000
2021-02-06 12:42:14.035 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 2411000.000000
2021-02-06 12:42:14.944 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x02 at pos 408534637 (0x1859be6d)
2021-02-06 12:42:14.993 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36310000.000000, diff:2902000.000000
2021-02-06 12:42:14.993 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36331000.000000, diff:2924000.000000
2021-02-06 12:42:14.994 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36352000.000000, diff:2945000.000000
2021-02-06 12:42:14.994 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36373000.000000, diff:2966000.000000
2021-02-06 12:42:14.995 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36395000.000000, diff:2987000.000000
2021-02-06 12:42:14.996 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36416000.000000, diff:3009000.000000
2021-02-06 12:42:14.996 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36437000.000000, diff:3030000.000000
2021-02-06 12:42:14.996 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33386000.000000, curr:36458000.000000, diff:3051000.000000
2021-02-06 12:42:14.998 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:33179000.000000, curr:36299000.000000, diff:2891000.000000
2021-02-06 12:42:14.998 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 2891000.000000
2021-02-06 12:42:15.475 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x0a at pos 409481762 (0x18683222)
2021-02-06 12:42:15.546 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:33728000.000000, curr:35188000.000000, diff:1429000.000000
2021-02-06 12:42:15.546 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:33737000.000000, curr:35253000.000000, diff:1494000.000000
2021-02-06 12:42:15.547 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 1494000.000000
2021-02-06 12:42:15.550 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - wrapback :2, prev:33728000.000000, curr:33714000.000000, diff:-14000.000000
2021-02-06 12:42:15.825 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x09 at pos 616670675 (0x24c1a5d3)
2021-02-06 12:42:15.957 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400714000.000000, diff:366614000.000000
2021-02-06 12:42:15.957 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400735000.000000, diff:366636000.000000
2021-02-06 12:42:15.958 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400756000.000000, diff:366657000.000000
2021-02-06 12:42:15.958 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400777000.000000, diff:366678000.000000
2021-02-06 12:42:15.958 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400799000.000000, diff:366699000.000000
2021-02-06 12:42:15.959 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400820000.000000, diff:366721000.000000
2021-02-06 12:42:15.959 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400841000.000000, diff:366742000.000000
2021-02-06 12:42:15.959 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :1, prev:34078000.000000, curr:400862000.000000, diff:366763000.000000
2021-02-06 12:42:15.968 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - resync forward :2, prev:33994000.000000, curr:400714000.000000, diff:366614000.000000
2021-02-06 12:42:15.968 T:1459421408   DEBUG: CVideoPlayer::CheckContinuity - update correction: 366614000.000000
2021-02-06 12:42:16.185 T:1459421408   ERROR: ffmpeg[56FD00E0]: [matroska,webm] Invalid EBML number size tag 0x0a at pos 618102358 (0x24d77e56)
2021-02-06 12:42:16.569 T:1402986720   ERROR: ffmpeg[539FE0E0]: [aac] Number of bands (42) exceeds limit (40).


Does anyone have ideas as to what could be causing this? To me it looks like a hardware issue with the pi.

Share the mediainfo of the file.
Also ensure your network is still fine with iperf3 or try to play the file from USB.

I tried playing the video from USB and it works fine.

Media info

INFO: ffmpeg[56FD00E0]: Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 1k tbn, 100 tbc (default)
2021-02-06 12:41:53.267 T:1459421408 INFO: ffmpeg[56FD00E0]: Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
2021-02-06 12:41:53.267 T:1459421408

Then check your network with iperf3

Result…

osmc@osmc:~$ iperf3 -t 40 -R -c 192.168.1.95
Connecting to host 192.168.1.95, port 5201
Reverse mode, remote host 192.168.1.95 is sending
[ 5] local 192.168.1.68 port 58262 connected to 192.168.1.95 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 11.3 MBytes 94.4 Mbits/sec
[ 5] 1.00-2.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 2.00-3.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 3.00-4.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 4.00-5.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 5.00-6.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 6.00-7.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 7.00-8.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 8.00-9.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 9.00-10.00 sec 11.1 MBytes 92.7 Mbits/sec
[ 5] 10.00-11.00 sec 11.4 MBytes 95.6 Mbits/sec
[ 5] 11.00-12.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 12.00-13.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 13.00-14.00 sec 11.2 MBytes 94.2 Mbits/sec
[ 5] 14.00-15.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 15.00-16.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 16.00-17.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 17.00-18.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 18.00-19.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 19.00-20.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 20.00-21.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 21.00-22.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 22.00-23.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 23.00-24.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 24.00-25.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 25.00-26.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 26.00-27.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 27.00-28.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 28.00-29.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 29.00-30.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 30.00-31.00 sec 11.2 MBytes 94.1 Mbits/sec [ 5] 31.00-32.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 32.00-33.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 33.00-34.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 34.00-35.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 35.00-36.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 36.00-37.00 sec 11.2 MBytes 94.2 Mbits/sec
[ 5] 37.00-38.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 38.00-39.00 sec 11.2 MBytes 94.1 Mbits/sec
[ 5] 39.00-40.00 sec 11.2 MBytes 94.1 Mbits/sec


[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-40.03 sec 450 MBytes 94.3 Mbits/sec 40 sender
[ 5] 0.00-40.00 sec 449 MBytes 94.2 Mbits/sec receiver

iperf Done.

Looks ok, may still be a corrupt file that only occurs via network.

Check Mediainfo via https://videosam.pl/ and share here

I noticed that if I increase the buffer sIze, the corruption happens later. E.g. 40 seconds instead of 30.

Also to get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device twice(!)

  • reproduce the issue

  • upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

Here you are…

https://paste.osmc.tv/qitacunayo

What are you sharing your files from? There is another thread where a few people are having issues with Kodi based NFS paths. You might try a system mount and see if that gets rid of the issue. If that doesn’t do the trick I would test it with a stock config.txt and without the cache mod in your advancedsettings.xml.

And full mediainfo as requested by fzinken please?

Thank you. Justtto confirm that setting up the nfs share via fstab works fine. Not sure why the old method stopped working.

1 Like

Glad to hear. You can do a path substitution to automatically redirect your current library to use this system mount. Instructions can be found in this thread…

What is hosting your files if you don’t mind?

It’s OMV on 3 raspberry pi 3 with a hdd connected via USB.

1 Like