[FFmpeg-user] "cur_dts is invalid" from 2nd run onwards

Ram Shaffir ram at ram.sh
Tue Sep 29 11:07:12 EEST 2020


Hello,

I use FFmpeg to capture video from a webcam; the command executes well for the first run; however, once it stops and restarts, I get the error ‘cur_dts is invalid’, and the only way to solve it is by unplugging the webcam cable and re-insert it, I’ve searched with no luck how to solve this for a few days now and I truly need your help.

The FFmpeg command I use is:

ffmpeg = ['sudo', 'ffmpeg', '-loglevel', 'debug', '-nostdin', '-threads', 'auto', '-y',
'-re', '-f', 'v4l2', '-video_size', '1920x1080', '-input_format', 'yuyv422',
'-fflags', '+genpts', '-flags', '+global_header', '-i', f'/dev/{videoOut}',
'-f', 'alsa', '-thread_queue_size', '4096','-ac', '2', '-ar', '48000', '-itsoffset', '1.15',
'-i', 'default', '-vcodec', 'h264_omx', '-s', '1280x720', '-r', '30', '-framerate',
'30', '-g', '30', '-sc_threshold', '0', '-keyint_min', '30',
'-pix_fmt', 'yuv420p', '-b:a', '128K', '-b:v', '10M', '-minrate', '10M', '-maxrate', '10M',
'-bufsize', '20M', '-f', 'mp4', f'{ramDisk}{mp4_file_name}']

The following is the output of the successful run:

ffmpeg version 4.1.6-1~deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avcodec     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avformat    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avdevice    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avfilter    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  swscale     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  swresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  postproc    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument 0.
Reading option '-threads' ... matched as AVOption 'threads' with argument 'auto'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-video_size' ... matched as AVOption 'video_size' with argument '1920x1080'.
Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'yuyv422'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument '+genpts'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
Reading option '-i' ... matched as input url with argument '/dev/video0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.
Reading option '-thread_queue_size' ... matched as option 'thread_queue_size' (set the maximum number of queued packets from the demuxer) with argument '4096'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'.
Reading option '-itsoffset' ... matched as option 'itsoffset' (set the input ts offset) with argument '1'.
Reading option '-i' ... matched as input url with argument 'default'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_omx'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x720'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '30'.
Reading option '-g' ... matched as AVOption 'g' with argument '30'.
Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with argument '0'.
Reading option '-keyint_min' ... matched as AVOption 'keyint_min' with argument '30'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '128K'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '10M'.
Reading option '-minrate' ... matched as AVOption 'minrate' with argument '10M'.
Reading option '-maxrate' ... matched as AVOption 'maxrate' with argument '10M'.
Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '20M'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
Reading option '/usr/ramDisk/2.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option nostdin (enable or disable interaction on standard input) with argument 0.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url /dev/video0.
Applying option re (read input at native frame rate) with argument 1.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x136e530] fd:3 capabilities:84a00001
[video4linux2,v4l2 @ 0x136e530] Current input_channel: 0, input_name: HDMI, input_std: 0
[video4linux2,v4l2 @ 0x136e530] All info found
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 60.262695, bitrate: 1988671 kb/s
    Stream #0:0, 1, 1/1000000: Video: rawvideo, 1 reference frame (YUY2 / 0x32595559), yuyv422, 1920x1080, 0/1, 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: input url default.
Applying option f (force format) with argument alsa.
Applying option thread_queue_size (set the maximum number of queued packets from the demuxer) with argument 4096.
Applying option ac (set number of audio channels) with argument 2.
Applying option ar (set audio sampling rate (in Hz)) with argument 48000.
Applying option itsoffset (set the input ts offset) with argument 1.
Successfully parsed a group of options.
Opening an input file: default.
[alsa @ 0x1370ff0] All info found
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
  Duration: N/A, start: 1601365365.210062, bitrate: 1536 kb/s
    Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output url /usr/ramDisk/2.mp4.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_omx.
