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

Rtsp from CLi #281

Open
vertcnc opened this issue Feb 22, 2017 · 4 comments
Open

Rtsp from CLi #281

vertcnc opened this issue Feb 22, 2017 · 4 comments

Comments

@vertcnc
Copy link

vertcnc commented Feb 22, 2017

Noob could use some help. I am trying to run this code and it runs fine from the "run" command of the desk top, but if i try it from Terminal Cli nothing, no error. Help please.
screen -dmS camera omxplayer -- live --win "20 20 600 400" rtsp://user:[email protected]:9093/cam/realmonitor?channel=1&subtype=1

@bp2008
Copy link

bp2008 commented Feb 22, 2017

There should be no space between "--" and "live" but I see one in what you entered above.

I'm not familiar with "screen" syntax, but just to confirm, have you tried running omxplayer by itself with the same command line arguments?

I've also noticed omxplayer immediately closes with its "have a nice day" message if the video stream URL is invalid, like if you specify a substream that isn't enabled on the camera (subtype=1 means first sub stream).

@vertcnc
Copy link
Author

vertcnc commented Feb 22, 2017

The space was just a typo in message{sorry). Rstp stream works from the "run" command on the desktop, just not from a script or from the Terminal.

@popcornmix
Copy link
Collaborator

I suspect you'll need quotes around the url or bash will interpret the &

@vertcnc
Copy link
Author

vertcnc commented Feb 23, 2017

popcornmix,
Quotes did the trick, thanks for the help

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

3 participants