Newbie needs help on capture video/audio using ffmpeg on RPI

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
Hello,

I’m using RPI v4 4G running “Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux”, it currently set for 256M GPU memory, the Pi is connected to the GoPro camera (Hero 7) HDMI out using Cam Link<https://www.elgato.com/en/gaming/cam-link-4k> to the Pi’s USB3, the Pi recognize the GoPro as a webcam “/dev/video0”; my goal is to capture both audio and video feed from the camera’s HDMI out (the camera’s HDMI feed is 1920x1080@60FPS) the FFmpeg version is “4.1.4-1+rpt7~deb10u1”.

The devices list on the PI is: v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
                /dev/video10
                /dev/video11
                /dev/video12

Cam Link: Cam Link (usb-0000:01:00.0-2):
                /dev/video0
                /dev/video1
/////////////// END OF OUTPUT ///////////////

the encoders list installed are: ffmpeg -f v4l2 -list_formats all -i /dev/video0
ffmpeg version 4.1.4-1+rpt7~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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
[video4linux2,v4l2 @ 0x22e01c0] Raw       :     yuyv422 :           YUYV 4:2:2 : 1920x1080
/////////////// END OF OUTPUT ///////////////


And the output of: v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
                Type: Video Capture

                [0]: 'YUYV' (YUYV 4:2:2)
                                Size: Discrete 1920x1080
                                                Interval: Discrete 0.017s (59.940 fps)
/////////////// END OF OUTPUT ///////////////


I tried some different ways to capture this. Still, my quality results are poor, and no audio or the audio is out of sync and video is choppy, another issue is that when I try to use the hardware acceleration codec h264_omx I get very low quality comparing to libx264.

My current goal is to capture both video and audio to an mp4 file format 896x504@30fps, I have no doubt it is possible but my current knowledge is not enough; can you pls help me with this?

Many thanks in advance to you all!
Best,
Ram

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Carl Zwanzig
On 5/11/2020 5:12 AM, Ram Shaffir wrote:
> I tried some different ways to capture this. Still, my quality results
> are poor, and no audio or the audio is out of sync and video is choppy,
> another issue is that when I try to use the hardware acceleration codec
> h264_omx I get very low quality comparing to libx264.

Unless I'm missing it, what is the exact command line you're using and its
output. Also, how does it behave without using h/w acceleration?

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
Hi Carl, thank you for your reply!

No, you are not missing anything, I had many many different tests and all were with poor results, for this discussion, I pulled one call (its choppy and audio out of sync) but I'll call it once with h264_omx and once with libx264:

ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -i /dev/video0 -acodec ac3 -ab 128k -f matroska -s 1280x720 -vcodec libx264 -preset ultrafast -qp 16 /usr/ramDisk/testsize2.mkv

ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -i /dev/video0 -acodec ac3 -ab 128k -f matroska -s 1280x720 -vcodec h264_omx -preset ultrafast -qp 16 /usr/ramDisk/testsize2.mkv

the results are here:
h264_omx output: https://dl.dropbox.com/s/sxy43vkmrw46a8u/h264_omx.mkv
libx264 output: https://dl.dropbox.com/s/e0zhkniw74inpza/libx264.mkv

Cheers,
RS.

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Carl Zwanzig
Sent: Monday, May 11, 2020 11:22 PM
To: [hidden email]
Subject: Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

On 5/11/2020 5:12 AM, Ram Shaffir wrote:
> I tried some different ways to capture this. Still, my quality results
> are poor, and no audio or the audio is out of sync and video is
> choppy, another issue is that when I try to use the hardware
> acceleration codec h264_omx I get very low quality comparing to libx264.

Unless I'm missing it, what is the exact command line you're using and its output. Also, how does it behave without using h/w acceleration?

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Carl Zwanzig
Hello,

On 5/11/2020 2:05 PM, Ram Shaffir wrote:
> No, you are not missing anything, I had many many different tests and all were with poor results,

This is still missing the _command_output_, please post that. Are you
testing with the latest build for the r-pi?

