![]() |
need video dimensions
I wrote a little program(in python) that makes a mplayer.movie.conf file. this file tells mplayer a specified amount to crop that movie. My program depends of the data widthxheight of the original movie. I am currently useing the program avitype to get this info. The limitation to this method is it only works on avi files not .mp4(I think quictime) files.
I think i could use mplayer somehow to get this data. for example when mplayer plays a mp4 file it gives this output Code:
MOV: longest streams: A: #3 (274000 samples) V: #2 (140148 samples)I have tried Code:
mplayer movie.mp4 > fileIf their was an option like this it would be great Code:
mplayer --info_only movie.mp4I would prefer to do this with python, but may be able to use a c extensible module, or just a program like avitype. edit added later// I have thought about using pymedia, but can't get it to build |
Quote:
|
I read it, that man page is a monster. Thanks for the help :-)
this leads me to an other question. Is there an app that will allow you to search through man pages by keyword? (I have not googled for this answer yet) i have tryed Code:
man somthing > file |
wow that works beautifully, I do not even really have to do much to parse the info out :-)
|
an app? How about man? the less pager in it responds to basic vi commands. load the manpage and try typing "/identify". press n to cycle through results. To be honest i've been using linux daily for about 5 years now. I only found this out about 6 months ago!
|
I have a linux system(freevo) connected to my tv. I like to crop some of the wider screen movies to fill more of my tv screen. This little script will make an mplayer.conf file for individual movies, or whole directorys. Maybe someone may find it useful
Code:
#!/usr/bin/env python |
I made a couple of changes to the original. There was a bug I never noticed before. If you used the absolute path instead of the relative path, it would error out, which in now fixed. Before you were unable to run the program remotely using ssh. I think that was because the program depends on mplayer, since I do not have x11 forwarding it would freeze up at the mplayer command. I changed the video output to this, it seemed to solve the problem
Code:
mplayer -vo nullCode:
#!/usr/bin/env python |
| All times are GMT -5. The time now is 06:06 PM. |