Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pi and sound #827

Open
stefs22 opened this issue Feb 19, 2023 · 1 comment
Open

pi and sound #827

stefs22 opened this issue Feb 19, 2023 · 1 comment

Comments

@stefs22
Copy link

stefs22 commented Feb 19, 2023

I want to test omx to play a couple of my cams at once.

But, i dont get audio? I want audio from one live video, advice?
i go something like:
/usr/bin/omxplayer --win "960,0,1920,540" "rtsp://username:password@ip_address:554/cam/realmonitor?channel=1&subtype=1"
cams works, but not audio, i want audio from one cam.
Also, i want make a script to turn on automatically so i try this for 2 cams:
I create video scrpit
nano video.sh

#!/bin/bash
/usr/bin/omxplayer --win "0,540,960,1080" "rtsp://username:password@ip_address:554/cam/realmonitor?channel=1&subtype=1"

#!/bin/bash
/usr/bin/omxplayer --win "960,540,1920,1080" "rtsp://username:password@ip_address:554/cam/realmonitor?channel=1&subtype=1"

Make the script executable

chmod +x video.sh

Run Script
./video.sh

But only one video is showed, when i turn off one, other turn on.

@stefs22
Copy link
Author

stefs22 commented Feb 21, 2023

I fix this, i need something to disable sound on one cam.
What to type?
So
/usr/bin/omxplayer --win "960,540,1920,1080" "rtsp://username:password@ip_address:554/cam/realmonitor?channel=1&subtype=1", what to type and where?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant