Я использовал долгое время mumudvb и одну карту dvb-t pci для потоковой передачи телевизионных каналов в моей сети.Это работает нормально, но я недавно добавил еще один проигрыватель, который менее мощный, чем другие, поэтому я хочу перекодировать видеопоток.
Это мое видео входного потока:
Input #0, mpegts, from 'udp://@239.1.4.1:8200':
Duration: N/A, start: 53843.533922, bitrate: N/A
Program 1025
Metadata:
service_name : M6
service_provider: Multi4
Stream #0:0[0x78]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [ SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x82](fra): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 192 kb/s
Stream #0:2[0x83](qad): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 96 kb/s
Stream #0:3[0x84](qaa): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 128 kb/s
Stream #0:4[0x8c](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
Stream #0:5[0x8d](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:6[0xaa]: Unknown: none ([5][0][0][0] / 0x0005)
Stream #0:7[0xab]: Unknown: none ([11][0][0][0] / 0x000B)
ffmpeg версия 3.0.1, работающая в Ubuntu 12.04.5 LTS
И это моя командная строка для запуска ffmpeg:
ffmpeg -i udp://@239.1.4.1:8200 -qscale:v:0 7 -c:v:0 mpeg4 -b:v:0 4000k -minrate:v 0 -maxrate:v 4000k -bufsize:v 5000k -s hd720 -c:a copy -f mpegts udp://239.1.24.1:8200?pkt_size=1316
Но когда я делаю это, у меня появляются такие ошибки, какэто на моем проигрывателе VLC:
[00007f2ff3ad64c0] main audio output debug: inserting 35549 zeroes
[00007f2ff3ad64c0] main audio output warning: playback too early (-55552): down-sampling
[00007f2ff3adc4c0] xcb vout display debug: display is visible
[00007f2ff3ad64c0] main audio output debug: resampling stopped (drift: -13228 us)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 33 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 2 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 4 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 0 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 22 ms)
[00007f2ff3ad64c0] main audio output warning: playback too early (-40559): down-sampling
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 8 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 13 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 3 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 3 ms)
[00007f2ff3ad64c0] main audio output debug: resampling stopped (drift: 1666 us)
[00007f2ff3ad64c0] main audio output warning: playback way too early (-130510): playing silence
[00007f2ff3ad64c0] main audio output debug: inserting 6264 zeroes
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 13 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 15 ms)
[00007f2ff3ad64c0] main audio output warning: playback too early (-41304): down-sampling
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 10 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 54 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 15 ms)
[00007f2ff3ad64c0] main audio output warning: timing screwed (drift: -105734 us): stopping resampling
[00007f2ff3ad64c0] main audio output warning: playback too early (-105702): down-sampling
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 10 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 10 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 60 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 20 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 14 ms)
[00007f300dd870c0] main video output debug: picture might be displayed late (missing 13 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 61 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 25 ms)
[00007f2ff3ad64c0] main audio output debug: resampling stopped (drift: -40141 us)
[00007f2ff3ad64c0] main audio output warning: playback too early (-40140): down-sampling
[00007f2ff3ad64c0] main audio output warning: playback too late (91622): up-sampling
[00007f2ff3ad64c0] main audio output debug: resampling stopped (drift: 120767 us)
[00007f2ff3ad64c0] main audio output warning: playback too late (120781): up-sampling
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 64 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 25 ms)
[00007f300dd870c0] main video output warning: picture is too late to be displayed (missing 31 ms)
На веб-плагине VLC media player - 3.0.3 Vetinari, работающий на Ubuntu 16.04.3 LTS
Это приводит к многочисленным сбоям на видео VLC ичерез некоторое время аудио и видео перестают синхронизироваться.
По некоторым причинам я не могу обновить VLC / FFMPEG / Ubuntu
Можете ли вы помочь мне с этим?
Заранее спасибо за ваше время!