encode-handheld-4.0.tar.gz
Category
Uploaded
2009-02-27 23:00:45 GMT
Size
4.89 MiB (5123824 Bytes)
Files
1
Seeders
1
Leechers
0
Hash
0DB9AC245474BD541DCB4214147764D7BA93D01E
BUG FOUND!
There is a bug in this release. The variable for $crop_line is incorrect for the thumbnail generation. Change $cropline to $crop_line at line 1448.
THIS IS NOT FOR NOOBS!
IF YOU DONT KNOW LINUX/UNIX LIKE A PRO, THEN DONT BOTHER.
If VI is your editor of choice then you are not a noob.
If you do know what the hell you are doing, then this is the best there is for this type of application. I have worked hard to make it so.
Next revision will most likely incorporate the features of rip-mkv-audio.pl
Oh this does work on a Mac too, I just posted it in UNIX section this time.
-HR
./encode-handheld.pl -h
PSP & iPod h264 video and AAC audio encoder.
PSP Motion JPG encoder. (22min = 916mb vs 84mb using h264)
PSP 720x480 16:9 & 4:3 encoder.
PSP 640x480 encoder.
Zune 30GB Windows Media 8 A/V encoder.
Cell phone 176x144 encoder.
usage: ./encode-handheld.pl [-hl] [-t psp|psp640|psp720|pspavi|ipod|ipod640|zune|zune30|3g2] [-s XXXXX] [-n title] [-f file]
-h : this (help) message
-v : displays version
-a : hard box the video
(pillarbox and letterbox the video, AR set to AR of screen size)
-g : letterbox video to next macro block height (ex 480x202 -> 480x208)
-r : frame rate (24000/1001 or 30000/1001 are suggested override values)
-l : legacy psp file naming
-s XXXXX : 5 digit legacy numbering sequence
-f file : file to encode
-n title : psp title displayed when using legacy naming
or file is renamed to this value (if AtomicParsley then also atom)
-t type : psp, ipod, zune, zune30, psp640, 3g2 encoding
-o num : volume(gain) 1x=256, 2x=512, 3x=768, 4x=1024 (default: No Change)
-c num : thumbnail capture time in seconds (default: 120)
-z num : encode time in seconds (default: whole thing)
-j num : start encode time in seconds (default: beginning)
-b : encode using b frames (psp only) (default: no)
-p : 2 pass encoding
-i : iPhone & iPod touch PSP compatible profile (switches coder to 0)
-m num : ffmpeg threads (example, dual core: -m2, quad core: -m4)
-x : when using type psp640 it will put contents in 720x480 container
WARNING: as of PSP firmware v5.0 it does not respect the 8:9 PAR.
It will play the video with a 1.5 AR (720/480).
The effect is your video will play 80 pixels wider than it should be.
-- Crop options --
-T num : crop top (must be even number)
-B num : crop bottom (must be even number)
-L num : crop left (must be even number)
-R num : crop right (must be even number)
-- AtomicParsley options --
-N str : name (if not specified then -n is used)
: this option is used for TV shows (-n "Family Guy s07e01" -N "Love Blactually")
: example with quotes in title (-N "There's No "We" Anymore")
-k str : artist (req AtomicParsley and type ipod, psp, 3g2)
-K num/tot : sets tracknum (auto determined, only pass if you want to do a num/tot with example (-K 01/13)
-u str : album (req AtomicParsley and type ipod, psp, 3g2)
-d str : description (req AtomicParsley and type ipod, psp, 3g2)
: example with quotes in description (-d "Escape "quotes" on command line.")
-e str : genre (req AtomicParsley and type ipod, psp, 3g2)
-y value : year (req AtomicParsley and type ipod, psp, 3g2)
: pass 4 digits or pass a year string value to encode a Release Date also.
: see examples below. (If no value is passed then current year is used.)
-q str : US TV & Movie rating (req AtomicParsley and type ipod, psp)
us-tv: "TV-MA, TV-14, TV-PG, TV-G, TV-Y, TV-Y7"
mpaa: "UNRATED, NC-17, R, PG-13, PG, G"
note:
If you end your titles for TV Shows with sXXeXX then it will be parsed correctly as a TV Show.
If you end your titles for Music Videos with mvid then it will be parsed correctly as a Music Video.
crop note:
crop is done to the original video prior to encoding. AR is recalculated on new crop size.
year notes:
If you pass -y XXXX you will get a year timestamp on your MP4 file only.
If you pass -y "string value" you will get a year timetamp and Release Date information on your MP4 file.
All string values are converted to UTC.
Some example valid year strings:
"July 24, 2007 10pm EST"
"Mon Jan 26 12:26:13 EST 2009"
"2009-01-23 21:00:00 EST"
"2009-01-23 9pm EST"
"2009-01-23"
"2009-01-23 EST"
"19 Dec 1994 EST"
"oct 2 1994"
"october 2 1994"
"october 2 1994 EST"
"october 19 EST"
"`date`"
general usage examples:
example: ./encode-handheld.pl -t psp -l -s 10101 -n "My Video" -f file.avi -o 768 -c 120
example: ./encode-handheld.pl -t psp -f file.avi
example: ./encode-handheld.pl -t psp -f file.avi-n "hookah"
example: ./encode-handheld.pl -t zune30 -f file.avi
example: ./encode-handheld.pl -t zune30 -f file.avi -n "hookah"
example: ./encode-handheld.pl -t ipod -f file.avi
example: ./encode-handheld.pl -t ipod -f file.avi -n "hookah"
example: ./encode-handheld.pl -t 3g2 -f tvshow.avi -n "TV Show s04e16" -r 24000/1001
example: ./encode-handheld.pl -t psp -pi -f tvshow.avi -n "tvshow s01e13" -o 512 -r 24000/1001 -d "Jedi Crash" -q "TV-PG"
example: ./encode-handheld.pl -t psp -pi -f rounders.avi -n "Rounders" -o 512 -r 30000/1001 -T 106 -B 102 -L 2 -y 1998 -q R -e Drama -d "Damon plays poker."
example: ./encode-handheld.pl -t psp720 -pb -f rounders.avi -n "Rounders" -o 512 -r 30000/1001 -T 106 -B 102 -L 2 -y 1998 -q R -e Drama -d "Damon plays poker."
Gomagnet 2023.
The data comes from Pirate Bay.