ffmpeg problem with creating thumbnail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arena18
    Confirmed User
    • Jan 2013
    • 246

    #1

    ffmpeg problem with creating thumbnail

    I have a tube site and im using this function to generate thumbs from video file


    Code:
    ffmpeg -ss 255 -i test.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 240x180 test.jpg

    Here is thumbs result, this image is just what i need, no border and etc..

    i.imgur.com/ePpVA8E.png

    but sometimes depending on video size i have thumbs like this

    i.imgur.com/VTTESDf.png

    Whats the best way to remove this black space from thumbs, but need to keep thumb size 240x180
    Last edited by arena18; 05-19-2013, 02:43 PM.
    Wordpress Tube Theme - wpXtube Theme - TubeAce Theme
  • Tent Pitcher
    Confirmed User
    • Nov 2012
    • 213

    #2
    You will need to crop the frame/image to a multiple of your thumbnail before you resize it. The problem is that your thumbnail is a different aspect ratio than the source image. Try cropping it to 1200x900 or whatever the closest ratio to your source is.

    Code:
    -vf crop=width:height:x:y
    Tent Pitcher - Adult Search Engine

    Comment

    • arena18
      Confirmed User
      • Jan 2013
      • 246

      #3
      Yes im try something like this, but problems is because i dont know what video resolution user will upload 4:3 or 16:9, so any trick to detect black area and remove it automaticly, than with imagic i can resize and enhance image?

      P.S good example i think you can see on hardsextube, black areas is removed
      Last edited by arena18; 05-20-2013, 04:25 AM.
      Wordpress Tube Theme - wpXtube Theme - TubeAce Theme

      Comment

      • dappz-datton
        Confirmed User
        • Nov 2012
        • 223

        #4
        you need to asking your server support... to fixed that issue on ffmpeg

        Comment

        • arena18
          Confirmed User
          • Jan 2013
          • 246

          #5
          I'm not sure is server fault
          Wordpress Tube Theme - wpXtube Theme - TubeAce Theme

          Comment

          • CPA-Rush
            small trip to underworld
            • Mar 2012
            • 4927

            #6
            u have ffmpeg installed on your cp?

            automatic exchange - paxum , bitcoin,pm, payza

            . daizzzy signbucks caution will black-hat black-hat your traffic

            ignored forever :zuzana designs

            Comment

            • arena18
              Confirmed User
              • Jan 2013
              • 246

              #7
              Sure that i have it, latest version...!
              Wordpress Tube Theme - wpXtube Theme - TubeAce Theme

              Comment

              • CPA-Rush
                small trip to underworld
                • Mar 2012
                • 4927

                #8
                nice

                automatic exchange - paxum , bitcoin,pm, payza

                . daizzzy signbucks caution will black-hat black-hat your traffic

                ignored forever :zuzana designs

                Comment

                Working...