FFMPEG is pixelated

Discussion in 'PHP' started by Nerve, Nov 24, 2007.

  1. #1
    Whenever I convert videos through FFMPEG the videos are very pixelated. Can anyone help?

    Here is how I convert them:
    
    exec("/usr/local/bin/ffmpeg -i '$file' -y -ab 64 -ar 22050 -b 200 -r 25 -s 650*450 '$dest'");
    
    Code (markup):

     
    Nerve, Nov 24, 2007 IP
  2. mindphp

    mindphp Well-Known Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #2
    check ffmpeg install ok ?
     
    mindphp, Nov 25, 2007 IP
  3. Nerve

    Nerve Peon

    Messages:
    467
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, it is installed. Works fine, just the videos are pixelated.

    Should I try mencoder?
     
    Nerve, Nov 25, 2007 IP
  4. EntertainmentScripts

    EntertainmentScripts Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes. MEncoder is a much better option in my opinion. MEncoder produces a smaller file size, better image quality and supports a lot more file extensions than FFmpeg. You will also need to run FlvTool2 on the generated FLV file.
     
    EntertainmentScripts, Nov 25, 2007 IP
  5. Nerve

    Nerve Peon

    Messages:
    467
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Is there a tutorial on how to convert the files using MEncoder and FlvTool2?
     
    Nerve, Nov 25, 2007 IP
  6. EntertainmentScripts

    EntertainmentScripts Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I will send you an example of how to encode a video using MEncoder and FlvTool2.
     
    EntertainmentScripts, Nov 25, 2007 IP
  7. mindphp

    mindphp Well-Known Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #7
    Nerve are you ok ?
     
    mindphp, Nov 26, 2007 IP
  8. Nerve

    Nerve Peon

    Messages:
    467
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No, it still didn't work.
     
    Nerve, Nov 28, 2007 IP