VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hello I am using the following command:

    #!/bin/bash
    # usage ffmpeg2iphone.sh (SOURCE) (X) (Y)
    ffmpeg -i "$1" -s $2x$3 -threads 0 -vcodec libx264 -level 31 -profile main -acodec libfaac -ac 2 -ar 48000 -ab 160k output.mp4

    And most of the time the file is playable on my phone, but sometimes iTunes won't transfer it. I think I have located the issue, on the files I can play the media info shows:

    "Format settings, GOP : M=4, N=16" (Where the numbers are on occasion different)

    And on the files it can't play, the whole line is missing. Any help from you guys on what to put in, to ensure that the GOP information is there (and/or standardized) for iTunes?
    Quote Quote  
  2. Turned out to be a bad input file I think. I sent it through this and then encoded it with the above post and it works.

    #!/bin/bash

    mencoder "$1" -ovc xvid -xvidencopts bitrate=1024ass=1:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o /dev/null
    mencoder "$1" -ovc xvid -xvidencopts bitrate=1024ass=2:threads=4 -ffourcc XVID -oac mp3lame -lameopts preset=standard -vf harddup -o output.avi
    Quote Quote  



Similar Threads

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