Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Optimising, preset-based console video encoder updated

    Reply
    Page 1 of 2 | 1   2   | Next
    aflegg | # 1 | 2006-05-07, 19:49 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    konttori | # 2 | 2006-05-07, 20:29 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aflegg | # 3 | 2006-05-07, 21:34 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aflegg | # 4 | 2006-05-12, 12:40 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Remote User | # 5 | 2006-05-12, 16:28 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aflegg | # 6 | 2006-05-12, 21:31 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    varis | # 7 | 2006-05-12, 23:41 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    aflegg | # 8 | 2006-05-13, 07:20 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by aflegg; 2006-05-13 at 07:23.

     
    aflegg | # 9 | 2006-05-15, 19:53 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    neiljerram | # 10 | 2006-05-18, 08:10 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout