We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

How to play a video from terminal / command line

asked 2015-11-26 08:56:23 +0200

RoestVrijStaal gravatar image

updated 2015-11-26 08:58:25 +0200

Hi,

See title.

I tried jolla-mediaplayer "$HOME/path/to/awesome video.mp4"

Trying it with jolla-gallery and renaming dirs & files to no spaced names didn't work either.

edit retag flag offensive close delete

Comments

If you wanna try LLs Videoplayer...

harbour-videoplayer -p $HOME/pathto/video.mp4
Mced ( 2015-11-28 11:00:37 +0200 )edit

@Mced: Thank you very much. Your solution worked. Almost...

I figured out it's

harbour-videoPlayer -p "$HOME/path/To Video.mp4"

camelCase at the wrong place sigh

LLs Videoplayer autoplays the video rightaway :)

RoestVrijStaal ( 2015-12-03 14:06:47 +0200 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2015-11-26 14:50:46 +0200

yuri gravatar image
 xdg-open  "$HOME/path/to/awesome video.mp4"
edit flag offensive delete publish link more

Comments

almost.....I tried your command it didn't work, in the end, I got it with this;

xdg-open $HOME/Videos/Camera/video.mp4

Now, what would be great is if it would open and play automagically! :)

Spam Hunter ( 2015-11-27 01:39:04 +0200 )edit

@yuri

Unfortunately, xdg-open opens a video. It doesn't start playing the video when it opens it.

@Markkyboy:

I don't feel like to rename every folder nor file to open them with this command. Using double-quotes work at my side.

RoestVrijStaal ( 2015-12-03 14:03:40 +0200 )edit

Who said anything about renaming every folder?, what are you talking about?

Spam Hunter ( 2015-12-03 14:16:35 +0200 )edit

@Markkyboy Unless you set something in the terminal (forgot which constant it is) spaces have to be escaped. And for sure I don't set that constant on purpose because that would likely break other scripts :)

And since I'm using folders and files with spaces, I'd have to rename them when I don't use double-quotes.

RoestVrijStaal ( 2015-12-03 16:38:57 +0200 )edit

@RoestVrijStaal - Then you replace the space with an asterisk when typing the command. Simples

Spam Hunter ( 2015-12-03 17:08:23 +0200 )edit
0

answered 2015-12-03 14:09:03 +0200

RoestVrijStaal gravatar image

updated 2015-12-03 14:09:17 +0200

Well, Thanks to Mced:

harbour-videoPlayer -p "$HOME/path/To Video.mp4"
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2015-11-26 08:56:23 +0200

Seen: 1,120 times

Last updated: Dec 03 '15