Jump to content

audio slowly gets out of sync


allen00se
 Share

Recommended Posts

Hello all, using my livetv setup and watching over the web client, I notice that within a few minutes there is a noticeable delay in the audio, any idea what could be the cause? Which logs would you need to help me find the issue?

Thanks,

Krys

Link to comment
Share on other sites

krustyreturns

Probably the ffmpeg log.  Is this standard def or high def?  I think I have seen this too on my standard def channels.

Link to comment
Share on other sites

  • 2 weeks later...

Pretty sure I know what the issue is here an ffmpeg log will confirm it (and the fix I have in mind).

Link to comment
Share on other sites

krustyreturns

hi @@Tikuf,

 

It looks like the poster won't be up for a while, so... here is  a log from a run I just did.  I let the video go for about one minute, by the end it was out of sync pretty bad.  Hope this helps.

 

ffmpeg version N-61061-gf34cceb Copyright © 2000-2014 the FFmpeg developers
  built on Mar  4 2014 00:44:56 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 66.101 / 52. 66.101
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.101 / 55. 33.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 026c8260] DTS 196740 < 202770 out of order
[mpegts @ 026c8260] PES packet size mismatch
Input #0, mpegts, from 'file:C:\Users\Victor\Desktop\wtvs\TempSWMC\LiveTV_MediaBrowser^0_Cable_3_2014_03_17_20_25_06.ts':
  Duration: 00:00:01.65, start: 2.109000, bitrate: 7808 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x480 [sAR 8:9 DAR 4:3], max. 7500 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1100]: Audio: mp2 ([3][0][0][0] / 0x0003), 32000 Hz, stereo, s16p, 224 kb/s
[libvpx @ 04d40320] v1.3.0
Output #0, webm, to 'C:\Users\Victor\AppData\Roaming\MediaBrowser-Server\transcoding-temp\fd746774-bdfc-e677-99cf-ef020ec25adc.webm':
  Metadata:
    encoder         : Lavf55.33.101
    Stream #0:0: Video: vp8 (libvpx), yuv420p, 720x480 [sAR 8:9 DAR 4:3], q=-1--1, 1372 kb/s, 1k tbn, 29.97 tbc
    Stream #0:1: Audio: vorbis (libvorbis), 32000 Hz, stereo, fltp
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libvpx)
  Stream #0:1 -> #0:1 (mp2 -> libvorbis)
