Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
9th September 2009, 16:09 | #1 | Link |
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Crop Preview PyGtk App
Don't know if it will very useful to anyone but me... but i cobbled up a very simple PyGtk App to help me with cropping, that let's you change the crop values "on the fly". Apart from the python libraries the app only needs mplayer.
Installing: Just unzip the contents of croppreview.zip; Give "croppreview.py" execution permission either by using your file manager or by typing in the console "chmod +x croppreview.py"; Type in the terminal ./croppreview.py or just double click on the croppreview.py file Notes: I'm not a python programmer, so don't expect much; There's no seeking; Pause/Play sometimes fails; Did i mention that i cobbled up the app ?; If you give it a file mplayer can't open the app borks; This is my first python app, so once again don't expect much. http://rapidshare.com/files/27787547...eview.zip.html EDIT: Made a few changes, nothing major, just some tweaks. To install and run, unzip pycrop.zip and run the bash script (pycrop.sh). And i think i'll leave it like this. Can't really think of any features to add... and to really perfect the app i suspect another approach would have to be used. Last edited by Major_Kong; 21st October 2009 at 00:54. |
10th September 2009, 13:20 | #4 | Link | |
ffx264/ffhevc author
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
|
Quote:
(though in a bash script it can be done with a while loop, though this is not changing crop values while mplayer runs but asking for new ones and previewing and doing so until satisfied) |
|
10th September 2009, 13:50 | #5 | Link | |
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Quote:
(it can also be done in a more 'elegant' fashion by using mplayer's -input file=<filename> switch and a pipe, which is what the app relies on, but that's not 'just running mplayer') Last edited by Major_Kong; 10th September 2009 at 14:44. |
|
13th September 2009, 21:11 | #8 | Link |
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Don't worry, i'm not deluded to the point of thinking that something i cobbled up in a hurry, would make a script guy (or a large number of people for that matter) use a crop previewing gui.
But did you try the app ? |
15th September 2009, 21:52 | #10 | Link |
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
On a related note, you may have noticed that when adjusting the size of the rectangle the video will unpause and pause again. This is the mplayer behaviour when opening it with -slave -idle and -input filename=<PIPE> and sending thru the pipe first a pause command and then a change rectangle size command, is there a way to make mplayer keep the video paused ?
|
25th September 2009, 22:35 | #11 | Link | |
Registered User
Join Date: Jun 2007
Location: Earth
Posts: 51
|
Quote:
PS: Made a few changes to the app, just some tweaks mostly. Last edited by Major_Kong; 25th September 2009 at 22:40. |
|
|
|