[FFmpeg-trac] #5954(undetermined:reopened): Audio is not in sync with video, (In: rtmp audio + rtmp video, Out: rtmp mix)

FFmpeg trac at avcodec.org
Thu Nov 17 14:03:20 EET 2016


#5954: Audio is not in sync with video, (In: rtmp audio + rtmp video, Out: rtmp
mix)
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  alessandro.marin                   |                   Status:  reopened
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by alessandro.marin):

 * status:  closed => reopened
 * resolution:  needs_more_info =>


Comment:

 I updated ffmpeg with the last version 3.2-1.
 I send the same command used for the version 2.8.8, but the behavior is
 different.
 With the version 2.8.8. i can view via RTMP player the RTMP output and the
 video is late about 5 sec on the audio.
 With the version 3.2-1 i can not view via RTMP player the RTMP output (is
 always in initialization state) but in the ffmpeg output log  i can see
 new warnings not showed by old ffmpeg version, but no error.

 What is the problem?

 Output log:

 ffmpeg version 3.2-1~16.04.york1 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.1 (Ubuntu 5.4.1-3ubuntu1~ubuntu16.04.1york0) 20161019
   configuration: --prefix=/usr --extra-version='1~16.04.york1'
 --toolchain=hardened --libdir=/usr/lib/i386-linux-gnu
 --incdir=/usr/include/i386-linux-gnu --enable-gpl --disable-libtesseract
 --disable-stripping --disable-decoder=libschroedinger --enable-avresample
 --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass
 --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
 --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-
 libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
 libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus
 --enable-libpulse --enable-librubberband --enable-libschroedinger
 --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
 --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-opengl
 --enable-sdl2 --enable-x11grab --enable-libdc1394 --enable-libiec61883
 --enable-openal --enable-frei0r --enable-libopencv --enable-libx264
 --enable-chromaprint --enable-shared
   libavutil      55. 34.100 / 55. 34.100
   libavcodec     57. 64.100 / 57. 64.100
   libavformat    57. 56.100 / 57. 56.100
   libavdevice    57.  1.100 / 57.  1.100
   libavfilter     6. 65.100 /  6. 65.100
   libavresample   3.  1.  0 /  3.  1.  0
   libswscale      4.  2.100 /  4.  2.100
   libswresample   2.  3.100 /  2.  3.100
   libpostproc    54.  1.100 / 54.  1.100
 [flv @ 0x819726c0] video stream discovered after head already parsed
 Input #0, flv, from 'rtmp://streaming.com/live/in1':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: h264 (Baseline), yuv420p(tv, progressive), 320x240
 [SAR 1:1 DAR 4:3], 10 fps, 10 tbr, 1k tbn, 20 tbc
 [flv @ 0x81980360] audio stream discovered after head already parsed
 Input #1, flv, from 'rtmp://streaming.com/live/in2':
   Metadata:
     encoder         : Lavf54.2.100
   Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
     Stream #1:0: Audio: aac (LC), 22050 Hz, mono, fltp
 Output #0, flv, to 'rtmp://streaming.com/live/output':
   Metadata:
     encoder         : Lavf57.56.100
     Stream #0:0: Video: h264 (Baseline) ([7][0][0][0] / 0x0007),
 yuv420p(tv, progressive), 320x240 [SAR 1:1 DAR 4:3], q=2-31, 10 fps, 10
 tbr, 1k tbn, 1k tbc
     Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 22050 Hz, mono
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #1:0 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [flv @ 0x819a8d40] Timestamps are unset in a packet for stream 1. This is
 deprecated and will stop working in the future. Fix your code to set the
 timestamps properly
 [flv @ 0x819a8d40] Encoder did not produce proper pts, making some up.
 frame=    3 fps=0.0 q=-1.0 size=    2590kB time=00:00:00.19
 bitrate=109921.5kbits/s speed=0.000552x

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5954#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list