Notices


Reply
Thread Tools
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#1
Hi,

I've updated my optimising, preset-based console video encoder:

http://www.bleb.org/software/770/#encode


Updated in this version:
  1. Guess a suitable frame rate for crazy Flash Videos (e.g. downloaded from Google Video)
  2. Improve cropping for optimisation
  3. Tweak "best" preset for full-screen video on latest firmware
  4. Auto-detect mencoder features for maximum compatibility

What is it?
  1. Converts any MPlayer-supported input into 770-compatible DivX
  2. Simple user interface for quick conversion
  3. Console-based, so can be used in "Send To" items or other scripts
  4. Preset-based so you say "smallest" or "best" and get video without having to mess around with bitrates, framerates, resolutions etc.
  5. Attempts to guarantee that the output video will always play on the 770, no matter what the input

Any comments or questions, please don't hesitate to let me know. For those who prefer a GUI, konttori's Media Converter is almost certainly better. There are a list of known encoders in the MaemoWiki.

If anyone comes up with any additional presets, I'd love to incorporate them.

Cheers,

Andrew
 
Posts: 1,038 | Thanked: 737 times | Joined on Nov 2005 @ Helsinki
#2
Really nice stuff Andrew!

One thing I was thinking about would be an instruction (or additional script) that people could use to setup your script to automatically convert stuff in a folder to 770 compatible video. This would be nice for dvr people so that whenever your dvr finishes recording, it would automatically make a version for 770 as well.

Well, just an idea
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#3
Good idea. Something straightforward which can be fired off crontab should do; I'll have a think...

One thing I've also thought of is that there's nothing stopping mencoder being ported to the 770. Sure, it'd be slow, but could be handy to have an encoder on the device itself.

Cheers,

Andrew
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#4
Updated to v1.11 (12-May-2006):
  • Enhance "smallest" to better fit 770 screen
  • Add "small" preset (much better audio quality than "smallest", video slightly better)
  • Fix cropping which just didn't work in some instances
 
Posts: 192 | Thanked: 5 times | Joined on Nov 2005 @ Eugene, Oregon
#5
Normally when a fellow gets married & has his first child he kind of backs off the software for a while. While I am sure that you are spending lots of time with your family you also seem to be really inspired lately. We're all glad to see you contributing your time & talents to the 770. I think I speak for virtually everyone here when I say that your contributions are very much appreciated.
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#6
Thanks :-)

Unfortunately work means being away from home a couple of nights a week, so that (should) give me plenty of time to work on stuff. Not done all the things I want yet to my TV pages, content management system or - more 770-related - Sylpheed port; so I think I'm a little behind TBH!

Cheers,

Andrew
 
Posts: 67 | Thanked: 3 times | Joined on Feb 2006
#7
The new preset is

small => { abitrate => 96, vbitrate => 96, width => 240 },

I tried low video bitrates like this as well, but personally I don't like them so much. Of course they save space on the card. Is the audio bitrate of 96 kbps quite a bit of an overkill here?

I mostly have watched anime (cartoons), and here I'm starting to like something like this:

new3 => { abitrate => 96, vbitrate => 200, width => 352 },

Big resolution seems to be good for clarity/sharpness. But I figure there's a huge YMMV in presets, since different videos have different characteristics, not to talk of MMC sizes and personal preferences. For anime/cartoons you don't need so high a bitrate as the frames will have large areas of uniform colour. I suppose if you have lots of action/movement, you need a bit higher bit rate, too...

BTW how about adding an option that only encodes 30 seconds, like in Konttori's MediaConverter? Would help us find good presets quicker.
__________________
icct - internet communication, mobile Linux - http://icct.blogspot.com/
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#8
I'll add your preset as "average" and bump the audio/video up a bit for a "good". The main reason for the "small" preset is that the video bitrate works well enough for presentations etc. (e.g. Google's TechTalks) but the low audio rate can sometimes be less fun (although for mostly speaking, again, it's not too bad).

Adding a 30 second encode is trivial, I was thinking of doing it anyway so thanks for the prod.

--
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Jaffa on #maemo, irc.freenode.net

Last edited by aflegg; 2006-05-13 at 07:23.
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#9
Hi,

I've now added two new presets "average" and "good", based on varis' above. I've also added a "--sample" option (short version, "-s") which only encodes the first 30 seconds of video.

Updated script available from same URL as before:

http://www.bleb.org/software/770/#encode

HTH,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 106 | Thanked: 3 times | Joined on Dec 2005
#10
Hi Andrew,

I just used 770-encode.pl for the first time and it worked beatifully. Many thanks.

The only slight snag is that the volume is very low on the 770. I presume this is a consequence of the volume level being low on the source (DVD), but would it be possible for you to add an option to increase the volume when encoding?

Regards - Neil
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:23.