


Input #0, rtsp, from : Media Presentationĭuration: N/A, start: 0.040000, bitrate: N/A įfmpeg version 4.1.3-4154f89 Copyright (c) 2000-2019 the FFmpeg developersĬonfiguration: -prefix=/usr -bindir=/usr/bin -datadir=/usr/share/ffmpeg -docdir=/usr/share/doc/ffmpeg -incdir=/usr/include/ffmpeg -libdir=/usr/lib64 -mandir=/usr/share/man -arch=x86_64 -optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' -extra-ldflags='-Wl,-z,relro -Wl,-as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' -enable-bzlib -enable-libdrm -disable-crystalhd -enable-fontconfig -enable-frei0r -enable-gcrypt -enable-gnutls -enable-ladspa -enable-libass -enable-libbluray -enable-libcdio -enable-indev=jack -enable-libfreetype -enable-libfribidi -enable-libgsm -enable-libmp3lame -enable-libkvazaar -enable-nvenc -extra-cflags=-I/usr/include/nvenc -enable-openal -enable-opencl -enable-libopenh264 -enable-libmysofa -enable-libshine -enable-libzvbi -enable-libvidstab -enable-libvmaf -enable-version3 -enable-libaom -enable-opengl -enable-libopenjpeg -enable-libopus -enable-libpulse -enable-libsoxr -enable-libspeex -enable-libtheora -enable-libvorbis -enable-libv4l2 -enable-libvpx -enable-libx264 -enable-libx265 -enable-libxvid -enable-avfilter -enable-avresample -enable-postproc -enable-pthreads -disable-static -enable-shared -enable-gpl -disable-debug -enable-decoder=libdav1d -disable-stripping -shlibdir=/usr/lib64 -enable-runtime-cpudetect The issue seems identical to this mailing list post from 2017, which unfortunately had no followup. However, if one outputs to a TS file, the output is entirely usable, and can afterwards be remuxed to mp4 without issue.

VLC, mpv and ffmpeg are all unable to read the file, despite all being able to play the stream live without problem. tmp/test3.mp4: Invalid data found when processing input Reading this mp4 file results in the following errors: Taking a RTSP HEVC main profile input from a HikVision IP PTZ camera, and producing an mp4 with -c copy, results in an invalid mp4 file.
