Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-20 Thread Ram Shaffir

> 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

The old version I used is part of the latest Buster distro for RPI, I 
recompiled to an updated ffmpeg version and tried again, the same message 
appears:
' [video4linux2,v4l2 @ 0x29d5dd0] The driver changed the time per frame from 
1/30 to 117/7013'

Command:
ffmpeg -loglevel debug -y -thread_queue_size 1 -f alsa -ac 2 -itsoffset 1.5 
-i hw:1,0 -r 30 -thread_queue_size 1 -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 

Debug log:
ffmpeg version git-2020-05-20-86822cf Copyright (c) 2000-2020 the FFmpeg 
developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --extra-cflags=-I/usr/local/include 
--extra-ldflags=-L/usr/local/lib --extra-libs='-lpthread -lm' --arch=armel 
--enable-gmp --enable-gpl --enable-libaom --enable-libass --enable-libdav1d 
--enable-libdrm --enable-libfdk-aac --enable-libfreetype --enable-libkvazaar 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr 
--enable-libssh --enable-libvorbis --enable-libvpx --enable-libzimg 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 
--enable-mmal --enable-nonfree --enable-omx --enable-omx-rpi --enable-version3 
--target-os=linux --enable-pthreads --enable-openssl --enable-hardcoded-tables
  libavutil  56. 46.100 / 56. 46.100
  libavcodec 58. 86.100 / 58. 86.100
  libavformat58. 43.100 / 58. 43.100
  libavdevice58.  9.103 / 58.  9.103
  libavfilter 7. 82.100 /  7. 82.100
  libswscale  5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) 
with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with 
argument '1'.
Reading option '-thread_queue_size' ... matched as option 'thread_queue_size' 
(set the maximum number of queued packets from the demuxer) with argument 
'1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 
'alsa'.
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 '1.5'.
Reading option '-i' ... matched as input url with argument 'hw:1,0'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, 
fraction or abbreviation)) with argument '30'.
Reading option '-thread_queue_size' ... matched as option 'thread_queue_size' 
(set the maximum number of queued packets from the demuxer) with argument 
'1'.
Reading option '-re' ... matched as option 're' (read input at native frame 
rate) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 
'v4l2'.
Reading option '-i' ... matched as input url with argument '/dev/video0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec 
('copy' to copy stream)) with argument 'h264_omx'.
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 '-qmin' ... matched as AVOption 'qmin' with argument '16'.
Reading option '-qmax' ... matched as AVOption 'qmax' with argument '16'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use 
-b:v)) with argument '6M'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with argument 
'100M'.
Reading option '-bufsize' ... matched as AVOption 'bufsize' with argument 
'100M'.
Reading option '-strict' ...Routing option strict to both codec and muxer layer
 matched as AVOption 'strict' with argument 'experimental'.
Reading option '-flags' ... matched as AVOption 'flags' with argument 
'+global_header'.
Reading option '-f' ... matched as option 'f' (force format) with argument 
'mp4'.
Reading option '/usr/ramDisk/h264_omx.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url hw:1,0.
Applying option thread_queue_size (set the maximum number of queued packets 
from the demuxer) with argument 1.
Applying option f (force format) with argument alsa.
Applying option ac (set number of audio channels) with argument 2.
Applying option itsoffset (set the input ts offset) with 

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-18 Thread Tom Sparks
On 17/05/2020, Ram Shaffir  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
>
> Thanks Tom, how did you calculate the 248.583875 Mbytes/s?

Google with the search term 1988671 kbits to Mbytes

> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-18 Thread Carl Eugen Hoyos
Am Mo., 18. Mai 2020 um 23:22 Uhr schrieb Ram Shaffir :

> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-18 Thread Ram Shaffir
And this time without the ' -hide_banner ' (Sorry Carl)

ffmpeg -y -thread_queue_size 1 -f alsa -ac 2 -itsoffset 1.5 -i hw:1,0 -r 30 
-thread_queue_size 1 -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
  avformatconfiguration: --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 

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-18 Thread Ram Shaffir
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 1 -f alsa -ac 2 -itsoffset 1.5 -i 
hw:1,0 -r 30 -thread_queue_size 1 -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: 1)
[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
ffmpeg-user@ffmpeg.org

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-16 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-16 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Carl Zwanzig

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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Tom Sparks
On 15/05/2020, Ram Shaffir  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Tom Sparks
On 14/05/2020, Ram Shaffir  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread 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
  avformatconfiguration: --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 

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-14 Thread Edward Park
Hi,

> you are not setting up the /dev/video0 input correctly see
>  >
> 
> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-13 Thread Tom Sparks
On 14/05/2020, Ram Shaffir  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 1K -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


> 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/100: 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:84a1
> [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/100: 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


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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-13 Thread 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 1K -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
  avformatconfiguration: --prefix=/usr --extra-version='1+rpt7~deb10u1' 
--toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-11 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-11 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-11 Thread 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  On Behalf Of Carl Zwanzig
Sent: Monday, May 11, 2020 11:22 PM
To: ffmpeg-user@ffmpeg.org
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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-11 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Newbie needs help on capture video/audio using ffmpeg on RPI

2020-05-11 Thread 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 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-: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