Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-16 Thread Christian Ebert
* Mark Filipak (ffmpeg) on Monday, February 15, 2021 at 21:02:33 -0500: On 02/15/2021 06:29 PM, Mike Soultanian wrote: -bigsnip- You can - easily - let the audio stream start with 0 but the problem is that the result will not play in-sync, see the setps documentation. What is 'setps'? A

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-15 Thread Mark Filipak (ffmpeg)
On 02/15/2021 06:29 PM, Mike Soultanian wrote: -bigsnip- You can - easily - let the audio stream start with 0 but the problem is that the result will not play in-sync, see the setps documentation. What is 'setps'? A filter, a protocol, a muxer, what? I've searched through all the docs and

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-15 Thread Mike Soultanian
On 2/15/2021 5:47 PM, Chris Angelico wrote: Not sure if it's the same cause, but a friend of mine has a similar setup, and she had the same sort of problem when streaming on Twitch. Her solution was to set it to 4k 30fps and select recording video mode (without actually recording). ChrisA

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-15 Thread Chris Angelico
On Tue, Feb 16, 2021 at 10:35 AM Mike Soultanian wrote: > > Well.. that was extremely frustrating. I've seriously been going at this > for probably 16 hours, scouring the net for documentation and trying > other people's tutorials, wondering why my setup wasn't working as well > as all the

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-15 Thread Mike Soultanian
Well.. that was extremely frustrating. I've seriously been going at this for probably 16 hours, scouring the net for documentation and trying other people's tutorials, wondering why my setup wasn't working as well as all the examples that described all the cool stuff you could do with ffmpeg. 

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Carl Eugen Hoyos
Am So., 14. Feb. 2021 um 22:27 Uhr schrieb Mike Soultanian : > > On 2/14/2021 12:40 PM, Carl Eugen Hoyos wrote: > > >> Should ffmpeg be able to capture from any capture card > > Only video4linux2 is supported, how well it works depends > > primarily on the kernel driver. > > > > You probably want

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Mike Soultanian
On 2/14/2021 12:40 PM, Carl Eugen Hoyos wrote: Should ffmpeg be able to capture from any capture card Only video4linux2 is supported, how well it works depends primarily on the kernel driver. You probably want a card that provides data in a pix_fmt that your hardware encoder supports. If

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Carl Eugen Hoyos
Am So., 14. Feb. 2021 um 20:49 Uhr schrieb Mike Soultanian : > Should ffmpeg be able to capture from any capture card Only video4linux2 is supported, how well it works depends primarily on the kernel driver. You probably want a card that provides data in a pix_fmt that your hardware encoder

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Mike Soultanian
On 2/14/2021 8:57 AM, Carl Eugen Hoyos wrote: Am So., 14. Feb. 2021 um 17:53 Uhr schrieb Mike Soultanian : On 2/14/2021 3:27 AM, Carl Eugen Hoyos wrote: Please provide this command line including complete, uncut console output to allow us understanding what's going on: $ ffmpeg -ts abs -i

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Carl Eugen Hoyos
Am So., 14. Feb. 2021 um 17:53 Uhr schrieb Mike Soultanian : > > On 2/14/2021 3:27 AM, Carl Eugen Hoyos wrote: > > Please provide this command line including complete, uncut console > > output to allow us understanding what's going on: > > $ ffmpeg -ts abs -i /dev/video0 -f alsa -ac 2 -i

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Mike Soultanian
On 2/14/2021 3:27 AM, Carl Eugen Hoyos wrote: Please provide this command line including complete, uncut console output to allow us understanding what's going on: $ ffmpeg -ts abs -i /dev/video0 -f alsa -ac 2 -i hw:CARD=capture,DEV=0 Sure!  Here you go: *pi@raspberrypi:~ $ ffmpeg -ts abs -i

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Carl Eugen Hoyos
Am So., 14. Feb. 2021 um 09:49 Uhr schrieb Mike Soultanian : > *pi@raspberrypi:~ $ v4l2-ctl --set-fmt-video=width=1280,height=720 * > *pi@raspberrypi:~ $ ffmpeg -f v4l2 -input_format yuyv422 -framerate 30 > -i /dev/video0 -f alsa -ac 2 -i hw:CARD=capture,DEV=0 -c:v libx264 -vf > format=yuv420p -y

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-14 Thread Mike Soultanian
On 2/13/2021 5:36 PM, Carl Eugen Hoyos wrote: It is not possible to synchronize these two streams due to the different start times, test the ts option: https://ffmpeg.org/ffmpeg-devices.html#video4linux2_002c-v4l2 Where do I use the -ts option (audio, video, output, all)?  And are you

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Mike Soultanian
On 2/13/2021 5:36 PM, Carl Eugen Hoyos wrote: It is not possible to synchronize these two streams due to the different start times, test the ts option: https://ffmpeg.org/ffmpeg-devices.html#video4linux2_002c-v4l2 Please find out what top-posting means and avoid it here, Carl Eugen

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Carl Eugen Hoyos
Am So., 14. Feb. 2021 um 01:51 Uhr schrieb Mike Soultanian : > Input #0, video4linux2,v4l2, from '/dev/video0': >Duration: N/A, start: 0.00, bitrate: 442368 kb/s >Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, > 442368 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc >

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Mike Soultanian
Ok, I did a lot more testing and have learned a bit more about my hardware and the various names of audio devices.  Also, I didn't mention it in the previous email, but I did recompile ffmpeg from the latest source.  After a bunch of research and testing I found all of these commands to work:

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Gisbert Haas
Can you post the ffmpeg output with audio input in the command line Sent from my iPhone On 13. Feb 2021, at 11:21, Mike Soultanian wrote:  CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Mike Soultanian
On 2/13/2021 1:54 AM, Gisbert Haas wrote: can you post the full output please. Sorry, I didn't include it because when I have audio it doesn't work.  I have tried *-f alsa -i* with the following: *plughw:2,0*, *hw:CARD=capture,DEV=0*, and *plughw:CARD=capture,DEV=0* and none of them seem to

Re: [FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-13 Thread Gisbert Haas
Hi Mike, can you post the full output please. I had the similar issues and curious if your output looks similar to mine. Btw, in your command line you miss the audio input. Gis. On 2/13/21 1:23 AM, Mike Soultanian wrote: CAUTION: This email originated from outside of the organization. Do

[FFmpeg-user] Trying to stream to rtmp from my rsp4 and a GoPro

2021-02-12 Thread Mike Soultanian
Hey Everyone, I'm trying to stream from my GoPro into a USB capture device through my Raspberry Pi 4 and send the feed up to Twitch or my rtmp server.  After a lot of head banging I realized that there were two things that were messing me up: 1) specifying an audio input seems to break things