Applying option s (set frame size (WxH or abbreviation)) with argument 1280x720.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option b:a (video bitrate (please use -b:v)) with argument 128K.
Applying option b:v (video bitrate (please use -b:v)) with argument 10M.
Applying option f (force format) with argument mp4.
Successfully parsed a group of options.
Opening an output file: /usr/ramDisk/2.mp4.
[file @ 0x138df40] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3672 times
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
[video4linux2,v4l2 @ 0x136e530] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'time_base' to value '1/1000000'
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x1390760] Setting 'frame_rate' to value '7013/117'
[graph 0 input from stream 0:0 @ 0x1390760] w:1920 h:1080 pixfmt:yuyv422 tb:1/1000000 fr:7013/117 sar:0/1 sws_param:flags=2
[scaler_out_0_0 @ 0x1390e30] Setting 'w' to value '1280'
[scaler_out_0_0 @ 0x1390e30] Setting 'h' to value '720'
[scaler_out_0_0 @ 0x1390e30] Setting 'flags' to value 'bicubic'
[scaler_out_0_0 @ 0x1390e30] w:1280 h:720 flags:'bicubic' interl:0
[format @ 0x1391320] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0x136e170] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[scaler_out_0_0 @ 0x1390e30] w:1920 h:1080 fmt:yuyv422 sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4
[h264_omx @ 0x138b900] Using OMX.broadcom.video_encode
[h264_omx @ 0x138b900] OMX state changed to 2
[h264_omx @ 0x138b900] OMX state changed to 3
[h264_omx @ 0x138b900] OMX port 201 settings changed
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[graph_1_in_1_0 @ 0x142bc90] Setting 'time_base' to value '1/48000'
[graph_1_in_1_0 @ 0x142bc90] Setting 'sample_rate' to value '48000'
[graph_1_in_1_0 @ 0x142bc90] Setting 'sample_fmt' to value 's16'
[graph_1_in_1_0 @ 0x142bc90] Setting 'channel_layout' to value '0x3'
[graph_1_in_1_0 @ 0x142bc90] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x142bfb0] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 0x142bfb0] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[format_out_0_1 @ 0x142bfb0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[AVFilterGraph @ 0x142b410] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x142d3d0] [SWR @ 0x142d5d0] Using s16p internally between filters
[auto_resampler_0 @ 0x142d3d0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
Output #0, mp4, to '/usr/ramDisk/2.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/15360: Video: h264 (h264_omx), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive), 1280x720, 0/1, q=2-31, 10000 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.35.100 h264_omx
    Stream #0:1, 0, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, delay 1024, 128 kb/s
    Metadata:
      encoder         : Lavc58.35.100 aac
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
Clipping frame in rate conversion by 0.499565
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 16 times
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
Past duration 0.998985 too large
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 5 from stream 0 at ts 3
frame=    6 fps=0.0 q=-0.0 size=       0kB time=00:00:01.00 bitrate=   0.4kbits/s dup=0 drop=1 speed=1.99x
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 6 from stream 0 at ts 4
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 7 from stream 0 at ts 5
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 8 from stream 0 at ts 6
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 9 from stream 0 at ts 7
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 10 from stream 0 at ts 8
frame=   11 fps= 10 q=-0.0 size=       0kB time=00:00:01.00 bitrate=   0.4kbits/s dup=0 drop=6 speed=0.949x
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.990517 too large
*** dropping frame 11 from stream 0 at ts 9
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 14 from stream 0 at ts 12
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 15 from stream 0 at ts 13
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 16 from stream 0 at ts 14
frame=   17 fps= 11 q=-0.0 size=       0kB time=00:00:01.00 bitrate=   0.4kbits/s dup=0 drop=10 speed=0.633x
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 17 from stream 0 at ts 15
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 18 from stream 0 at ts 16
[rawvideo @ 0x1370c50] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 19 from stream 0 at ts 17
.
.
.
.
.
############# END OF LOG #############

The following is the output of the unsuccessful run:

ffmpeg version 4.1.6-1~deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avcodec     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avformat    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avdevice    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avfilter    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  avresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  swscale     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  swresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  postproc    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --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-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument 0.
Reading option '-threads' ... matched as AVOption 'threads' with argument 'auto'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-video_size' ... matched as AVOption 'video_size' with argument '1920x1080'.
Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'yuyv422'.
Reading option '-fflags' ... matched as AVOption 'fflags' with argument '+genpts'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
Reading option '-i' ... matched as input url with argument '/dev/video0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.
Reading option '-thread_queue_size' ... matched as option 'thread_queue_size' (set the maximum number of queued packets from the demuxer) with argument '4096'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'.
Reading option '-itsoffset' ... matched as option 'itsoffset' (set the input ts offset) with argument '1'.
Reading option '-i' ... matched as input url with argument 'default'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_omx'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x720'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '30'.
Reading option '-g' ... matched as AVOption 'g' with argument '30'.
Reading option '-sc_threshold' ... matched as AVOption 'sc_threshold' with argument '0'.
Reading option '-keyint_min' ... matched as AVOption 'keyint_min' with argument '30'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '128K'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '10M'.
Reading option '-minrate' ... matched as AVOption 'minrate' with argument '10M'.
Reading option '-maxrate' ... matched as AVOption 'maxrate' with argument '10M'.
Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument '20M'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
Reading option '/usr/ramDisk/4.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option nostdin (enable or disable interaction on standard input) with argument 0.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url /dev/video0.
Applying option re (read input at native frame rate) with argument 1.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0xe29530] fd:3 capabilities:84a00001
[video4linux2,v4l2 @ 0xe29530] Current input_channel: 0, input_name: HDMI, input_std: 0
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
[video4linux2,v4l2 @ 0xe29530] All info found
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 0.000000, bitrate: 1988671 kb/s
    Stream #0:0, 1, 1/1000000: Video: rawvideo, 1 reference frame (YUY2 / 0x32595559), yuyv422, 1920x1080, 0/1, 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: input url default.
