I couldn't find a script that worked like i wanted to so i made this this morning.
How to use:
Need to have:
- mencoder & mplayer: sudo apt-get install mencoder mplayer
put file in your scripts directory, chmod +x to make it executable.
Features:
- It recursively encodes movies in the directory you specify. So if you download two movies it will encode two movies.
- Checks if file has a Mobile directory and that file is inside it. (If it does it skips encoding). (This works especially good for cronjobs.)
- Keeps aspect Ratio of movie! ALWAYS (Ratio's supported: 4:3 16:9 38:20 48:20)
- Language settings for Audio and Subtitles. (Set your subtitle/audio language preferences)
- If video is an MKV and has subtitle it will encode the subtitle dependent on your language-preferences.
- If there is a same named file.srt as the movie it will use this file as the subtitle for the mobile version.
- Ability to specify different fonts or sizes for the subtitle. (The settings provided in my opinion give you the best movie viewing experience on your Android/Ipod/Iphone)
- Keeps size of new files for 20min around 30mb and a movie 250-300mb
- You can use it standalone to encode your existing videos.
Tell me what you think, if you find a bug reply.
* Update v0.2
- Added Functionality that it names the file it is working on to NOTREADYYET-Mobile-filename.ext. After encoding is complete it will name it to Mobile-filename.ext.
- Added: Script detects already encoded files and skips them. Useful for a cronjob on your Movies/Tv directors.
- Fixed Expanding of 37:20 files to height 272, (so it is devisible with 16, so mencoder doesn't error out.)
- Fixed recursion space in filename issues.
* Update v0.3
- Added: Audio language setting
- Added: If there is a same-named .srt in the directory as the video file it will hardcode this subtitle.
- Fixed bugs where encoded files that were renamed in a "Mobile" directory would be encoded again.
Download v0.3 at http://pastebin.com/f672714a5
[Linux] Better Ipod/Android MediaConversion script
[Linux] Better Ipod/Android MediaConversion script
Last edited by Shady on June 23rd, 2009, 7:58 am, edited 1 time in total.