Press [q] to stop, [?] for help
frame=   16 fps=0.0 q=0.0 size=     122kB time=00:00:00.56 bitrate=1764.5kbits/s    
frame=   16 fps= 16 q=0.0 size=     122kB time=00:00:00.56 bitrate=1764.5kbits/s    
frame=   30 fps= 20 q=0.0 size=     342kB time=00:00:01.63 bitrate=1715.7kbits/s    
frame=   44 fps= 22 q=0.0 size=     472kB time=00:00:02.11 bitrate=1828.6kbits/s    
frame=   59 fps= 23 q=0.0 size=     576kB time=00:00:02.62 bitrate=1796.4kbits/s    
frame=   74 fps= 24 q=0.0 size=     679kB time=00:00:03.10 bitrate=1792.2kbits/s    
frame=   92 fps= 25 q=0.0 size=     792kB time=00:00:03.70 bitrate=1752.3kbits/s    
frame=  107 fps= 26 q=0.0 size=     882kB time=00:00:04.20 bitrate=1717.8kbits/s    
frame=  125 fps= 27 q=0.0 size=     990kB time=00:00:04.80 bitrate=1687.2kbits/s    
frame=  140 fps= 27 q=0.0 size=    1086kB time=00:00:05.30 bitrate=1677.1kbits/s    
frame=  155 fps= 27 q=0.0 size=    1167kB time=00:00:05.80 bitrate=1646.9kbits/s    
frame=  170 fps= 28 q=0.0 size=    1240kB time=00:00:06.30 bitrate=1611.0kbits/s    
frame=  185 fps= 28 q=0.0 size=    1336kB time=00:00:06.80 bitrate=1607.5kbits/s    
frame=  200 fps= 28 q=0.0 size=    1431kB time=00:00:07.30 bitrate=1603.9kbits/s    
frame=  215 fps= 28 q=0.0 size=    1527kB time=00:00:07.80 bitrate=1601.7kbits/s    
frame=  229 fps= 28 q=0.0 size=    1627kB time=00:00:08.28 bitrate=1608.2kbits/s    
frame=  244 fps= 28 q=0.0 size=    1719kB time=00:00:08.77 bitrate=1604.5kbits/s    
frame=  260 fps= 28 q=0.0 size=    1815kB time=00:00:09.30 bitrate=1596.9kbits/s    
frame=  275 fps= 28 q=0.0 size=    1894kB time=00:00:09.81 bitrate=1581.9kbits/s    
frame=  287 fps= 28 q=0.0 size=    1975kB time=00:00:10.21 bitrate=1584.3kbits/s    
frame=  302 fps= 28 q=0.0 size=    2074kB time=00:00:10.71 bitrate=1586.6kbits/s    
frame=  320 fps= 29 q=0.0 size=    2177kB time=00:00:11.34 bitrate=1572.3kbits/s    
frame=  335 fps= 29 q=0.0 size=    2260kB time=00:00:11.87 bitrate=1558.8kbits/s    
frame=  350 fps= 29 q=0.0 size=    2358kB time=00:00:12.35 bitrate=1563.5kbits/s    
frame=  365 fps= 29 q=0.0 size=    2443kB time=00:00:12.85 bitrate=1557.2kbits/s    
frame=  382 fps= 29 q=0.0 size=    2520kB time=00:00:13.38 bitrate=1543.1kbits/s    
frame=  393 fps= 29 q=0.0 size=    2594kB time=00:00:13.74 bitrate=1545.6kbits/s    
frame=  412 fps= 29 q=0.0 size=    2735kB time=00:00:14.39 bitrate=1556.6kbits/s    
frame=  428 fps= 29 q=0.0 size=    2810kB time=00:00:14.91 bitrate=1543.6kbits/s    
frame=  443 fps= 29 q=0.0 size=    2928kB time=00:00:15.41 bitrate=1556.0kbits/s    
frame=  459 fps= 29 q=0.0 size=    3024kB time=00:00:15.94 bitrate=1553.2kbits/s    
frame=  474 fps= 29 q=0.0 size=    3084kB time=00:00:16.45 bitrate=1535.8kbits/s    
frame=  488 fps= 29 q=0.0 size=    3186kB time=00:00:16.91 bitrate=1542.6kbits/s    
frame=  504 fps= 29 q=0.0 size=    3268kB time=00:00:17.45 bitrate=1534.0kbits/s    
frame=  517 fps= 29 q=0.0 size=    3348kB time=00:00:17.91 bitrate=1530.9kbits/s    
frame=  532 fps= 29 q=0.0 size=    3441kB time=00:00:18.42 bitrate=1529.9kbits/s    
frame=  548 fps= 29 q=0.0 size=    3531kB time=00:00:18.93 bitrate=1527.5kbits/s    
frame=  563 fps= 29 q=0.0 size=    3608kB time=00:00:19.41 bitrate=1522.2kbits/s    
frame=  580 fps= 29 q=0.0 size=    3724kB time=00:00:19.98 bitrate=1526.5kbits/s    
frame=  596 fps= 29 q=0.0 size=    3829kB time=00:00:20.52 bitrate=1528.4kbits/s    
frame=  611 fps= 29 q=0.0 size=    3896kB time=00:00:21.02 bitrate=1518.3kbits/s    
frame=  625 fps= 29 q=0.0 size=    3995kB time=00:00:21.48 bitrate=1523.2kbits/s    
frame=  641 fps= 29 q=0.0 size=    4098kB time=00:00:22.05 bitrate=1521.7kbits/s    
frame=  655 fps= 29 q=0.0 size=    4184kB time=00:00:22.54 bitrate=1520.5kbits/s    
frame=  671 fps= 29 q=0.0 size=    4279kB time=00:00:23.02 bitrate=1522.7kbits/s    
frame=  687 fps= 29 q=0.0 size=    4348kB time=00:00:23.55 bitrate=1511.9kbits/s    
frame=  703 fps= 29 q=0.0 size=    4435kB time=00:00:24.09 bitrate=1507.9kbits/s    
frame=  717 fps= 29 q=0.0 size=    4535kB time=00:00:24.55 bitrate=1512.7kbits/s    
frame=  733 fps= 29 q=0.0 size=    4616kB time=00:00:25.09 bitrate=1507.1kbits/s    
frame=  748 fps= 29 q=0.0 size=    4719kB time=00:00:25.59 bitrate=1510.6kbits/s    
frame=  763 fps= 29 q=0.0 size=    4814kB time=00:00:26.09 bitrate=1511.3kbits/s    
frame=  777 fps= 29 q=0.0 size=    4895kB time=00:00:26.56 bitrate=1509.7kbits/s    
frame=  793 fps= 29 q=0.0 size=    4976kB time=00:00:27.09 bitrate=1504.6kbits/s    
frame=  808 fps= 29 q=0.0 size=    5070kB time=00:00:27.59 bitrate=1505.2kbits/s    
frame=  824 fps= 29 q=0.0 size=    5155kB time=00:00:28.12 bitrate=1501.3kbits/s    
frame=  838 fps= 29 q=0.0 size=    5255kB time=00:00:28.59 bitrate=1505.5kbits/s    
frame=  854 fps= 29 q=0.0 size=    5365kB time=00:00:29.12 bitrate=1508.7kbits/s    
frame=  867 fps= 29 q=0.0 size=    5447kB time=00:00:29.64 bitrate=1505.0kbits/s    
frame=  883 fps= 29 q=0.0 size=    5539kB time=00:00:30.09 bitrate=1507.6kbits/s    
frame=  897 fps= 29 q=0.0 size=    5631kB time=00:00:30.60 bitrate=1507.5kbits/s    
frame=  914 fps= 29 q=0.0 size=    5729kB time=00:00:31.13 bitrate=1507.6kbits/s    
frame=  928 fps= 29 q=0.0 size=    5803kB time=00:00:31.59 bitrate=1504.4kbits/s    
frame=  942 fps= 29 q=0.0 size=    5886kB time=00:00:32.10 bitrate=1501.7kbits/s    
frame=  960 fps= 30 q=0.0 size=    5976kB time=00:00:32.66 bitrate=1498.6kbits/s    
frame=  975 fps= 30 q=0.0 size=    6052kB time=00:00:33.16 bitrate=1494.9kbits/s    
frame=  990 fps= 30 q=0.0 size=    6124kB time=00:00:33.66 bitrate=1490.1kbits/s    
frame= 1006 fps= 30 q=0.0 size=    6203kB time=00:00:34.20 bitrate=1485.7kbits/s    
frame= 1021 fps= 30 q=0.0 size=    6291kB time=00:00:34.70 bitrate=1485.1kbits/s    
frame= 1036 fps= 30 q=0.0 size=    6370kB time=00:00:35.20 bitrate=1482.5kbits/s    
frame= 1050 fps= 30 q=0.0 size=    6457kB time=00:00:35.66 bitrate=1483.0kbits/s    
frame= 1065 fps= 30 q=0.0 size=    6571kB time=00:00:36.17 bitrate=1488.2kbits/s    
frame= 1080 fps= 30 q=0.0 size=    6661kB time=00:00:36.67 bitrate=1488.1kbits/s    
frame= 1095 fps= 30 q=0.0 size=    6768kB time=00:00:37.17 bitrate=1491.3kbits/s    
frame= 1110 fps= 30 q=0.0 size=    6858kB time=00:00:37.67 bitrate=1491.5kbits/s    
frame= 1126 fps= 30 q=0.0 size=    6954kB time=00:00:38.23 bitrate=1489.8kbits/s    
frame= 1140 fps= 30 q=0.0 size=    7044kB time=00:00:38.67 bitrate=1492.2kbits/s    
frame= 1156 fps= 30 q=0.0 size=    7141kB time=00:00:39.20 bitrate=1492.2kbits/s    
frame= 1170 fps= 30 q=0.0 size=    7239kB time=00:00:39.67 bitrate=1494.8kbits/s    
frame= 1185 fps= 30 q=0.0 size=    7342kB time=00:00:40.17 bitrate=1497.1kbits/s    
frame= 1200 fps= 30 q=0.0 size=    7440kB time=00:00:40.72 bitrate=1496.4kbits/s    
frame= 1217 fps= 30 q=0.0 size=    7508kB time=00:00:41.24 bitrate=1491.3kbits/s    
frame= 1232 fps= 30 q=0.0 size=    7589kB time=00:00:41.74 bitrate=1489.4kbits/s    
frame= 1248 fps= 30 q=0.0 size=    7682kB time=00:00:42.27 bitrate=1488.6kbits/s    
frame= 1263 fps= 30 q=0.0 size=    7774kB time=00:00:42.77 bitrate=1488.8kbits/s    
frame= 1278 fps= 30 q=0.0 size=    7857kB time=00:00:43.27 bitrate=1487.3kbits/s    
frame= 1293 fps= 30 q=0.0 size=    7939kB time=00:00:43.77 bitrate=1485.6kbits/s    
frame= 1306 fps= 30 q=0.0 size=    8028kB time=00:00:44.21 bitrate=1487.7kbits/s    
frame= 1323 fps= 30 q=0.0 size=    8113kB time=00:00:44.77 bitrate=1484.3kbits/s    
frame= 1336 fps= 30 q=0.0 size=    8238kB time=00:00:45.23 bitrate=1492.0kbits/s    
frame= 1352 fps= 30 q=0.0 size=    8323kB time=00:00:45.79 bitrate=1488.8kbits/s    
frame= 1366 fps= 30 q=0.0 size=    8391kB time=00:00:46.21 bitrate=1487.6kbits/s    
frame= 1383 fps= 30 q=0.0 size=    8478kB time=00:00:46.78 bitrate=1484.6kbits/s    
frame= 1396 fps= 30 q=0.0 size=    8569kB time=00:00:47.21 bitrate=1486.8kbits/s    
frame= 1412 fps= 30 q=0.0 size=    8657kB time=00:00:47.81 bitrate=1483.2kbits/s    
frame= 1427 fps= 30 q=0.0 size=    8746kB time=00:00:48.25 bitrate=1484.7kbits/s    
frame= 1442 fps= 30 q=0.0 size=    8836kB time=00:00:48.84 bitrate=1481.8kbits/s    
frame= 1457 fps= 30 q=0.0 size=    8918kB time=00:00:49.34 bitrate=1480.5kbits/s    
frame= 1474 fps= 30 q=0.0 size=    9006kB time=00:00:49.81 bitrate=1481.0kbits/s    
frame= 1490 fps= 30 q=0.0 size=    9119kB time=00:00:50.35 bitrate=1483.7kbits/s    
frame= 1506 fps= 30 q=0.0 size=    9197kB time=00:00:50.88 bitrate=1480.7kbits/s    
frame= 1520 fps= 30 q=0.0 size=    9292kB time=00:00:51.39 bitrate=1481.0kbits/s    
frame= 1536 fps= 30 q=0.0 size=    9371kB time=00:00:51.88 bitrate=1479.6kbits/s    
frame= 1550 fps= 30 q=0.0 size=    9466kB time=00:00:52.41 bitrate=1479.4kbits/s    
frame= 1566 fps= 30 q=0.0 size=    9562kB time=00:00:52.88 bitrate=1481.1kbits/s    
frame= 1580 fps= 30 q=0.0 size=    9641kB time=00:00:53.38 bitrate=1479.4kbits/s    
frame= 1596 fps= 30 q=0.0 size=    9739kB time=00:00:53.88 bitrate=1480.5kbits/s    
frame= 1610 fps= 30 q=0.0 size=    9828kB time=00:00:54.37 bitrate=1480.5kbits/s    
frame= 1626 fps= 30 q=0.0 size=    9925kB time=00:00:54.88 bitrate=1481.4kbits/s    
frame= 1643 fps= 30 q=0.0 size=   10017kB time=00:00:55.45 bitrate=1479.8kbits/s    
frame= 1658 fps= 30 q=0.0 size=   10117kB time=00:00:56.00 bitrate=1479.8kbits/s    
frame= 1673 fps= 30 q=0.0 size=   10200kB time=00:00:56.45 bitrate=1480.1kbits/s    
frame= 1688 fps= 30 q=0.0 size=   10301kB time=00:00:56.95 bitrate=1481.5kbits/s    
frame= 1703 fps= 30 q=0.0 size=   10364kB time=00:00:57.52 bitrate=1475.9kbits/s    
frame= 1718 fps= 30 q=0.0 size=   10453kB time=00:00:57.95 bitrate=1477.5kbits/s    
frame= 1732 fps= 30 q=0.0 size=   10525kB time=00:00:58.42 bitrate=1475.8kbits/s    
frame= 1748 fps= 30 q=0.0 size=   10628kB time=00:00:59.02 bitrate=1475.0kbits/s    
frame= 1764 fps= 30 q=0.0 size=   10706kB time=00:00:59.49 bitrate=1474.2kbits/s    
frame= 1780 fps= 30 q=0.0 size=   10826kB time=00:01:00.04 bitrate=1477.0kbits/s    
frame= 1796 fps= 30 q=0.0 size=   10905kB time=00:01:00.56 bitrate=1475.2kbits/s    
frame= 1811 fps= 30 q=0.0 size=   10998kB time=00:01:01.06 bitrate=1475.5kbits/s    
frame= 1825 fps= 30 q=0.0 size=   11083kB time=00:01:01.52 bitrate=1475.7kbits/s    
frame= 1841 fps= 30 q=0.0 size=   11170kB time=00:01:02.06 bitrate=1474.4kbits/s    
frame= 1855 fps= 30 q=0.0 size=   11264kB time=00:01:02.55 bitrate=1475.2kbits/s    
frame= 1871 fps= 30 q=0.0 size=   11353kB time=00:01:03.06 bitrate=1474.8kbits/s    
frame= 1884 fps= 30 q=0.0 size=   11435kB time=00:01:03.53 bitrate=1474.5kbits/s    
frame= 1901 fps= 30 q=0.0 size=   11531kB time=00:01:04.06 bitrate=1474.5kbits/s    
frame= 1917 fps= 30 q=0.0 size=   11634kB time=00:01:04.59 bitrate=1475.4kbits/s    
frame= 1932 fps= 30 q=0.0 size=   11719kB time=00:01:05.09 bitrate=1474.8kbits/s    
frame= 1947 fps= 30 q=0.0 size=   11809kB time=00:01:05.59 bitrate=1474.7kbits/s    
frame= 1962 fps= 30 q=0.0 size=   11900kB time=00:01:06.09 bitrate=1474.8kbits/s    
frame= 1976 fps= 30 q=0.0 size=   12016kB time=00:01:06.60 bitrate=1477.9kbits/s    
frame= 1992 fps= 30 q=0.0 size=   12101kB time=00:01:07.10 bitrate=1477.3kbits/s    
frame= 2007 fps= 30 q=0.0 size=   12182kB time=00:01:07.60 bitrate=1476.2kbits/s    
frame= 2019 fps= 30 q=0.0 size=   12265kB time=00:01:08.00 bitrate=1477.6kbits/s    
frame= 2038 fps= 30 q=0.0 size=   12374kB time=00:01:08.63 bitrate=1476.9kbits/s    
frame= 2054 fps= 30 q=0.0 size=   12478kB time=00:01:09.16 bitrate=1477.8kbits/s    
frame= 2069 fps= 30 q=0.0 size=   12578kB time=00:01:09.67 bitrate=1478.9kbits/s    
frame= 2082 fps= 30 q=0.0 size=   12650kB time=00:01:10.10 bitrate=1478.3kbits/s    
frame= 2100 fps= 30 q=0.0 size=   12774kB time=00:01:10.75 bitrate=1478.9kbits/s    
frame= 2115 fps= 30 q=0.0 size=   12844kB time=00:01:11.23 bitrate=1477.0kbits/s    
frame= 2128 fps= 30 q=0.0 size=   12919kB time=00:01:11.71 bitrate=1475.9kbits/s    
frame= 2149 fps= 30 q=0.0 size=   13053kB time=00:01:12.33 bitrate=1478.1kbits/s    
frame= 2164 fps= 30 q=0.0 size=   13121kB time=00:01:12.83 bitrate=1475.7kbits/s    
frame= 2179 fps= 30 q=0.0 size=   13278kB time=00:01:13.34 bitrate=1483.2kbits/s    
frame= 2193 fps= 30 q=0.0 size=   13344kB time=00:01:13.80 bitrate=1481.1kbits/s    
frame= 2210 fps= 30 q=0.0 size=   13434kB time=00:01:14.37 bitrate=1479.8kbits/s    
frame= 2223 fps= 30 q=0.0 size=   13531kB time=00:01:14.80 bitrate=1481.8kbits/s    
frame= 2240 fps= 30 q=0.0 size=   13616kB time=00:01:15.37 bitrate=1479.8kbits/s    
Link to comment
Share on other sites

