Raspberry 3b :Use composite video and network stream at the same time #2528

Open
opened 2026-02-28 01:13:50 -05:00 by deekerman · 1 comment
Owner

Originally created by @Nudelnase on GitHub (May 13, 2024).

Hello dear community,

maybe you can help me.

I have connected a USB camera to my Pi 3 B.

Now I want to use the composite output of the Pi (jack) to play the analog video signal on my old analog monitor.

At the same time, I would like to use the stream from the network to stream it to my browser or via VLC.

Question, is it possible to do this at the same time?

Why do I want to do this?

I don't want to have two cameras in one place, one analog and one IP camera.

I have already tried to install MotionEye, the network stream can be viewed on the computer. Unfortunately, I can't activate a picture on the composite output of the Raspberry

Do you have any idea?

Best regards and thanks for your answers.

Translated with DeepL.com (free version)

Originally created by @Nudelnase on GitHub (May 13, 2024). Hello dear community, maybe you can help me. I have connected a USB camera to my Pi 3 B. Now I want to use the composite output of the Pi (jack) to play the analog video signal on my old analog monitor. At the same time, I would like to use the stream from the network to stream it to my browser or via VLC. Question, is it possible to do this at the same time? Why do I want to do this? I don't want to have two cameras in one place, one analog and one IP camera. I have already tried to install MotionEye, the network stream can be viewed on the computer. Unfortunately, I can't activate a picture on the composite output of the Raspberry Do you have any idea? Best regards and thanks for your answers. Translated with DeepL.com (free version)
Author
Owner

@MichaIng commented on GitHub (May 13, 2024):

Good question. Which OS and version do you use?

On older RPi OS, raspivid -t 0 seems to work, and on newer RPi OS rpicam-vid -t 0. I actually thought, that it would be for writing the stream to a video file or streaming it only, but when not defining an output, it seems to shows a "preview" window on the screen.

In case, you might need to install the package:

apt install rpicam-apps

Here are the official docs: https://www.raspberrypi.com/documentation/computers/camera_software.html


EDIT: Ah, now I forgot the "at the same time". This CLI tool of course clocks the camera device from being used by something else like motionEye. As you can read in the docs, you can use raspivid as well to create a network stream, which could then be added to motionEye. But I am not sure whether the video is shown on the monitor as well then. Just test it. Also it may lead to bad performance with higher video quality, due to the additional overhead of a local network stream, instead of having motionEye capturing the stream from the video node directly.

@MichaIng commented on GitHub (May 13, 2024): Good question. Which OS and version do you use? On older RPi OS, `raspivid -t 0` seems to work, and on newer RPi OS `rpicam-vid -t 0`. I actually thought, that it would be for writing the stream to a video file or streaming it only, but when not defining an output, it seems to shows a "preview" window on the screen. In case, you might need to install the package: ```sh apt install rpicam-apps ``` Here are the official docs: https://www.raspberrypi.com/documentation/computers/camera_software.html __________ EDIT: Ah, now I forgot the "at the same time". This CLI tool of course clocks the camera device from being used by something else like motionEye. As you can read in the docs, you can use `raspivid` as well to create a network stream, which could then be added to motionEye. But I am not sure whether the video is shown on the monitor as well then. Just test it. Also it may lead to bad performance with higher video quality, due to the additional overhead of a local network stream, instead of having motionEye capturing the stream from the video node directly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#2528
No description provided.