Why not register?


Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]

Author Message
PostPosted: Sun Nov 07, 2010 1:52 pm  Post subject: Screenshots of mkv without a gui?
User avatar
Offline

Site Admin
Joined: Sat Nov 02, 2002 1:35 am
Posts: 19625
Location: En España
Is there a tool for linux that can take screens from an mkv from the command line?

I want to be able to do it from a terminal, even if I don't have a windowed environment.

_________________
Mouse nipple for the win! Trackpoint or death!
Image


Top
 Profile  
PostPosted: Sun Nov 07, 2010 2:17 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

The Ancient One
Joined: Sat Oct 20, 2007 10:31 am
Posts: 3353
Location: Last house on the Right
Do you have VLC setup? This may work: http://forum.videolan.org/viewtopic.php?p=66942#p66942


Top
 Profile  
PostPosted: Sun Nov 07, 2010 3:04 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Site Admin
Joined: Sat Nov 02, 2002 1:35 am
Posts: 19625
Location: En España
No such luck:

jbriggs@jbriggs-media:~/Downloads/complete/Movies/Monsters.2010.720p.HDTV.DD5.1.x264-HDGiRL$ ll
total 4584188
-rw-r--r-- 1 jbriggs jbriggs 4694204183 2010-11-04 03:05 Monsters.2010.720p.HDTV.x264-HDGiRL.mkv
jbriggs@jbriggs-media:~/Downloads/complete/Movies/Monsters.2010.720p.HDTV.DD5.1.x264-HDGiRL$ cd ^C
jbriggs@jbriggs-media:~/Downloads/complete/Movies/Monsters.2010.720p.HDTV.DD5.1.x264-HDGiRL$ locate^C
jbriggs@jbriggs-media:~/Downloads/complete/Movies/Monsters.2010.720p.HDTV.DD5.1.x264-HDGiRL$ vlc --snapshot-prefix img --snapshot-format png --stop-time=10 --snapshot-path `pwd` --no-snapshot-preview Monsters.2010.720p.HDTV.x264-HDGiRL.mkv
VLC media player 1.0.6 Goldeneye
[0x9cb6db0] inhibit interface error: Failed to connect to the D-Bus session daemon: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0x9cb6db0] main interface error: no suitable interface module
[0x9c1e148] main libvlc error: interface "inhibit,none" initialization failed
[0x9cb1788] main interface error: no suitable interface module
[0x9c1e148] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x9c1e148] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x9cb85b8] qt4 interface error: Could not connect to X server
[0x9cb85b8] skins2 interface error: Cannot open display
[0x9cb85b8] skins2 interface error: cannot initialize OSFactory
Remote control interface initialized. Type `help' for help.
m_el[mi_level] == NULL
arrrrrrrrrrrrrg Up cannot escape itself
[0x9ce67e0] a52 decoder: A/52 channels:6 samplerate:48000 bitrate:384000
[0x9d21068] pulse audio output: No. of Audio Channels: 6
[0x9d9e5d0] xvideo video output error: cannot open display
[0x9d9e5d0] x11 video output error: cannot open display
[0x9d9e5d0] fb video output error: cannot get terminal mode (Invalid argument)
[0x9e76b00] glx generic error: cannot open display



^C[0x9ccf510] signals interface error: Caught Interrupt signal, exiting...
status change: ( stop state: 0 )
status change: ( quit )


it plays the film in ASCII though :lol: The commandline switches in that thread aren't in VLC anymore

_________________
Mouse nipple for the win! Trackpoint or death!
Image


Top
 Profile  
PostPosted: Wed Nov 10, 2010 1:06 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

The Ancient One
Joined: Thu Feb 13, 2003 6:07 pm
Posts: 4463
Location: The Cellar
looks like linux is da shit! :lol:

_________________
Image
STR - Dead but not forgotten!


Top
 Profile  
PostPosted: Wed Nov 10, 2010 11:05 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Master Of The Dead Donkey
Joined: Mon Jun 19, 2006 4:01 pm
Posts: 708
mplayer -ss 60 -vo png:z=9 -ao null -sstep 60 $videofile # Generates a screenshot starting 1 minute into the file, and at every minute after that until the end-of-file.

mplayer -ss 1:00:00 -vo png:z=9 -ao null -frames 5 -sstep 10 $videofile # Generates a screenshot staring at 1 hour, and 4 more every 10 seconds after that.


And I think you have asked this question a few times already! :lol:


Top
 Profile  
PostPosted: Thu Nov 11, 2010 7:20 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Site Admin
Joined: Sat Nov 02, 2002 1:35 am
Posts: 19625
Location: En España
don't think i have, i've asked how to take random screens programatically before though.

thanks badger

_________________
Mouse nipple for the win! Trackpoint or death!
Image


Top
 Profile  
PostPosted: Thu Nov 11, 2010 7:56 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Master Of The Dead Donkey
Joined: Mon Jun 19, 2006 4:01 pm
Posts: 708
spudthedestroyer wrote:
i've asked how to take random screens programatically before though


I remember it, because that's when I learned that you can use MPlayer to make screenshots from the commandline. :wink:


Top
 Profile  
PostPosted: Fri Nov 12, 2010 12:37 am  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Demon Of The Abyss
Joined: Wed Mar 03, 2004 2:58 am
Posts: 1103
why would you want something like this anyway?

_________________
Image


Top
 Profile  
PostPosted: Fri Nov 12, 2010 7:54 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Site Admin
Joined: Sat Nov 02, 2002 1:35 am
Posts: 19625
Location: En España
Jynks wrote:
why would you want something like this anyway?


Because all my media is on my media center, nas, etc., and i only ever play it from the media center via my projector. Its very easy for me to ssh in from windows or linux to the media hub, but I have absolutely no need for a x11/windows environment in most cases. I only use a terminal most of the time, so i like to be able to issue a command and scp the result back to my pc (where ever i happen to be).

Then throw in to the fact that I have media in the uk, and on headless boxes in the uk and france; using an x11 or windowing environment over a WAN is hard enough, but editing video is impossible. That is another reason I need a command line tool.

Finally, I've got some ideas for web services that will require server side processing of media.

Ultimately, there's a billion and one use cases where it was very annoying to have to mount shares, scp/ftp, etc. just inspect a video file.

_________________
Mouse nipple for the win! Trackpoint or death!
Image


Top
 Profile  
PostPosted: Fri Nov 12, 2010 7:59 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Demon Of The Abyss
Joined: Wed Mar 03, 2004 2:58 am
Posts: 1103
....

I meant.. why you you want ot have a massive ammount of screen caps from a file.. not why would you use a liniux shell.. (I abandoned windows long long ago)

_________________
Image


Top
 Profile  
PostPosted: Fri Nov 12, 2010 8:06 pm  Post subject: Re: Screenshots of mkv without a gui?
User avatar
Offline

Site Admin
Joined: Sat Nov 02, 2002 1:35 am
Posts: 19625
Location: En España
Jynks wrote:
....

I meant.. why you you want ot have a massive ammount of screen caps from a file.. not why would you use a liniux shell.. (I abandoned windows long long ago)

ah...

For archiving, chapter bookmarks, etc. and for:
viewtopic.php?f=49&t=21980

grep -v Jynks

_________________
Mouse nipple for the win! Trackpoint or death!
Image


Top
 Profile  
Display posts from previous:  Sort by  

All times are UTC [ DST ]

Post new topic Reply to topic  [ 11 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


Moderator: Help Mods

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Frontpage / Forums / Scifi


What's blood for, if not for shedding?