krustyreturns

I wasn't really watching it, I just started it to try and generate a log for you.  I will do it again and this time pay attention.

Link to comment
Share on other sites

Ya cool. Every so often mine drops a frame due to signal and that can cause the de sync. I have the fix in mine temporarily to see how it runs. I still get minor glitches but it doesn't appear to fall out of sync yet (i have only done some short tests)

Link to comment
Share on other sites

krustyreturns

So it starts up and almost immediately there is a freeze in the video, that last for maybe a half second.  As soon as it resumes the audio is out of sync.  It happened both times I tried it.  It also happens so quickly I can't tell if audio was in sync before the freeze.

Link to comment
Share on other sites

Try changing <Delay_WTV2TS_MS>500</Delay_WTV2TS_MS> ffmpeg may be starving a little.

 

If that doesn't work (it wont totally solve it) I will try to get the other fix into the server asap

Link to comment
Share on other sites

krustyreturns

I'll try that (probably not tonight through).  One last test I ran just now, these posted runs were on my development machine with a tuner that is noisy (video contains noise artifacts).  I viewed the exact same channel on my family mediacenter with better tuners and didn't see the freeze or the audio sync problem.

Link to comment
Share on other sites

Ah yes i had a similar problem with a noisy tuner i ended up changing the source in wmc and it fixed it.

 

The fix I have in mind wont hurt so I will see what I can do.

Link to comment
Share on other sites

I have the same issue with the nextpvr module. The audio Always get out of sync with the video....

Link to comment
Share on other sites

I have let @@Luke know a possible fix so if we can retest after it hits the repo.

 

I will let you guys know when it is in.

 

Cheers

Link to comment
Share on other sites

OP here, sorry I still am not back online yet... looks like you guys are making some progress without me though!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...