Page 1 of 30 12311 ... LastLast
Results 1 to 10 of 296

Thread: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

  1. #1
    Join Date
    Jul 2008
    Beans
    130

    encode-handheld.pl v5.3 (encodes PSP, Zune, iPod, cell phone) using ffmpeg.

    My newest released version of encode-handheld.pl ( v5.3 )

    Includes binaries for ffmpeg and AtomicParsley for MacOS and Linux.

    (copy bins to /usr/local/bin)

    Download via RS old Version 4.8. Some extra Tools included.

    Download via RS Version 5.2. Includes new ffmpeg, super new AtomicParsley and script.

    updated script only for 5.3. fixes bugs and adds features. next rev will probably feature better dvd support for audio channel remapping and extracting/encoding for apple tv, like it does support MKV currently.

    Download script version 5.3.

    -HR

    ----------------------------------------------------------------------
    Code:
    ./encode-handheld-5.0.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.
        PSP 640x480 wide encoder.
        iPod 720x576 16:9 "PAL DVD" encoder
        iPod 720x480 16:9 "NTSC DVD" encoder
        iPod 640x480 16:9 "near DVD" encoder
        iPod 480x320 16:9 "half DVD" encoder
        iPod 320x240 19:9 wide encoder
        AppleTV encoder (use -b for better results)
        Zune 30GB Windows Media 8 A/V encoder.
        Cell phone 176x144 encoder.
    
        usage: ./encode-handheld-5.0.pl [-hl] [-t psp|psp640|psp640wide|psp720|pspavi|ipod|ipodwide|ipod480|ipod640|ipoddvd|ipodntscdvd|ipodpaldvd|appletv|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)
         -A        : Auto 16:9 the video.  Your video will be cropped horizontally or vertically until
                     it is at a 16:9 AR.  Works with regular cropping commands as well.  You can crop
                     a DVD matte off and still use -A to force 16:9.
         -g        : letterbox video to next macro block height (ex 480x202 -> 480x208)
         -r        : frame rate (24000/1001 or 30000/1001 are suggested override values) (default 24000/1001)
         -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)
                     when encoding audio from MKV this controls gain in decibels
                     I don't advise going over +20, as that is extremly loud.  +10 is fine.
         -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, default 2)
         -M        : Extract audio from Matroska video files (requires signifcant disk space)
                     only use this for MP4 files destination files.
         -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.
         -X        : force widescreen DVD detection
                         --  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)
         -D str    : long 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-5.0.pl -t psp -l -s 10101 -n "My Video" -f file.avi -o 768 -c 120
        example: ./encode-handheld-5.0.pl -t psp -f file.avi
        example: ./encode-handheld-5.0.pl -t psp -f file.avi -n "hookah"
        example: ./encode-handheld-5.0.pl -t zune30 -f file.avi
        example: ./encode-handheld-5.0.pl -t zune30 -f file.avi -n "hookah"
        example: ./encode-handheld-5.0.pl -t ipod -f file.avi
        example: ./encode-handheld-5.0.pl -t ipod -f file.avi -n "hookah"
        example: ./encode-handheld-5.0.pl -t 3g2 -f tvshow.avi -n "TV Show s04e16" -r 24000/1001
        example: ./encode-handheld-5.0.pl -t psp -pi -f tvshow.avi -n "tvshow s01e13" -o 512 -r 24000/1001 -d "Jedi Crash" -q "TV-PG"
        example: ./encode-handheld-5.0.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-5.0.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."
    Last edited by HolyRoses; March 5th, 2010 at 04:05 AM.

  2. #2
    Join Date
    Oct 2007
    Location
    Italy
    Beans
    501
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    zune? well linux handle only wmav2 ..and wmv2 so quality is very poor...
    on windows is wmv9 version 2.... it would be better leave zune convertion , this my point of view

  3. #3
    Join Date
    Jul 2008
    Beans
    130

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    yea, it is crappy in comparison to the h264. I bumped up the bit rate to 512kb and it looks good enough to watch though in my opinion. Kids seem to think its passable.

    The newer zunes though can play h264 video however and the ipod settings should be OK. I dont have a newer zune though to play with.

    The wmv2 & wmav2 that come with the apt-get version of ubuntu won't work very well at all. I tried. You need a newer rev of ffmpeg if you want to do that kind of encoding.

    -HR

  4. #4
    Join Date
    Feb 2005
    Location
    Cleveland, OH
    Beans
    232
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    Does this take advantage of multiple cores? I built my ffmpeg with --enable-pthreads but it doesn't look like it's using multiple cores. Maybe there should be an option to use ffmpeg's

    `-threads count'
    Thread count.

    option.

  5. #5
    Join Date
    Oct 2007
    Location
    Italy
    Beans
    501
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    it's a codecs problem only xvid and 264 codec can handle dual or more core , if you use others ffmpeg or mencoder will not use multicore

  6. #6
    Join Date
    Dec 2007
    Beans
    5

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    Thanks this actually seems to encode videos which can be played directly on my Zune, but the problem I see is that it sometimes lags and skips in audio and video. Anyone else experience this?

  7. #7
    Join Date
    Jul 2008
    Beans
    130

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    If you are using the the ffmpeg that comes with ubuntu then yes you will experience freakyness with WMV encoding. I suggest you update to the latest svn for both ffmpeg and x264.

    I have a much improved version of this script I should get around to posting, I need to clean up something though and the newest svn ffmpeg has some changes that make it not work properly again.

  8. #8
    Join Date
    Sep 2006
    Beans
    3,707

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    You could probably use ffmpeg from the Medibuntu repository instead of compiling your own.

    Own horn tootage - if you want to compile ffmpeg and x264:
    HOWTO: Compile the latest ffmpeg and x264 from source

  9. #9
    Join Date
    Jul 2008
    Beans
    130

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    I was going to suggest your guide. heck I even followed it

    Anyhow, if you encode PSP, this about the best darn thing there is. Well my newer script has 2 pass encoding options and iphone and ipod touch support as well.

    -HR
    Last edited by HolyRoses; September 12th, 2008 at 02:11 AM.

  10. #10
    Join Date
    Jul 2008
    Beans
    130

    Re: encode-handheld.pl v1.8 (encodes for psp, zune, ipod) using ffmpeg.

    Updated script and attachment. It has more features now.

    -HR

Page 1 of 30 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •