igndts 플래그를 사용한 단조롭지 않은 DTS

igndts 플래그를 사용한 단조롭지 않은 DTS

나는 rtmp 스트림으로 작업하고 있으며 타임스탬프가 단조롭지 않을 것이라는 것을 확실히 알고 있습니다. 그래서 문제가 되지 않도록 많은 플래그를 추가했지만 여전히 그렇습니다.

내가 사용하는 명령은 다음과 같습니다

ffmpeg -fflags +genpts+igndts+ignidx -rtbufsize 2000M -re -vsync drop -i "rtmp://input" -vsync cfr -async 1 -c copy -f flv "rtmp://output"

그러나 이 모든 플래그에도 불구하고 엄청난 양의 플래그가 전송되고 [flv @ 0x563303498580] Non-monotonous DTS in output stream 0:1; previous: 52544, current: 26606; changing to 52544. This may result in incorrect timestamps in the output file. 출력 스트림도 실제로 손상된 것처럼 보입니다.

또한 다음 오류도 삭제됩니다.

[NULL @ 0x56330347c380] illegal reordering_of_pic_nums_idc 26

[NULL @ 0x56330347c380] reference overflow 1275 > 15 or 0 > 15

[NULL @ 0x56330347c380] reference count 1 overflow

[NULL @ 0x56330347c380] illegal memory management control operation 32

내가 원하는 것은 타임스탬프를 무시하고 출력 스트림에 대해 새로운 타임스탬프를 생성하는 ffmpeg뿐입니다. 그러나 나는 여전히 성공하지 못했습니다.

최신 ffmpeg 3.4를 사용하며 헤더는 다음과 같습니다.

 ffmpeg version 3.4-1~16.04.york0 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.5) 20160609
  configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100

관련 정보