Results 1 to 6 of 6

Thread: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

  1. #1
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb

    Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    Premise:

    This is how to get turn your [insert video filename here] file into a 480xHHH (ie 480x272), h264 MP4 file that you can drag into iTunes and then sync onto your iP(hone/od Touch) and enjoy wherever you see fit.

    Requirements:

    1. An iP(hone/od Touch)
    2. iTunes

    There are only two other bits of software that you will need:

    1. MPlayer Windows Binary [Source]
    2. NicMP4Box [Windows Binary] [Source]

    Assumptions:

    I'm assuming you are running windows, if you're running *nix I assume you can compile the sources without any problems, and the steps are pretty similar, but I've not tried...


    Pre-Instructions Instructions:

    Extract MPlayer to somewhere simple, say c:\MPlayer, and pop the NicMP4Box.exe file in that directory too.

    Actual Instructions:

    Take a look at the next block of text:

    Code:
    SET input=*INPUT*
    SET output=*OUTPUT*
    SET final=*FINAL*
    SET width=*WIDTH*
    SET height=*HEIGHT*
    
    mencoder %input% -sws 9 -of lavf -lavfopts format=mp4 -vf scale=%width%:%height%,dsize=%width%:%height%,harddup -ovc x264 -x264encopts threads=auto:bitrate=768:vbv_maxrate=1500:vbv_bufsize=2000:nocabac:me=umh:trellis=1:level_idc=30:global_header:pass=1:turbo -oac faac -faacopts mpeg=4:object=2:br=160:raw -channels 2 -srate 48000 -o %output%
    
    mencoder %input% -sws 9 -of lavf -lavfopts format=mp4 -vf scale=%width%:%height%,dsize=%width%:%height%,harddup -ovc x264 -x264encopts threads=auto:bitrate=768:vbv_maxrate=1500:vbv_bufsize=2000:nocabac:me=umh:subq=6:frameref=6:trellis=1:level_idc=30:global_header:pass=2 -oac faac -faacopts mpeg=4:object=2:br=160:raw -channels 2 -srate 48000 -o %output%
    
    nicmp4box -add %output% %final%
    This does 2 passes (higher quality, longer encoding time) of your input file and creates a 480x272 file with a 768k video bitrate (128k audio) in h264 format, in an mp4 container, and then does a magic trick to allow the file to be used with itunes.

    *INPUT* -- This needs to be changed to the location of the input file, for example, if your avi file is called 'foo.avi' and its in the 'c:\bar' directory, this would be "c:\bar\foo.avi" (with quotes).

    *OUTPUT* -- This needs to be changed to where you want your output file to go, along with the .MP4 file extension. example: "c:\output\foo_converted.mp4"

    *FINAL* -- This needs to be changed to the 'final' name of the file, for example "c:\output\foo_complete.mp4"

    *WIDTH* -- This should be set to 480, but you can change it if you really want. No quotes for this one.

    *HEIGHT* -- This should be set by working out the aspect ratio of the original file (ie: original height/width * 480, if in doubt just use 272). No quotes here either.


    Open up notepad, copy/paste that whole block of text in... Then change the *INPUT*, *OUTPUT*, *FINAL*, *WIDTH* and *HEIGHT* values, for example:

    Code:
    SET input="c:\input\clunks_home_movie.avi"
    SET output="c:\output\clunks_home_movie-temp.mp4"
    SET final="c:\output\clunks_home_movie-final.mp4"
    SET width=480
    SET height=272
    Leave the other 3 lines as they are.

    Save it as "convert.bat" (need the quotes, otherwise it'll stick a .txt extension, and thats not very helpful), and stick it in your c:\MPlayer directory.

    Next open a Command Prompt (Start->Run->CMD [ENTER]), and navigate to the MEncoder directory:

    Code:
    cd \MPlayer [ENTER]
    (assuming you extract it to c:\MPlayer)

    Then we want to run the bat file we just created:

    Code:
    C:\MPlayer>convert [ENTER]
    ...and sit back and let the magic happen. oh and the conversion supports smp, so will take advantage of dual/quadcode, so if you've got a superfast rig, you shouldn't have to wait too long


    Once you have your final file, drag it into iTunes, plug in your iP(hone/od Touch) and then sync the movie. All done!




    Credits:

    James Hastings-Trew for this post about Nicmp4box and ipod atoms.

    'Nic' for creating the nicmp4box program.

    All the people who contribute(d) to MPlayer.
    Last edited by streetster; 11-08-2008 at 07:00 PM.

  2. Received thanks from:

    mikerr (11-08-2008)

  3. #2
    Does he need a reason? Funkstar's Avatar
    Join Date
    Aug 2005
    Location
    Aberdeen
    Posts
    19,874
    Thanks
    630
    Thanked
    965 times in 816 posts
    • Funkstar's system
      • Motherboard:
      • Gigabyte EG45M-DS2H
      • CPU:
      • Intel Core2Quad Q9550 (2.83GHz)
      • Memory:
      • 8GB OCZ PC2-6400C5 800MHz Quad Channel
      • Storage:
      • 650GB Western Digital Caviar Blue
      • Graphics card(s):
      • 512MB ATI Radeon HD4550
      • PSU:
      • Antec 350W 80+ Efficient PSU
      • Case:
      • Antec NSK1480 Slim Mini Desktop Case
      • Operating System:
      • Vista Ultimate 64bit
      • Monitor(s):
      • Dell 2407 + 2408 monitors
      • Internet:
      • Zen 8mb

    Re: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    Best re-word your post removing reference to the file name you used.
    Last edited by Funkstar; 10-08-2008 at 09:56 PM. Reason: Obfuscating my suggestion

  4. Received thanks from:

    streetster (10-08-2008)

  5. #3
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb

    Re: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    probably a good shout... cheers

  6. #4
    Registered User
    Join Date
    Aug 2008
    Location
    London
    Posts
    6
    Thanks
    0
    Thanked
    0 times in 0 posts
    • nicobelich's system
      • Motherboard:
      • ASUS =)
      • CPU:
      • 3.0GHz Core 2 Duo
      • Memory:
      • 4 GB Kingston
      • Storage:
      • 1TB HDD
      • Graphics card(s):
      • 2x512 NVIDIA 8800GTX
      • Operating System:
      • LNX

    Re: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    does this work with the Apple iPhone 3G as well?

    cheers

  7. #5
    Technojunkie
    Join Date
    May 2004
    Location
    Up North
    Posts
    2,580
    Thanks
    239
    Thanked
    213 times in 138 posts

    Re: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    anyway to automate the "drag into itunes" part ?

  8. #6
    cat /dev/null streetster's Avatar
    Join Date
    Jul 2003
    Location
    London
    Posts
    4,138
    Thanks
    119
    Thanked
    100 times in 82 posts
    • streetster's system
      • Motherboard:
      • Asus P7P55D-E
      • CPU:
      • Intel i5 750 2.67 @ 4.0Ghz
      • Memory:
      • 4GB Corsair XMS DDR3
      • Storage:
      • 2x1TB Drives [RAID0]
      • Graphics card(s):
      • 2xSapphire HD 4870 512MB CrossFireX
      • PSU:
      • Corsair HX520W
      • Case:
      • Coolermaster Black Widow
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • DELL U2311
      • Internet:
      • Virgin 50Mb

    Re: Mark's Guide to encoding/transcoding stuff for Apple iP(hone/od Touch)

    Quote Originally Posted by nicobelich View Post
    does this work with the Apple iPhone 3G as well?
    It should do, although i've only tested it on my iPod Touch (2.0 firmware)

    Quote Originally Posted by mikerr View Post
    anyway to automate the "drag into itunes" part ?
    ie if you dont have itunes? erm, i dont know... i've had a quick google and not turned anything useful up, sorry bud

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C2D Overclocking Guide for Beginners
    By Clunk in forum CPUs
    Replies: 14
    Last Post: 07-10-2010, 05:54 PM
  2. C2D Overclocking Guide for Beginners
    By Clunk in forum PC Hardware and Components
    Replies: 908
    Last Post: 17-06-2008, 07:00 PM
  3. A touch of the white stuff.
    By Crazy Cricket in forum Consumer Electronics
    Replies: 2
    Last Post: 08-02-2007, 09:14 PM

Posting Permissions

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