Applying option f (force format) with argument alsa.
Applying option thread_queue_size (set the maximum number of queued packets from the demuxer) with argument 4096.
Applying option ac (set number of audio channels) with argument 2.
Applying option ar (set audio sampling rate (in Hz)) with argument 48000.
Applying option itsoffset (set the input ts offset) with argument 1.
Successfully parsed a group of options.
Opening an input file: default.
[alsa @ 0xe2bff0] All info found
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
  Duration: N/A, start: 1601365463.825912, bitrate: 1536 kb/s
    Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output url /usr/ramDisk/4.mp4.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_omx.
Applying option s (set frame size (WxH or abbreviation)) with argument 1280x720.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option b:a (video bitrate (please use -b:v)) with argument 128K.
Applying option b:v (video bitrate (please use -b:v)) with argument 10M.
Applying option f (force format) with argument mp4.
Successfully parsed a group of options.
Opening an output file: /usr/ramDisk/4.mp4.
[file @ 0xe48f70] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1189 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 3 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[video4linux2,v4l2 @ 0xe29530] Dequeued v4l2 buffer contains corrupted data (0 bytes).
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 7211 times
[rawvideo @ 0xe2bc50] PACKET SIZE: 4147200, STRIDE: 3840
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'time_base' to value '1/1000000'
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0xe4b800] Setting 'frame_rate' to value '7013/117'
[graph 0 input from stream 0:0 @ 0xe4b800] w:1920 h:1080 pixfmt:yuyv422 tb:1/1000000 fr:7013/117 sar:0/1 sws_param:flags=2
[scaler_out_0_0 @ 0xe4bde0] Setting 'w' to value '1280'
[scaler_out_0_0 @ 0xe4bde0] Setting 'h' to value '720'
[scaler_out_0_0 @ 0xe4bde0] Setting 'flags' to value 'bicubic'
[scaler_out_0_0 @ 0xe4bde0] w:1280 h:720 flags:'bicubic' interl:0
[format @ 0xe4c1d0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0xe29170] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[scaler_out_0_0 @ 0xe4bde0] w:1920 h:1080 fmt:yuyv422 sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4
[h264_omx @ 0xe46900] Using OMX.broadcom.video_encode
[h264_omx @ 0xe46900] OMX state changed to 2
[h264_omx @ 0xe46900] OMX state changed to 3
[h264_omx @ 0xe46900] OMX port 201 settings changed
Not duplicating 4794 initial frames
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[graph_1_in_1_0 @ 0xee6b40] Setting 'time_base' to value '1/48000'
[graph_1_in_1_0 @ 0xee6b40] Setting 'sample_rate' to value '48000'
[graph_1_in_1_0 @ 0xee6b40] Setting 'sample_fmt' to value 's16'
[graph_1_in_1_0 @ 0xee6b40] Setting 'channel_layout' to value '0x3'
[graph_1_in_1_0 @ 0xee6b40] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0xee6fa0] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 0xee6fa0] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[format_out_0_1 @ 0xee6fa0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[AVFilterGraph @ 0xee62c0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0xee8400] [SWR @ 0xee8610] Using s16p internally between filters
[auto_resampler_0 @ 0xee8400] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
Output #0, mp4, to '/usr/ramDisk/4.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/15360: Video: h264 (h264_omx), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive), 1280x720, 0/1, q=2-31, 10000 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.35.100 h264_omx
    Stream #0:1, 0, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, delay 1024, 128 kb/s
    Metadata:
      encoder         : Lavc58.35.100 aac
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 133 times
frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=1.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.7 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.5 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
   Last message repeated 199 times
frame=    1 fps=0.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 199 times
frame=    1 fps=0.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
cur_dts is invalid (this is harmless if it occurs once at the start per stream)


More information about the ffmpeg-user mailing list