Active Topics

 



Notices


Reply
Thread Tools
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#71
If you start a new thread, maybe post a link to it from this thread.

ALSO: Is there any way to arbitrarily resize a video, or are you forced to halve or quarter the size?
We'll be sure and link to it

And yes, mplayer lets you set the x/width value, and then it will set the y/height value according to the aspect ratio, or you can do it the other way around, or you can set the x and the y and ignore the aspect ratio to stretch the video any way you want. It's a very versatile program. But as iliaden mentioned this takes far more CPU than pixel doubling or quadrupling which is hardware accelerated.

On this note, I'm wondering if we should put in a feature that comes from the other end? For a really low resolution video could we call mplayer's built-in deinterlacing/postprocessing functions perhaps?

EDIT: I'm hoping to post up a new version with iliaden's changes tonight, my apologies for the wait
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#72
I was thinking that you could always resize to 240 height x whatever width and then pixel-double it. The problem with simply halving the resolution is that if the resolution is less than 480 high, the halved resolution will be very low, and that looks noticeably ugly. But if you aim for 240 high, then the video will always be exactly doubled, and that looks fine.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#73
Pipeline has a much more robust mime-handler system in this thread. He started a new thread and I didn't notice. This is why it is important to put a forwarding address at the end of the old thread when you're starting a new one!
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#74
Okay, the new version is hosted, sorry it took me so long.

Instructions are as before:
Download: Mopt.tar
Untar with
tar -zxvPf Mopt.tar
Then make executable:
chmod +x /usr/bin/mplayer-opt

This version is identical to the last one iliaden posted, I'm really sorry I haven't been able to make any changes, my schedule is kind of hectic right now.

TODO:
--FIX: Script now crashes if not given a filename as a command line paramenter
--ADD: Support needed for post-processing low-res videos
--ADD: mime-handling needed
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 

The Following User Says Thank You to josiahg777 For This Useful Post:
iliaden's Avatar
Posts: 267 | Thanked: 50 times | Joined on Feb 2008 @ Montreal, Canada
#75
Sorry guys, I'm a bit busy these days. I will have time to work on this only starting sunday... sorry for not being able to help much right now.

TODO (added):
- ADD: parameters to work if entered in any order (not just the first one) [working on it... almost done!]
- ADD: parameter to define output resolution (both halved, quartered, or arbitrary) [I will do it]
- ADD: GUI (anyone ???)
- ADD: *.deb installer packaging
 

The Following User Says Thank You to iliaden For This Useful Post:
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#76
I'll see what I can do about deb packaging... I've been meaning to learn about that :P

And do we really need a GUI? Maybe so... I'll take a look at the source for the existing Mplayer GUI and see if we can maybe make it point to mplayer-opt instead.

I think I'll have some time for these two tomorrow, but I can't make any promises
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#77
Originally Posted by josiahg777 View Post
I'll see what I can do about deb packaging... I've been meaning to learn about that :P
Check out PyPackager. It really is an easy way to make a .deb package. I just did my first package yesterday.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#78
Status update:

FIXED: Script will not crash anymore if it is invoked without any arguments

Added: I had forgotten to add a test to see whether or not the video file actually exists. This is now handled more elegantly.

Still working on:
I'm (slowly) learning PyPackager, but the generated .deb it created for me won't install due to an "Incompatible application package" error. Grrr... I'll work on this later tonight or tomorrow, I need a break.

So, all this said and done, I'll upload an updated version by tomorrow night
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.

Last edited by josiahg777; 2008-06-21 at 06:17.
 

The Following User Says Thank You to josiahg777 For This Useful Post:
iliaden's Avatar
Posts: 267 | Thanked: 50 times | Joined on Feb 2008 @ Montreal, Canada
#79
quick update (for me)

FIXED: Script now crashes if not given a filename as a command line paramenter
you mean that it doesn't crash anymore...

2: I'm going to my brother's after prom. If I am alive sunday, I will post a new part of the script. otherwise, my alcohol system would be cleared of blood...
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#80
Originally Posted by josiahg777 View Post
I'm (slowly) learning PyPackager, but the generated .deb it created for me won't install due to an "Incompatible application package" error. Grrr... I'll work on this later tonight or tomorrow, I need a break.
Make the section user/multimedia

(or whatever the equivalent is, I use dh_make/debhelper and dpkg-buildpackage in scratchbox)
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:38.