I'm using Camera Passthrough only and video wrote wrongly randomly?, it's playing in K-Lite Codec Pack Media Player (but without timeline) and video from same camera sometimes playing ok. Default settings in ffmpeg and etc.
If I try play corrupted video Zonemider has error:
Code: Select all
Can't create frame images from video for this event 2668-video.mp4Command was: /usr/bin/ffmpeg -ss 51.99 -i /data/events/2/2023-08-11/2668/2668-video.mp4 -frames:v 1 /data/events/2/2023-08-11/2668/00521-capture.jpg 2>&1Output was: ffmpeg version 4.3.5-0+deb11u1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 10 (Debian 10.2.1-6) configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/events/2/2023-08-11/2668/2668-video.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso6iso2avc1mp41 title : Zoneminder Security Recording encoder : Lavf58.45.100 Duration: 00:00:00.10, start: 0.000000, bitrate: 265897 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 2304x1296, 265586 kb/s, 5230 fps, 10 tbr, 90k tbn, 20 tbc (default) Metadata: rotate : 90 handler_name : VideoHandler Side data: displaymatrix: rotation of -90.00 degreesStream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))Press [q] to stop, [?] for help[swscaler @ 0x55cc13107cc0] deprecated pixel format used, make sure you did set range correctlyOutput #0, image2, to '/data/events/2/2023-08-11/2668/00521-capture.jpg': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso6iso2avc1mp41 title : Zoneminder Security Recording encoder : Lavf58.45.100 Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 1296x2304, q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc (default) Metadata: encoder : Lavc58.91.100 mjpeg handler_name : VideoHandler Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A displaymatrix: rotation of -0.00 degreesframe= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0xvideo:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknownOutput file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Or maybe I can force correct settings in ffmpeg? What settings?
Guess I need to force Frame Rate mode to Constant... but my IPC has Variable Frame Rate, or I need to disable IPC Smart Encode (it's changing I-frame dynamically when there is static picture to reduce net load), or to use IPC Constant Bitrate in worst case
Can anyone help please?