IP Camera stream copy to multiple outputs

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

IP Camera stream copy to multiple outputs

Michael Shaffer
I'm using ffmpeg to stream copy from an IP camera to youtube live. I would
also like to save a copy of the video to my hard drive. The problem is the
IP camera only supports one connection at a time. Is there a way to send
ffmpeg to a program that would "multiply" the video so I could use as many
copies as I want? I want to write 3 separate python programs to manage the
different tasks I want to do with the video. One for streaming to youtube.
One for archiving the footage. A third one for experimenting with OpenCV
motion detection on the video.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: IP Camera stream copy to multiple outputs

DopeLabs
assuming h264/aac

ffmpeg -i ipcam -c copy -f flv rtmp://youtube -f mp4 localfile.mp4



> On Dec 18, 2018, at 3:38 01AM, Michael Shaffer <[hidden email]> wrote:
>
> I'm using ffmpeg to stream copy from an IP camera to youtube live. I would
> also like to save a copy of the video to my hard drive. The problem is the
> IP camera only supports one connection at a time. Is there a way to send
> ffmpeg to a program that would "multiply" the video so I could use as many
> copies as I want? I want to write 3 separate python programs to manage the
> different tasks I want to do with the video. One for streaming to youtube.
> One for archiving the footage. A third one for experimenting with OpenCV
> motion detection on the video.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: IP Camera stream copy to multiple outputs

Carl Eugen Hoyos-2
2018-12-18 13:28 GMT+01:00, DopeLabs <[hidden email]>:
> assuming h264/aac
>
> ffmpeg -i ipcam -c copy -f flv rtmp://youtube -f mp4 localfile.mp4

This has the disadvantage of encoding two streams, an alternative
can be the tee muxer.

Please remember not to top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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