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

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

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

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

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

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?

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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

[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