LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2012, 06:34 PM   #1
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
image viewer in X with cli control?


hiho,

Using mplayer, I can control a movie on display :x from a console, ie, key events in the console affect the movie.

Is there a an image viewer that can be used the same way? eg, to pause a slideshow, zoom, previous, etc... My google foo hasn't offered much.

I'm aware of options such as using mencoder to create an avi, then playing back with mplayer. gliv gave me hope, but the --display option returns an error (stating that --display isn't an option...).

I'm also aware of programs that send a key event to the display, but I would prefer a direct approach.

I'm thinking that it may be possible with feh or perhaps display, but I'm stumped.

cheers,
 
Old 07-18-2012, 09:48 PM   #2
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Rep: Reputation: 18
You can do slideshows in mplayer directly. Consult the man page.
Just turn the framerate WAAAY down and point the input at the directory containing your images...er...maybe you list the images on the cmdline with wildcard and drags, etc.
Then just arrow fwd, pause, etc.
Would that work for you?
 
1 members found this post helpful.
Old 07-19-2012, 12:05 AM   #3
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
If I am understanding what you mean, /usr/bin/xv will do what you want. It has keypress controls for almost everything -- next, previous, zoom, maxpect, rotate, etc. And it does slideshows.
 
Old 07-19-2012, 07:42 AM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Original Poster
Rep: Reputation: 277Reputation: 277Reputation: 277
@linuxStudent11

I had already tried mplayer, and it didn't *seem* to accomplish what I was after, however I revisited after your suggestion, and the same command actually worked, though I'll have to tinker a bit to get it exactly how I'm envisioning....

mplayer -mf fps:0.25 mf://path to files/*.JPG

@ttk

as far as I can discern, the key events have to occur on the display window itself, as opposed to key events being entered in the console and being directed to the display. Thanks for your input.

I'm still interested in other possibilities.

cheers,
 
Old 07-21-2012, 01:27 PM   #5
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
Is there a an image viewer that can be used the same way? eg, to pause a slideshow, zoom, previous, etc... My google foo hasn't offered much.
I believe, there are many. Personally, I like qiv [http://qiv.spiegl.de/]. There is build script for it on slackbuilds.org
 
1 members found this post helpful.
Old 07-21-2012, 07:50 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Original Poster
Rep: Reputation: 277Reputation: 277Reputation: 277
Quote:
Originally Posted by s1aw0 View Post
I believe, there are many. Personally, I like qiv [http://qiv.spiegl.de/]. There is build script for it on slackbuilds.org
...except that, as per my original post, *many*, including qiv, DON'T allow one to control the display from the console, as mplayer does.

cheers,
 
Old 07-22-2012, 02:28 AM   #7
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
...except that, as per my original post, *many*, including qiv, DON'T allow one to control the display from the console, as mplayer does.

cheers,
OK, there's a chance I didn't get your question right :-) But qiv allows one to perform the following actions from the keyboard: zoom, rotate, change brightness and contrast, show info about the image, pause the slideshow, go back and forth, select and safely delete images, set an image as a background, move the image in full-screen mode, etc. Actually, everything qiv does, it does either from the command line or from the keyboard, with only a few basic action that can be done with the mouse.
 
Old 07-22-2012, 04:31 AM   #8
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Original Poster
Rep: Reputation: 277Reputation: 277Reputation: 277
Quote:
Originally Posted by s1aw0 View Post
OK, there's a chance I didn't get your question right :-) But qiv allows one to perform the following actions from the keyboard: zoom, rotate, change brightness and contrast, show info about the image, pause the slideshow, go back and forth, select and safely delete images, set an image as a background, move the image in full-screen mode, etc. Actually, everything qiv does, it does either from the command line or from the keyboard, with only a few basic action that can be done with the mouse.
Basically, with qiv, and other programs I've discovered (other than mplayer) the keyboard events are sent to the *display* window, rather than to the console - in other words, I want the console to become the controlling device (sorta like a remote control: what I am attempting to accomplish is to control the display from another device, ie remotely.) If you fire up a video from the cli with mplayer, the video's progress is displayed in the console, and the console accepts the key events (space to pause, pg up or right arrow to progress, etc.) I hope this clarifies what I'm after.

cheers,

Last edited by mrclisdue; 07-22-2012 at 04:33 AM.
 
Old 07-22-2012, 05:03 AM   #9
s1aw0
LQ Newbie
 
Registered: Jun 2012
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by mrclisdue View Post
Basically, with qiv, and other programs I've discovered (other than mplayer) the keyboard events are sent to the *display* window, rather than to the console...
Ah, I see. I misunderstood your question from the very beginning. Sorry.
 
Old 07-22-2012, 06:03 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
Quote:
Originally Posted by mrclisdue View Post
what i am attempting to accomplish is to control the display from another device, ie remotely
for that I can suggest you to have a look at nomacs. It has some heavy dependencies (namely opencv) but might be what you're looking for.
 
1 members found this post helpful.
Old 07-22-2012, 08:50 AM   #11
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Original Poster
Rep: Reputation: 277Reputation: 277Reputation: 277
Quote:
Originally Posted by s1aw0 View Post
Ah, I see. I misunderstood your question from the very beginning. Sorry.
Nary a need to apologize, mate: the mere fact that you've taken the time to post and offer help underscores the purpose of this forum, which is to help ALL readers, current and future, not just the OP.

Furthermore, had your post not elicited clarification on my part, neither of us, nor many others, may have discovered nomacs....which I'll report on in due course.

@ponce

thanx...EDIT - I've perused the extended doc, and this could be it....

cheers,

Last edited by mrclisdue; 07-22-2012 at 09:01 AM. Reason: because I can't shut up...need sleep....
 
Old 07-22-2012, 09:02 AM   #12
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
If can be useful, I prepared a slackbuild (available also with sbopkg, if you use my repository for -current): it's for 0.3.0, but I think it can be used also for building the latest 0.3.2, changing the $VERSION variable.

http://cgit.ponce.cc/slackbuilds/commit/?h=nomacs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackbook 2.0; need CLI pdf viewer Or convert it to HTML/text? linus72 Slackware 5 05-13-2010 04:46 PM
Image Viewer Can't View Image Files. klownska Linux - Software 1 02-27-2006 02:26 AM
what about new image viewer ckult Linux - General 1 04-06-2004 07:34 AM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM
Image Viewer Goll Linux - Software 2 06-24-2003 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration