VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Jan 2004
    Location
    Australia
    Search Comp PM
    Hi I'm seeking latest commandline settings for FFMPEG program and X264 program to produce ipod 5.5 mp4. Don't want to install dotNET, so no WinFF etc... need to roll-my own flags.

    Any suggestions or links ?

    So far I've located these (ffmpeg only) and can't decide what's "good"

    https://forum.videohelp.com/topic330839.html#1768385
    Suggested Xvid iPod command line options.

    ffmpeg -f mp4 -y -vcodec xvid -b 400k -qmax 10 -bufsize 4096 -g 300 -acodec aac -ab 96k -ac 2 -i "Path-to-input-file.avi" -s 320x180 -aspect 16:9 "Path-to-output-file.mp4"
    BTW As you can see, this is for a wide screen input file. A full screen would be -s 320x240 -aspect 4:3

    http://videotranscoding.wikispaces.com/EncodeForIPodorPSP
    Mpeg4 (old command line version, mind you):
    ffmpeg -y -i <infile> -f mp4 -b 1000 -maxrate 1000 -vcodec xvid -qmin 3
    -qmax 5 -s 480x480 -acodec aac -ab 128 <outfile>

    H264 (old command line version, mind you):
    ffmpeg -y -i <infile> -pass 1 -v 1 -vcodec h264 -b 400 -refs 1 -loop 1 -subq 1
    -threads 2 -max_b_frames 0 -level 13 -g 300 -keyint_min 30 -qcomp 0.6 -qmax 35
    -max_qdiff 4 -i_quant_factor 0.71428572 -b_quant_factor 0.76923078
    -rc_max_rate 768 -rc_buffer_size 244 -cmp 1 -s 320x240 -acodec aac -ab 96
    -ar 48000 -ac 2 -f mp4 /dev/null
    ffmpeg -y -i <infile> -pass 2 -v 1 -vcodec h264 -b 400 -refs 5 -loop 1 -deblockalpha 0
    -deblockbeta 0 -parti4x4 1 -partp8x8 1 -partb8x8 1 -me full -subq 6 -brdo 1
    -me_range 21 -chroma 1 -threads 2 -slice 2 -max_b_frames 0 -level 13 -g 300
    -keyint_min 30 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmax 35
    -max_qdiff 4 -i_quant_factor 0.71428572 -b_quant_factor 0.76923078
    -rc_max_rate 768 -rc_buffer_size 244 -cmp 1 -s 320x240 -acodec aac -ab 96
    -ar 48000 -ac 2 -f mp4 <outfile>

    http://rob.opendot.cl/index.php/useful-stuff/psp-video-guide/
    For one pass (newer commandline):
    ffmpeg -i INPUT -acodec libfaac -ab 128k -ar 48000 -s WIDTHxHEIGHT -r FRAME_RATE -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 4M -bufsize 4M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 OUTPUT.mp4

    For two pass (newer commandline):
    ffmpeg -i INPUT -an -pass 1 -s WIDTHxHEIGHT -r FRAME_RATE -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me dia -subq 1 -trellis 0 -refs 1 -bf 1 -b_strategy 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 4k -bufsize 4k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 OUTPUT.mp4

    ffmpeg -i INPUT -acodec libfaac -ab 128k -ar 48000 -pass 2 -s WIDTHxHEIGHT -r FRAME_RATE -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me umh -subq 5 -trellis 1 -refs 2 -bf 1 -b_strategy 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 4k -bufsize 4k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 OUTPUT.mp4

    https://forum.videohelp.com/topic313899-30.html#1643797
    if you want a video size of 320X240 you can use this:
    Command0=""<%AppPath%>\cores\ffmpeg" -y -maxfr 30 -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 13 -fixaspect -s 320x240 -b 600 -maxrate 768 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
    Command1=""<%AppPath%>\cores\ffmpeg" -y -maxfr 30 -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 13 -fixaspect -s 320x240 -b 600 -maxrate 768 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
    Command2="rm "<%OutputFile%>-0.log""
    Command3=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.M4V" "<%TemporaryFile%>_2.M4V" -c QT_H264_QVGA_AAC.ini -t mpg4"
    Command4="rm "<%TemporaryFile%>.M4V""
    Command5=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.M4V" "<%OutputFile%>.M4V" "Camouflage_MOVIE_for_iPod.ini" "<%Title%>""
    Command6="rm "<%TemporaryFile%>_2.M4V""
    Command7=""<%AppPath%>\cores\AddiTunes" "<%OutputFile%>.M4V"

    http://rob.opendot.cl/index.php/useful-stuff/ipod-video-guide/
    1.5Mbit/s 640×480 H.264 videos (for improved quality using TV out)
    For one pass:
    ffmpeg -i INPUT -acodec libfaac -ab 128k -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4

    For two pass:
    ffmpeg -i INPUT -an -pass 1 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions 0 -me epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4

    ffmpeg -i INPUT -acodec libfaac -ab 128k -pass 2 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4

    768kbit/s 320×240 H.264 videos
    For one pass:
    ffmpeg -i INPUT -acodec libfaac -ab 128k -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me umh -subq 5 -trellis 1 -refs 5 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 768k -bufsize 2M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 13 -title SOME_TITLE OUTPUT.mp4

    For two pass:
    ffmpeg -i INPUT -an -pass 1 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions 0 -me epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 768k -bufsize 2M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 13 -title SOME_TITLE OUTPUT.mp4

    ffmpeg -i INPUT -acodec libfaac -ab 128k -pass 2 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +mixed_refs -me umh -subq 5 -trellis 1 -refs 5 -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 768k -bufsize 2M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 13 -title SOME_TITLE OUTPUT.mp4

    2.5Mbit/s 640×480 MPEG-4 SP videos
    For one pass:
    ffmpeg -i INPUT -acodec libfaac -ab 128k -s WIDTHxHEIGHT -vcodec mpeg4 -b BIT_RATE -flags +aic+cbp+mv0+mv4+trell -mbd 2 -cmp 2 -subcmp 2 -g 250 -maxrate 2.5M -bufsize 2M -title SOME_TITLE OUTPUT.mp4

    For two pass:
    ffmpeg -i INPUT -an -pass 1 -s WIDTHxHEIGHT -vcodec mpeg4 -b BIT_RATE -flags +aic+cbp+mv0+mv4+trell -mbd 2 -cmp 2 -subcmp 2 -g 250 -maxrate 2.5M -bufsize 2M -title SOME_TITLE OUTPUT.mp4

    ffmpeg -i INPUT -acodec libfaac -ab 128k -pass 2 -s WIDTHxHEIGHT -vcodec mpeg4 -b BIT_RATE -flags +aic+cbp+mv0+mv4+trell -mbd 2 -cmp 2 -subcmp 2 -g 250 -maxrate 2.5M -bufsize 2M -title SOME_TITLE OUTPUT.mp4


    Cheers
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    Originally Posted by halsboss
    So far I've located these (ffmpeg only) and can't decide what's "good"
    The thing is, in the end,
    only you can.
    It's unlikley someone will do your testing for you.
    You have the material, the software and enough commandline options.
    Now you need to find the time.

    Originally Posted by halsboss
    Any suggestions or links ?
    You seem to have plenty.
    Although you should probably just toss the old stuff, it's ancient.

    Originally Posted by halsboss
    ... need to roll-my own flags.
    Avanti has no net dependencies and is a good gui to roll with your own flags.
    You should try it out when it becomes available again.

    gl
    Quote Quote  
  3. Member
    Join Date
    Jan 2004
    Location
    Australia
    Search Comp PM
    Originally Posted by 45tripp
    The thing is, in the end, only you can.
    It's unlikley someone will do your testing for you.
    You have the material, the software and enough commandline options.
    Now you need to find the time.
    Thanks, yes, just wondered if others have firmer views. No responses for the X264 command line (I'd thought it could produce for ipod but an unsure). Oh well.
    Quote Quote  
  4. Member
    Join Date
    May 2008
    Location
    Canada
    Search Comp PM
    for Ipod 5.5 conversions to be viewed also on TV, I have the choice between 640x480 and ref=1 or 320x240 and ref=5 plus mixed refs.
    Which means, I could probably go for 320x480 and ref=3 and mixed refs.
    For the same bitrate (around 1.5 Mbps), will you go for 640x480 and ref =1 or 320x480 or 448x336 and ref=3 and mixed refs.
    Thx
    Quote Quote  
  5. Banned
    Join Date
    May 2008
    Location
    Luxembourg
    Search Comp PM
    I remembered the Metadata must be repleaced by AtomicParsley if the video size larger than 320x240
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!