Also, do not top-post on this list. (All of that is discussed in the list
FAQ- https://ffmpeg.org/mailing-list-faq.html)

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
Sorry about that (Top-posting & missing output), pls find attached both output logs.

https://dl.dropbox.com/s/ou3hpdqv36kquu1/h264_omx.log
https://dl.dropbox.com/s/tyqk348tel5iyw7/libx264.log

Hope this is better.

Best,
RS
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
Hi Carl,

Got some progress ,however, whenever I use the h264_omx I still get low-quality video output compared with libx264 (increasing the bitrate didn't do too much), my current command is:

ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0 -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s 896x504 -r 30 -vcodec h264_omx -b:v 10000K -pix_fmt yuv420p -f mp4 /usr/ramDisk/h264_omx.mp4 -loglevel debug 2> /usr/ramDisk/h264_omx.mp4.log

the full output log for a 9 secods video:
ffmpeg version 4.1.4-1+rpt7~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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 '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
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 '15000'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-itsoffset' ... matched as option 'itsoffset' (set the input ts offset) with argument '-0.5'.
Reading option '-i' ... matched as input url with argument 'hw:1,0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-thread_queue_size' ... matched as option 'thread_queue_size' (set the maximum number of queued packets from the demuxer) with argument '15000'.
Reading option '-i' ... matched as input url with argument '/dev/video0'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'ac3'.
Reading option '-ab' ... matched as option 'ab' (audio bitrate (please use -b:a)) with argument '51k'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '896x504'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_omx'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '10000K'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mp4'.
Reading option '/usr/ramDisk/h264_omx.mp4' ... matched as output url.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url hw:1,0.
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 15000.
Applying option ac (set number of audio channels) with argument 2.
Applying option itsoffset (set the input ts offset) with argument -0.5.
Successfully parsed a group of options.
Opening an input file: hw:1,0.
[alsa @ 0x748310] All info found
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:1,0':
  Duration: N/A, start: 1589402974.746268, bitrate: 1536 kb/s
    Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: input url /dev/video0.
Applying option f (force format) with argument v4l2.
Applying option thread_queue_size (set the maximum number of queued packets from the demuxer) with argument 15000.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x75bb30] fd:3 capabilities:84a00001
[video4linux2,v4l2 @ 0x75bb30] Current input_channel: 0, input_name: HDMI, input_std: 0
[video4linux2,v4l2 @ 0x75bb30] Querying the device for the current frame size
[video4linux2,v4l2 @ 0x75bb30] Setting frame size to 1920x1080
[video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
[video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
[video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
[video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
[video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from 0x32315659 to 0x56595559
[video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv422p
[video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from 0x50323234 to 0x56595559
[video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuyv422
[video4linux2,v4l2 @ 0x75bb30] All info found
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 963.335659, bitrate: 1988671 kb/s
    Stream #1: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: output url /usr/ramDisk/h264_omx.mp4.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument ac3.
Applying option ab (audio bitrate (please use -b:a)) with argument 51k.
Applying option s (set frame size (WxH or abbreviation)) with argument 896x504.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_omx.
Applying option b:v (video bitrate (please use -b:v)) with argument 10000K.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option f (force format) with argument mp4.
Successfully parsed a group of options.
Opening an output file: /usr/ramDisk/h264_omx.mp4.
[file @ 0x764c90] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 59 times
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
detected 4 logical cores
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'time_base' to value '1/1000000'
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 1:0 @ 0x7671e0] Setting 'frame_rate' to value '7013/117'
[graph 0 input from stream 1:0 @ 0x7671e0] w:1920 h:1080 pixfmt:yuyv422 tb:1/1000000 fr:7013/117 sar:0/1 sws_param:flags=2
[scaler_out_0_0 @ 0x767940] Setting 'w' to value '896'
[scaler_out_0_0 @ 0x767940] Setting 'h' to value '504'
[scaler_out_0_0 @ 0x767940] Setting 'flags' to value 'bicubic'
[scaler_out_0_0 @ 0x767940] w:896 h:504 flags:'bicubic' interl:0
[format @ 0x767ea0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0x766130] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[scaler_out_0_0 @ 0x767940] w:1920 h:1080 fmt:yuyv422 sar:0/1 -> w:896 h:504 fmt:yuv420p sar:0/1 flags:0x4
[h264_omx @ 0x762000] Using OMX.broadcom.video_encode
[h264_omx @ 0x762000] OMX state changed to 2
[h264_omx @ 0x762000] OMX state changed to 3
[h264_omx @ 0x762000] 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_0_0 @ 0x8534c0] Setting 'time_base' to value '1/48000'
[graph_1_in_0_0 @ 0x8534c0] Setting 'sample_rate' to value '48000'
[graph_1_in_0_0 @ 0x8534c0] Setting 'sample_fmt' to value 's16'
[graph_1_in_0_0 @ 0x8534c0] Setting 'channel_layout' to value '0x3'
[graph_1_in_0_0 @ 0x8534c0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x853eb0] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 0x853eb0] Setting 'channel_layouts' to value '0x4|0x3|0x103|0x7|0x603|0x33|0x107|0x607|0x37|0xc|0xb|0x10b|0xf|0x60b|0x3b|0x10f|0x60f|0x3f'
[format_out_0_1 @ 0x853eb0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[AVFilterGraph @ 0x852c00] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 0x854df0] [SWR @ 0x855000] Using s16p internally between filters
[auto_resampler_0 @ 0x854df0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
Output #0, mp4, to '/usr/ramDisk/h264_omx.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/15360: Video: h264 (h264_omx), 1 reference frame (avc1 / 0x31637661), yuv420p(progressive), 896x504, 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: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, delay 256, 48 kb/s
    Metadata:
      encoder         : Lavc58.35.100 ac3
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[rawvideo @ 0x760830] 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 11 times
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
Past duration 0.998985 too large
[rawvideo @ 0x760830] 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:00.16 bitrate=   2.4kbits/s dup=0 drop=1 speed=0.31x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 6 from stream 0 at ts 4
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 7 from stream 0 at ts 5
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 8 from stream 0 at ts 6
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 9 from stream 0 at ts 7
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 10 from stream 0 at ts 8
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 11 from stream 0 at ts 9
frame=   12 fps= 12 q=-0.0 size=       0kB time=00:00:00.35 bitrate=   1.1kbits/s dup=0 drop=7 speed=0.339x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 12 from stream 0 at ts 10
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 13 from stream 0 at ts 11
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.987709 too large
*** dropping frame 14 from stream 0 at ts 12
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 17 from stream 0 at ts 15
frame=   18 fps= 12 q=-0.0 size=       0kB time=00:00:00.54 bitrate=   0.7kbits/s dup=0 drop=11 speed=0.352x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 18 from stream 0 at ts 16
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 19 from stream 0 at ts 17
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.980217 too large
*** dropping frame 22 from stream 0 at ts 20
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 25 from stream 0 at ts 23
frame=   26 fps= 13 q=-0.0 size=       0kB time=00:00:00.80 bitrate=   0.5kbits/s dup=0 drop=15 speed=0.39x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 26 from stream 0 at ts 24
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.975502 too large
*** dropping frame 27 from stream 0 at ts 25
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 30 from stream 0 at ts 28
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 31 from stream 0 at ts 29
frame=   32 fps= 12 q=-0.0 size=       0kB time=00:00:01.02 bitrate=   0.4kbits/s dup=0 drop=19 speed=0.401x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 32 from stream 0 at ts 30
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 33 from stream 0 at ts 31
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 34 from stream 0 at ts 32
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.968086 too large
*** dropping frame 35 from stream 0 at ts 33
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 38 from stream 0 at ts 36
frame=   39 fps= 13 q=-0.0 size=       0kB time=00:00:01.24 bitrate=   0.3kbits/s dup=0 drop=24 speed=0.408x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 39 from stream 0 at ts 37
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 40 from stream 0 at ts 38
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 41 from stream 0 at ts 39
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 42 from stream 0 at ts 40
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.960518 too large
*** dropping frame 43 from stream 0 at ts 41
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=   45 fps= 12 q=-0.0 size=       0kB time=00:00:01.44 bitrate=   0.3kbits/s dup=0 drop=29 speed= 0.4x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
Past duration 0.957573 too large
*** dropping frame 46 from stream 0 at ts 44
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 5 times
*** dropping frame 51 from stream 0 at ts 49
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
frame=   54 fps= 13 q=-0.0 size=       0kB time=00:00:01.76 bitrate=   0.2kbits/s dup=0 drop=31 speed=0.426x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 54 from stream 0 at ts 52
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 55 from stream 0 at ts 53
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 58 from stream 0 at ts 56
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 59 from stream 0 at ts 57
frame=   60 fps= 13 q=-0.0 size=       0kB time=00:00:01.95 bitrate=   0.2kbits/s dup=0 drop=35 speed=0.42x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 60 from stream 0 at ts 58
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.943260 too large
*** dropping frame 61 from stream 0 at ts 59
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
Clipping frame in rate conversion by 0.442238
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
Past duration 0.941719 too large
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
frame=   68 fps= 13 q=-0.0 size=       0kB time=00:00:02.21 bitrate=   0.2kbits/s dup=0 drop=37 speed=0.427x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.937065 too large
*** dropping frame 68 from stream 0 at ts 66
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 71 from stream 0 at ts 69
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.933327 too large
*** dropping frame 72 from stream 0 at ts 70
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
Clipping frame in rate conversion by 0.431587
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
Past duration 0.931511 too large
frame=   75 fps= 13 q=-0.0 size=       0kB time=00:00:02.43 bitrate=   0.2kbits/s dup=0 drop=40 speed=0.427x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 5 times
*** dropping frame 79 from stream 0 at ts 77
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 80 from stream 0 at ts 78
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 81 from stream 0 at ts 79
frame=   82 fps= 13 q=-0.0 size=       0kB time=00:00:02.69 bitrate=   0.1kbits/s dup=0 drop=43 speed=0.432x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 84 from stream 0 at ts 82
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.918831 too large
*** dropping frame 87 from stream 0 at ts 85
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=   89 fps= 13 q=-0.0 size=       0kB time=00:00:02.91 bitrate=   0.1kbits/s dup=0 drop=45 speed=0.43x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
*** dropping frame 90 from stream 0 at ts 88
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 91 from stream 0 at ts 89
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 94 from stream 0 at ts 92
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 95 from stream 0 at ts 93
frame=   96 fps= 13 q=-0.0 size=     256kB time=00:00:03.13 bitrate= 668.4kbits/s dup=0 drop=49 speed=0.429x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.908836 too large
*** dropping frame 98 from stream 0 at ts 96
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.906075 too large
*** dropping frame 101 from stream 0 at ts 99
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
frame=  104 fps= 13 q=-0.0 size=     256kB time=00:00:03.42 bitrate= 612.2kbits/s dup=0 drop=51 speed=0.435x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.901360 too large
*** dropping frame 106 from stream 0 at ts 104
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.898506 too large
*** dropping frame 109 from stream 0 at ts 107
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=  111 fps= 13 q=-0.0 size=     256kB time=00:00:03.65 bitrate= 574.6kbits/s dup=0 drop=53 speed=0.436x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
Past duration 0.895531 too large
*** dropping frame 112 from stream 0 at ts 110
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 5 times
*** dropping frame 117 from stream 0 at ts 115
frame=  118 fps= 13 q=-0.0 size=     512kB time=00:00:03.87 bitrate=1082.7kbits/s dup=0 drop=55 speed=0.433x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 120 from stream 0 at ts 118
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.885323 too large
*** dropping frame 123 from stream 0 at ts 121
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
frame=  126 fps= 13 q=-0.0 size=     512kB time=00:00:04.16 bitrate=1007.8kbits/s dup=0 drop=57 speed=0.439x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 126 from stream 0 at ts 124
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 127 from stream 0 at ts 125
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 128 from stream 0 at ts 126
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 129 from stream 0 at ts 127
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 130 from stream 0 at ts 128
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 131 from stream 0 at ts 129
frame=  132 fps= 13 q=-0.0 size=     768kB time=00:00:04.35 bitrate=1444.9kbits/s dup=0 drop=63 speed=0.436x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 132 from stream 0 at ts 130
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 135 from stream 0 at ts 133
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 136 from stream 0 at ts 134
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 137 from stream 0 at ts 135
frame=  138 fps= 13 q=-0.0 size=     768kB time=00:00:04.54 bitrate=1383.9kbits/s dup=0 drop=67 speed=0.433x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 138 from stream 0 at ts 136
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 139 from stream 0 at ts 137
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 140 from stream 0 at ts 138
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 141 from stream 0 at ts 139
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 144 from stream 0 at ts 142
frame=  145 fps= 13 q=-0.0 size=    1024kB time=00:00:04.77 bitrate=1758.5kbits/s dup=0 drop=72 speed=0.433x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 147 from stream 0 at ts 145
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 148 from stream 0 at ts 146
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 149 from stream 0 at ts 147
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 150 from stream 0 at ts 148
frame=  151 fps= 13 q=-0.0 size=    1280kB time=00:00:04.99 bitrate=2099.6kbits/s dup=0 drop=76 speed=0.431x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.859169 too large
*** dropping frame 151 from stream 0 at ts 149
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 154 from stream 0 at ts 152
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 157 from stream 0 at ts 155
frame=  158 fps= 13 q=-0.0 size=    1280kB time=00:00:05.21 bitrate=2009.4kbits/s dup=0 drop=79 speed=0.432x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 160 from stream 0 at ts 158
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 161 from stream 0 at ts 159
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.848488 too large
*** dropping frame 162 from stream 0 at ts 160
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=  164 fps= 13 q=-0.0 size=    1536kB time=00:00:05.41 bitrate=2325.7kbits/s dup=0 drop=82 speed=0.428x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
*** dropping frame 165 from stream 0 at ts 163
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 166 from stream 0 at ts 164
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 169 from stream 0 at ts 167
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
frame=  172 fps= 13 q=-0.0 size=    1536kB time=00:00:05.66 bitrate=2220.6kbits/s dup=0 drop=85 speed=0.43x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 172 from stream 0 at ts 170
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 173 from stream 0 at ts 171
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 174 from stream 0 at ts 172
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 175 from stream 0 at ts 173
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 176 from stream 0 at ts 174
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.834648 too large
*** dropping frame 177 from stream 0 at ts 175
frame=  178 fps= 13 q=-0.0 size=    1792kB time=00:00:05.89 bitrate=2492.2kbits/s dup=0 drop=91 speed=0.429x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 180 from stream 0 at ts 178
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 183 from stream 0 at ts 181
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 184 from stream 0 at ts 182
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 185 from stream 0 at ts 183
frame=  186 fps= 13 q=-0.0 size=    1792kB time=00:00:06.14 bitrate=2388.4kbits/s dup=0 drop=95 speed=0.432x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 186 from stream 0 at ts 184
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 187 from stream 0 at ts 185
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 188 from stream 0 at ts 186
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 189 from stream 0 at ts 187
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 190 from stream 0 at ts 188
frame=  191 fps= 13 q=-0.0 size=    1792kB time=00:00:06.30 bitrate=2327.8kbits/s dup=0 drop=100 speed=0.428x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.821495 too large
*** dropping frame 191 from stream 0 at ts 189
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 194 from stream 0 at ts 192
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 195 from stream 0 at ts 193
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 196 from stream 0 at ts 194
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 197 from stream 0 at ts 195
frame=  198 fps= 13 q=-0.0 size=    2048kB time=00:00:06.56 bitrate=2556.5kbits/s dup=0 drop=105 speed=0.431x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 198 from stream 0 at ts 196
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 199 from stream 0 at ts 197
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 200 from stream 0 at ts 198
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.812126 too large
*** dropping frame 201 from stream 0 at ts 199
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
frame=  204 fps= 13 q=-0.0 size=    2048kB time=00:00:06.75 bitrate=2483.8kbits/s dup=0 drop=109 speed=0.429x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 206 from stream 0 at ts 204
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.806480 too large
*** dropping frame 207 from stream 0 at ts 205
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
Past duration 0.803627 too large
*** dropping frame 210 from stream 0 at ts 208
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=  212 fps= 13 q=-0.0 size=    2048kB time=00:00:07.01 bitrate=2393.1kbits/s dup=0 drop=112 speed=0.431x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
Past duration 0.800606 too large
*** dropping frame 213 from stream 0 at ts 211
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 216 from stream 0 at ts 214
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 217 from stream 0 at ts 215
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 218 from stream 0 at ts 216
frame=  219 fps= 13 q=-0.0 size=    2048kB time=00:00:07.23 bitrate=2319.0kbits/s dup=0 drop=116 speed=0.431x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 221 from stream 0 at ts 219
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.791496 too large
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
*** dropping frame 226 from stream 0 at ts 224
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 227 from stream 0 at ts 225
frame=  228 fps= 13 q=-0.0 size=    2304kB time=00:00:07.55 bitrate=2498.4kbits/s dup=0 drop=119 speed=0.436x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 228 from stream 0 at ts 226
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 229 from stream 0 at ts 227
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 230 from stream 0 at ts 228
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 231 from stream 0 at ts 229
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.783028 too large
*** dropping frame 232 from stream 0 at ts 230
frame=  233 fps= 13 q=-0.0 size=    2304kB time=00:00:07.71 bitrate=2446.6kbits/s dup=0 drop=124 speed=0.433x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 5 times
Past duration 0.777214 too large
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.775520 too large
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=  242 fps= 13 q=-0.0 size=    2560kB time=00:00:08.00 bitrate=2620.6kbits/s dup=0 drop=124 speed=0.436x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 2 times
*** dropping frame 243 from stream 0 at ts 241
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 244 from stream 0 at ts 242
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
Past duration 0.770775 too large
*** dropping frame 245 from stream 0 at ts 243
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 3 times
frame=  250 fps= 13 q=-0.0 size=    2560kB time=00:00:08.29 bitrate=2529.6kbits/s dup=0 drop=127 speed=0.44x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 250 from stream 0 at ts 248
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 1 times
*** dropping frame 251 from stream 0 at ts 249
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 5 times
*** dropping frame 256 from stream 0 at ts 254
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
frame=  258 fps= 13 q=-0.0 size=    2560kB time=00:00:08.54 bitrate=2453.7kbits/s dup=0 drop=130 speed=0.441x    
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 4 times
*** dropping frame 261 from stream 0 at ts 259
[rawvideo @ 0x760830] PACKET SIZE: 4147200, STRIDE: 3840
    Last message repeated 4 times
*** dropping frame 265 from stream 0 at ts 263
[h264_omx @ 0x762000] OMX event 4 c9 1
frame=  266 fps= 13 q=-0.0 Lsize=    2930kB time=00:00:08.83 bitrate=2717.3kbits/s dup=0 drop=132 speed=0.44x    
video:2869kB audio:54kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.229398%
Input file #0 (hw:1,0):
  Input stream #0:0 (audio): 3850 packets read (1781860 bytes); 3850 frames decoded (445465 samples);
  Total: 3850 packets (1781860 bytes) demuxed
Input file #1 (/dev/video0):
  Input stream #1:0 (video): 398 packets read (1650585600 bytes); 398 frames decoded;
  Total: 398 packets (1650585600 bytes) demuxed
Output file #0 (/usr/ramDisk/h264_omx.mp4):
  Output stream #0:0 (video): 266 frames encoded; 266 packets muxed (2937807 bytes);
  Output stream #0:1 (audio): 290 frames encoded (445440 samples); 290 packets muxed (55680 bytes);
  Total: 556 packets (2993487 bytes) muxed
4248 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x764d90] Statistics: 2 seeks, 15 writeouts
[h264_omx @ 0x762000] OMX state changed to 2
[h264_omx @ 0x762000] OMX state changed to 1


Many thanks again!
Best,
RS
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Tom Sparks-2
On 14/05/2020, Ram Shaffir <[hidden email]> wrote:

> Hi Carl,
>
> Got some progress ,however, whenever I use the h264_omx I still get
> low-quality video output compared with libx264 (increasing the bitrate
> didn't do too much), my current command is:
>
> ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0
> -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s
> 896x504 -r 30 -vcodec h264_omx -b:v 10000K -pix_fmt yuv420p -f mp4
> /usr/ramDisk/h264_omx.mp4 -loglevel debug 2> /usr/ramDisk/h264_omx.mp4.log
>
your version of FFmpeg is very old

<snipped>

> Opening an input file: hw:1,0.
> [alsa @ 0x748310] All info found
> Guessed Channel Layout for Input Stream #0.0 : stereo
> Input #0, alsa, from 'hw:1,0':
>   Duration: N/A, start: 1589402974.746268, bitrate: 1536 kb/s
>     Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
> kb/s
> Successfully opened the file.
> Parsing a group of options: input url /dev/video0.
> Applying option f (force format) with argument v4l2.
> Applying option thread_queue_size (set the maximum number of queued packets
> from the demuxer) with argument 15000.
> Successfully parsed a group of options.
> Opening an input file: /dev/video0.
> [video4linux2,v4l2 @ 0x75bb30] fd:3 capabilities:84a00001
> [video4linux2,v4l2 @ 0x75bb30] Current input_channel: 0, input_name: HDMI,
> input_std: 0
> [video4linux2,v4l2 @ 0x75bb30] Querying the device for the current frame
> size
> [video4linux2,v4l2 @ 0x75bb30] Setting frame size to 1920x1080
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315559 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315559 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv420p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x32315659 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuv422p
> [video4linux2,v4l2 @ 0x75bb30] The V4L2 driver changed the pixel format from
> 0x50323234 to 0x56595559
> [video4linux2,v4l2 @ 0x75bb30] Trying to set codec:rawvideo pix_fmt:yuyv422
> [video4linux2,v4l2 @ 0x75bb30] All info found
> Input #1, video4linux2,v4l2, from '/dev/video0':
>   Duration: N/A, start: 963.335659, bitrate: 1988671 kb/s
>     Stream #1: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.

you are not setting up the /dev/video0 input correctly see
<https://trac.ffmpeg.org/wiki/Capture/Webcam>

Let the camera/capture card to the encoding  and save stream with -c:v
copy -c:a copy

> Many thanks again!
> Best,
> RS
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

kumowoon1025
Hi,

> you are not setting up the /dev/video0 input correctly see
> <https://trac.ffmpeg.org/wiki/Capture/Webcam <https://trac.ffmpeg.org/wiki/Capture/Webcam>>
>
> Let the camera/capture card to the encoding  and save stream with -c:v
> copy -c:a copy

It doesn't look like that's an option, when a card that size lists haswell i5 as a "system requirement" it's probably not an actual capture card and depends on qsv for its advertised encoding performance.
Maybe you could try a build using libv4l2 and usign the v4l2 m2m codec names?

Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
> your version of FFmpeg is very old
> Edward Park

> It doesn't look like that's an option, when a card that size lists haswell i5 as a "system requirement" it's probably > not an actual capture card and depends on qsv for its advertised encoding performance.
> Maybe you could try a build using libv4l2 and usign the v4l2 m2m codec names?

> Regards,
> Ted Park

Thank you for your reply!

I will try to build an updated ffmpeg with the additional codecs; can you pls point me to an updated tutorial on how to do it? Also, The target ffmpeg is for the Raspberry PI, can I build the ffmpeg on a stronger linux machine (such as AWS machine)?

Is there anything else I need to take into account when building it for the RPI?

Thanks again for your support!
Cheers,
RS


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
My "success" wasn't as good as I thought when capturing the video feed for over 15 seconds or so I get an error and the although the output video size keeps on growing there are no new frames only audio:

ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0 -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s 896x504 -r 30 -vcodec libx264 -b:v 2100K -pix_fmt yuv422p -f mp4 /usr/ramDisk/libx264.mp4


ffmpeg version 4.1.4-1+rpt7~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:1,0':
  Duration: N/A, start: 1589455757.766293, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 53746.367981, bitrate: 1988671 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
[libx264 @ 0xc17ff0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0xc17ff0] profile High 4:2:2, level 3.1, 4:2:2 8-bit
[libx264 @ 0xc17ff0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2100 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/usr/ramDisk/libx264.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv422p(progressive), 896x504, q=-1--1, 2100 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.35.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2100000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 48 kb/s
    Metadata:
      encoder         : Lavc58.35.100 ac3
[video4linux2,v4l2 @ 0xc11b20] Error allocating a packet.46 bitrate=2550.7kbits/s dup=0 drop=114 speed=0.155x    
/dev/video0: Cannot allocate memory 3584kB time=00:00:15.42 bitrate=1903.1kbits/s dup=0 drop=379 speed=0.317x    
frame=  520 fps=5.4 q=-1.0 Lsize=    4858kB time=00:01:32.78 bitrate= 429.0kbits/s dup=0 drop=381 speed=0.967x    
video:4281kB audio:546kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.646653%
[libx264 @ 0xc17ff0] frame I:3     Avg QP:18.77  size: 40830
[libx264 @ 0xc17ff0] frame P:141   Avg QP:20.18  size: 16616
[libx264 @ 0xc17ff0] frame B:376   Avg QP:21.26  size:  5100
[libx264 @ 0xc17ff0] consecutive B-frames:  1.7%  3.5%  6.3% 88.5%
[libx264 @ 0xc17ff0] mb I  I16..4: 27.7% 50.1% 22.2%
[libx264 @ 0xc17ff0] mb P  I16..4:  8.3% 10.2%  1.8%  P16..4: 47.3% 16.0% 10.9%  0.0%  0.0%    skip: 5.4%
[libx264 @ 0xc17ff0] mb B  I16..4:  1.1%  1.7%  0.2%  B16..8: 41.0%  4.7%  0.8%  direct: 8.2%  skip:42.3%  L0:50.5% L1:44.8% BI: 4.7%
[libx264 @ 0xc17ff0] final ratefactor: 18.47
[libx264 @ 0xc17ff0] 8x8 transform intra:51.7% inter:80.6%
[libx264 @ 0xc17ff0] coded y,uvDC,uvAC intra: 44.1% 86.7% 31.0% inter: 21.3% 51.2% 3.8%
[libx264 @ 0xc17ff0] i16 v,h,dc,p:  4%  7%  2% 87%
[libx264 @ 0xc17ff0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 17% 22%  7%  8%  8%  8%  7%  7%
[libx264 @ 0xc17ff0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 15% 17%  7% 10% 10%  7%  6%  4%
[libx264 @ 0xc17ff0] i8c dc,h,v,p: 47% 16% 22% 15%
[libx264 @ 0xc17ff0] Weighted P-Frames: Y:11.3% UV:5.7%
[libx264 @ 0xc17ff0] ref P L0: 42.3%  6.6% 33.5% 16.5%  1.0%
[libx264 @ 0xc17ff0] ref B L0: 64.6% 25.3% 10.1%
[libx264 @ 0xc17ff0] ref B L1: 83.9% 16.1%
[libx264 @ 0xc17ff0] kb/s:2022.83

What is it that I'm missing here?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Tom Sparks-2
On 14/05/2020, Ram Shaffir <[hidden email]> wrote:

> My "success" wasn't as good as I thought when capturing the video feed for
> over 15 seconds or so I get an error and the although the output video size
> keeps on growing there are no new frames only audio:
>
> ffmpeg -y -f alsa -thread_queue_size 15000 -ac 2 -itsoffset -0.5 -i hw:1,0
> -f v4l2 -thread_queue_size 15000 -i /dev/video0 -acodec ac3 -ab 51k -s
> 896x504 -r 30 -vcodec libx264 -b:v 2100K -pix_fmt yuv422p -f mp4
> /usr/ramDisk/libx264.mp4
> Input #1, video4linux2,v4l2, from '/dev/video0':
>   Duration: N/A, start: 53746.367981, bitrate: 1988671 kb/s
> Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080,
> 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc

You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the
CPU power and the USB bus cant handle 248.583875 Mbytes/s
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
> You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
> h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the CPU power and the USB bus cant
> handle 248.583875 Mbytes/s

Hmm... any suggestions on how to make it work? A different HW between the GoPro and the PI that does most of the encoding? Something like this: https://www.epiphan.com/products/avio-hd/  (this solution does not work with the PI according to their support), but maybe something else?

I truly need to find a solution to this, and your support is priceless!!

Again, many thanks to you all!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Tom Sparks-2
On 15/05/2020, Ram Shaffir <[hidden email]> wrote:

>> You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
>> h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the CPU
>> power and the USB bus cant
>> handle 248.583875 Mbytes/s
>
> Hmm... any suggestions on how to make it work? A different HW between the
> GoPro and the PI that does most of the encoding? Something like this:
> https://www.epiphan.com/products/avio-hd/  (this solution does not work with
> the PI according to their support), but maybe something else?
>
> I truly need to find a solution to this, and your support is priceless!!

Why do you need to use a Gopro?

When a webcam can do the job?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir

> Why do you need to use a Gopro?
> When a webcam can do the job?

The project is an addon for existing helmets with gopro cameras. Nothing I can change.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Carl Zwanzig
In reply to this post by Ram Shaffir
On 5/14/2020 7:56 AM, Ram Shaffir wrote:
> Hmm... any suggestions on how to make it work? A different HW between the
> GoPro and the PI that does most of the encoding?
You will need to do some more research on your own. May be that a different
camera, or a different re-coding platform, is needed to fit requirements.
And what are those requirements? Are they sensible for the application? For
instance, 60FPS is not needed for most uses. Do you really need HD? We can't
answer that, nor provide much advice about hardware selection.

Added for the last reply--
If you can't change the camera, and can't change it's settings (can you?),
then you'll have to find a more powerful computer or change the
workflow/parameters. (Is there a reason not to capture in the GoPro and
collect the video later?)

Please remember that this list is about the ffmpeg software, it's not a
general video processing list.

z!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir

> Please remember that this list is about the ffmpeg software, it's not a general video processing list.
>
> z!

Thank you Carl for your reply.
(apologies for any misused of the list)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
In reply to this post by Ram Shaffir
> You are trying to convert a RAW 1080p @ 60fps (1988671 kb/s) stream to
> h.264 504p @ 30fps (2100Kb/s), the raspberry PI *DOES NOT* have the
> CPU power and the USB bus cant handle 248.583875 Mbytes/s

Thanks Tom, how did you calculate the 248.583875 Mbytes/s?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
In reply to this post by Carl Zwanzig
Got some progress, using the command below bypassed the two errors ('[video4linux2,v4l2 @ 0x2015cd0] Error allocating a packet.' And '/dev/video0: Cannot allocate memory') also, CPU is around 25% and recording time is much longer now.

However, I get a new problem and other issues; the major problem is that the output is "fast forward", I guess due to the:
'[video4linux2,v4l2 @ 0xd4cd70] The driver changed the time per frame from 1/30 to 117/7013'

And there are two repeating alerts that I'm not sure their severities:
'ALSA buffer xrun'
and
'Non-monotonous DTS in output stream 0:1;....'

My latest command is:
ffmpeg -y -hide_banner -thread_queue_size 10000 -f alsa -ac 2 -itsoffset 1.5 -i hw:1,0 -r 30 -thread_queue_size 10000 -re -f v4l2 -i /dev/video0 -vcodec h264_omx -acodec ac3 -ab 51k -qmin 16 -qmax 16 -b:v 6M -maxrate:v 100M -bufsize 100M -strict experimental -flags +global_header -f mp4 /usr/ramDisk/h264_omx.mp4
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:1,0':
  Duration: N/A, start: 1589804042.680866, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[video4linux2,v4l2 @ 0xd4cd70] The driver changed the time per frame from 1/30 to 117/7013
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 2077.501466, bitrate: 1988671 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
[h264_omx @ 0xd53160] Using OMX.broadcom.video_encode
Output #0, mp4, to '/usr/ramDisk/h264_omx.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=16-16, 6000 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.35.100 h264_omx
    Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 48 kb/s
    Metadata:
      encoder         : Lavc58.35.100 ac3
[alsa @ 0xd39450] Thread message queue blocking; consider raising the thread_queue_size option (current value: 10000)
[alsa @ 0xd39450] ALSA buffer xrun. 8960kB time=00:00:31.50 bitrate=2329.5kbits/s speed=0.554x    
[alsa @ 0xd39450] ALSA buffer xrun. 9472kB time=00:00:35.06 bitrate=2213.1kbits/s speed=0.552x    
[alsa @ 0xd39450] ALSA buffer xrun. 9984kB time=00:00:39.38 bitrate=2076.8kbits/s speed=0.553x    
[alsa @ 0xd39450] ALSA buffer xrun.10496kB time=00:00:42.55 bitrate=2020.7kbits/s speed=0.55x    
[alsa @ 0xd39450] ALSA buffer xrun.11520kB time=00:00:48.76 bitrate=1935.4kbits/s speed=0.547x    
[alsa @ 0xd39450] ALSA buffer xrun.13312kB time=00:00:51.99 bitrate=2097.5kbits/s speed=0.546x    
[alsa @ 0xd39450] ALSA buffer xrun.15872kB time=00:00:56.05 bitrate=2319.5kbits/s speed=0.549x    
[alsa @ 0xd39450] ALSA buffer xrun.17152kB time=00:00:59.03 bitrate=2380.3kbits/s speed=0.553x    
[alsa @ 0xd39450] ALSA buffer xrun.17920kB time=00:01:01.97 bitrate=2368.7kbits/s speed=0.549x    
[alsa @ 0xd39450] ALSA buffer xrun.22272kB time=00:01:05.76 bitrate=2774.3kbits/s speed=0.556x    
[alsa @ 0xd39450] ALSA buffer xrun.25344kB time=00:01:10.02 bitrate=2965.0kbits/s speed=0.558x    
[alsa @ 0xd39450] ALSA buffer xrun.26368kB time=00:01:13.13 bitrate=2953.4kbits/s speed=0.558x    
[alsa @ 0xd39450] ALSA buffer xrun.26880kB time=00:01:15.82 bitrate=2904.0kbits/s speed=0.554x    
[alsa @ 0xd39450] ALSA buffer xrun.27904kB time=00:01:19.53 bitrate=2874.1kbits/s speed=0.553x    
[alsa @ 0xd39450] ALSA buffer xrun.29184kB time=00:01:21.55 bitrate=2931.3kbits/s speed=0.551x    
[alsa @ 0xd39450] ALSA buffer xrun.29440kB time=00:01:23.27 bitrate=2896.2kbits/s speed=0.552x    
[mp4 @ 0xd51e60] Non-monotonous DTS in output stream 0:1; previous: 4014288, current: 4014166; changing to 4014289. This may result in incorrect timestamps in the output file.
[mp4 @ 0xd51e60] Non-monotonous DTS in output stream 0:1; previous: 4014289, current: 4014138; changing to 4014290. This may result in incorrect timestamps in the output file.
[mp4 @ 0xd51e60] Non-monotonous DTS in output stream 0:1; previous: 4014290, current: 4014163; changing to 4014291. This may result in incorrect timestamps in the output file.
[alsa @ 0xd39450] ALSA buffer xrun.31744kB time=00:01:26.67 bitrate=3000.4kbits/s speed=0.55x    
[alsa @ 0xd39450] ALSA buffer xrun.37888kB time=00:01:30.91 bitrate=3413.9kbits/s speed=0.552x    
[alsa @ 0xd39450] ALSA buffer xrun.38656kB time=00:01:33.21 bitrate=3397.0kbits/s speed=0.549x    
frame= 2840 fps= 16 q=-0.0 Lsize=   39185kB time=00:01:37.30 bitrate=3298.9kbits/s speed=0.564x    
video:38681kB audio:452kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.131004%
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Ram Shaffir
And this time without the ' -hide_banner ' (Sorry Carl)

ffmpeg -y -thread_queue_size 10000 -f alsa -ac 2 -itsoffset 1.5 -i hw:1,0 -r 30 -thread_queue_size 10000 -re -f v4l2 -i /dev/video0 -vcodec h264_omx -acodec ac3 -ab 51k -qmin 16 -qmax 16 -b:v 6M -maxrate:v 100M -bufsize 100M -strict experimental -flags +global_header -f mp4 /usr/ramDisk/h264_omx.mp4


ffmpeg version 4.1.4-1+rpt7~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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+rpt7~deb10u1' --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
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:1,0':
  Duration: N/A, start: 1589836865.427142, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[video4linux2,v4l2 @ 0x230cd60] The driver changed the time per frame from 1/30 to 117/7013
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 320.317585, bitrate: 1988671 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 1988671 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> ac3 (native))
Press [q] to stop, [?] for help
[h264_omx @ 0x2313150] Using OMX.broadcom.video_encode
Output #0, mp4, to '/usr/ramDisk/h264_omx.mp4':
  Metadata:
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=16-16, 6000 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.35.100 h264_omx
    Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 48 kb/s
    Metadata:
      encoder         : Lavc58.35.100 ac3
frame=  339 fps= 16 q=-0.0 Lsize=    2758kB time=00:00:11.26 bitrate=2005.7kbits/s speed=0.529x    
video:2694kB audio:57kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.269963%
Exiting normally, received signal 2.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Newbie needs help on capture video/audio using ffmpeg on RPI

Carl Eugen Hoyos-2
Am Mo., 18. Mai 2020 um 23:22 Uhr schrieb Ram Shaffir <[hidden email]>:

> ffmpeg version 4.1

This is more than eighteen months old.
I don't know if this makes any difference for your problem but it
is certainly a strong reason not to spend too much time on it.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
12