[How to] Create screencaps on linux

Status
Not open for further replies.
Can someone please help me? I did whatever you said in the tutorial. still I can't get it to work.
when I typed mtn in command prompt, I saw that I have ~/.monotone/monotonerc is installed. :(

How can I get it to work. My OS ubuntu 8.04 Hardy heron.
 
is it possible to make screens for .mp4, .mkv files besides .avi ?

yes latest version of mtn works for .3gp, .3g2, .asf, .avi, .dat, .divx, .dsm, .evo, .flv, .m1v, .m2ts, .m2v, .m4a, .mj2, .mjpg, .mjpeg, .mkv, .mov, .moov, .mp4, .mpg, .mpeg, .mpv, .nut, .ogg, .ogm, .qt, .swf, .ts, .vob, .wmv, .xvid.

can anyone tell me how to install it on Centos 5 ??
I dont use CentOS so I cant be sure but Im guessing its pretty much straight forward like almost everything thats done in the console.

Code:
wget http://sourceforge.net/projects/moviethumbnail/files/movie%20thumbnailer%20linux%20binary/mtn-200808a-linux/mtn-200808a-linux.tgz/download
Code:
tar -xzvf mtn-200808a-linux.tgz
cd mtn-200808a-linux
chmod 777 mtn
use google to get a nice font like tahomabd.ttf or arialuni.ttf and put it in mtn-200808a-linux folder

rename your folder to something like "mtn_2008" or anything easier to type.

Code:
mv mtn-200808a-linux/  mtn_2008/
edit your .bashrc file as explained in the original post and if it doesnt work then :

Code:
mtn_2008/mtn file.avi -f mtn_2008/tahomabd.ttf
or

Code:
mtn_2008/mtn *.avi -f mtn_2008/tahomabd.ttf -T
read the documentation for more output options.
 
I personally use the dhyana.pl script on my various Ubuntu 12.04/13.04 systems to achieve pretty much the same thing as the mtn script. If dhyana.pl every croaks on me I'll check this one out, only b/c I have my dhyana.pl script wrapped with my own bash script that uploads the images once created to imgchili and saves the imgchili links as [BBCode] (pretty slick and a major time saver for me).

Dhyana.pl was actually created in CentOS so for me to get it to work on Ubuntu I had some trouble with the fonts, and I'm guessing mika.filestay's trouble is very similar. I do see that the script has a flag property to select a font type, so you'll probably want to start with that:
-f fontfile

On Ubuntu you'll find your all available .ttf (fontfile) in the root of or subdirectories within: /usr/share/fonts/truetype/

PS The SourceForge page has a link to the "Bitstream Cyberbit" TTF download, but the link is dead. I'm sure that TTF can likely be found somewhere else, but either way using the -f fontfile flag that the author of this script provided was very well placed as this provides a simple work-around for such issues :)
 
I personally use the dhyana.pl script on my various Ubuntu 12.04/13.04 systems to achieve pretty much the same thing as the mtn script. If dhyana.pl every croaks on me I'll check this one out, only b/c I have my dhyana.pl script wrapped with my own bash script that uploads the images once created to imgchili and saves the imgchili links as [BBCode] (pretty slick and a major time saver for me).

Dhyana.pl was actually created in CentOS so for me to get it to work on Ubuntu I had some trouble with the fonts, and I'm guessing mika.filestay's trouble is very similar. I do see that the script has a flag property to select a font type, so you'll probably want to start with that:
-f fontfile

On Ubuntu you'll find your all available .ttf (fontfile) in the root of or subdirectories within: /usr/share/fonts/truetype/

PS The SourceForge page has a link to the "Bitstream Cyberbit" TTF download, but the link is dead. I'm sure that TTF can likely be found somewhere else, but either way using the -f fontfile flag that the author of this script provided was very well placed as this provides a simple work-around for such issues :)

I have two bash scripts that use dhyana.pl to generate contact sheets aka thumbnails for every single video file in a folder. It also allows you to specify a png file to place your logo in the top right corner.

If you have a simple apache2 webserver running it will also cURL upload the images into imgChili by invoking the Mihalism Script's remote upload, in other words it copies the contact sheets to your local webserver's /var/www/jpg folder, then curls imgchili.com/remote/?=http://yoursite.com/jpg/yourImage.jpg

Then it takes the imgChili link created after the images are cURLd and runs some regex commands to format them in BBCode. After all videos are thumbnailed and uploaded all the BBCode is then echo'd into your terminal prompt which you can then copy and paste direct from a SSH session into a forum or blog. The bbcode links are also saved into an imgLinks.txt file in case you want to reference them for later use.

http://www.wjunction.com/92-develop...tor-imgchili-uploader-|-3-4-aspect-ratio.html
http://www.wjunction.com/92-develop...or-imgchili-uploader-|-16-9-aspect-ratio.html

Not all Mihalism Script based image hosts will work with this script. For example imgDino doesn't have the remote upload module that imgChili has so this won't work for them.

Also, if you have Chevereto Image Host with a public API enabled I can help you accomplish the same thing as this imgChili script does. Just send me a PM on this as I don't know of a Chevereto image host that has a public API enabled that would like for me to have a bash upload script for it posted on the web. (In other words they could just as easily set the API to private at any time rendering any script I publicly post useless)

And if you like imgur, you can chop off the imgChili cURL upload sections of my script and replace it with imgur's bash upload scripts of which can be found at http://imgur.com/tools/imgurbash.sh and https://github.com/ceryn/img
 
I personally use the dhyana.pl script on my various Ubuntu 12.04/13.04 systems to achieve pretty much the same thing as the mtn script. If dhyana.pl every croaks on me I'll check this one out, only b/c I have my dhyana.pl script wrapped with my own bash script that uploads the images once created to imgchili and saves the imgchili links as [BBCode] (pretty slick and a major time saver for me).

Dhyana.pl was actually created in CentOS so for me to get it to work on Ubuntu I had some trouble with the fonts, and I'm guessing mika.filestay's trouble is very similar. I do see that the script has a flag property to select a font type, so you'll probably want to start with that:
-f fontfile

On Ubuntu you'll find your all available .ttf (fontfile) in the root of or subdirectories within: /usr/share/fonts/truetype/

PS The SourceForge page has a link to the "Bitstream Cyberbit" TTF download, but the link is dead. I'm sure that TTF can likely be found somewhere else, but either way using the -f fontfile flag that the author of this script provided was very well placed as this provides a simple work-around for such issues :)


OK so I just installed mtn on the Ubuntu Server I have on my LAN and holy sh*t its so much faster than dhyana.pl. In fact, I timed it and its over 30 times faster! I'm gonna definitely be rewriting my thumbnail & upload scripts to use mtn from now on! Ill share the code on here in a couple days when its done and I know that I got all the kinks worked out of it.
 
mtn is the greatest, and it does use ffmpeg instead of mplayer although I'm not sure why you wouldn't be able to install mplayer on a VPS that you could install ffmpeg with?

I used to use dhyana.pl but I've since found mtn to be wayyyyyyyy faster at making thumbnails. In fact I even have my my own thumbnailing script that does the following sequentially to all video files in a directory:
  • mtn generates contact sheet (aka movie thumbnail) of the video file
  • mediainfo gets the display aspect ratio of the source video file
  • based on the display aspect ratio it selects one of two logos I have (one for 4:3 the other for 16:9)
  • imagemagick then inserts my logo in the top right hand corner of the contact sheet (aka movie thumbnail) generated by mtn
  • the image is then copied to a temporary & hidden folder on my server's webserver
  • cURL is then used to upload the image into my chevereto based image host
  • both the image's thumbnail & its' link are then parsed into bbcode which then are saved to a local txt file and echo'd into the terminal prompt

I typically run this script across ~25,000 video files on a daily basis with roughly 99.9% success rate (typically a few f-up in the process...)

For the few rare files that mtn does fail on I might eventually invoke the slower dhyana.pl script to make an attempt as a failover, because i have found a few odd videos that mtn can't process that the much slower dhyana.pl can. One of these days I'll get to that :)
 
Status
Not open for further replies.
Back
Top