Closed Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2010
    Posts
    15

    Exclamation Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Latest versions of FFMPEG have been having conversion issues for myself and a few people here on the forums i've noticed.... I found that the issue is exactly as it says: "Please use vf=pad."

    I currently use FFmpeg version SVN-r23153

    FFmpeg dev's evidently changed the way it recognizes it's filters for padding. I edited the ffmpeg.class.php file in /includes/classes/conversion....

    What I had to do was change certain parameters:

    For normal video conversion:

    Code:
    # video size, aspect and padding
    		$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
    		$opt_av .= " -s {$width}x{$height} -aspect $ratio -padcolor 000000 -padtop $pad_top -padbottom $pad_bottom -padleft $pad_left -padright $pad_right ";
    to

    Code:
    # video size, aspect and padding
    		$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, 
    
    $pad_right );
    		$opt_av .= " -s {$width}x{$height} -aspect $ratio -vf 'pad=0:0:0:0:black' ";
    For HQ video conversion:

    Note: Look for the "Function used to convert video in HD format" in the file then scroll down until you see the following code:

    Code:
    //Calculation Size Padding
    			$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, $pad_left, $pad_right );
    			$opt_av .= "-s {$width}x{$height} -aspect  $ratio -padcolor 000000 -padtop $pad_top -padbottom $pad_bottom -padleft $pad_left -padright $pad_right";
    to

    Code:
    //Calculation Size Padding
    			$this->calculate_size_padding( $p, $i, $width, $height, $ratio, $pad_top, $pad_bottom, 
    
    $pad_left, $pad_right );
    			$opt_av .= "-s {$width}x{$height} -aspect  $ratio -vf 'pad=0:0:0:0:black'";
    As you can see i had to change all the padding settings to -vf or video filters. You can change them to however you would like them, but remember they accept new parameters now instead of the old way clip-bucket had designed:

    From http://ffmpeg.org/libavfilter.html#SEC9 :

    Add paddings to the input image, and places the original input at the given coordinates x, y.

    It accepts the following parameters: width:height:y:color.

    Follows the description of the accepted parameters.

    `width, height'
    Specify the size of the output image with the paddings added. If the value for width or height is 0, the corresponding input size is used for the output. The default value of width and height is 0.
    `x, y'
    Specify the offsets where to place the input image in the padded area with respect to the top/left border of the output image. The default value of x and y is 0.
    `color'
    Specify the color of the padded area, it can be the name of a color (case insensitive match) or a 0xRRGGBB[AA] sequence. The default value of color is "black".
    There are also other video filters on that webpage if you wanted to make even more changes to your page. Anyone having conversion issues with later versions that are saying "Please use vf=pad" then this should hopefully fix it. If you have questions feel free to ask! Hope this helps

    Alex
    Last edited by av4867; 05-19-2010 at 06:35 PM.

  2. #2
    Join Date
    Jan 2010
    Location
    Denmark
    Posts
    846

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Thanks man
    I'm sure you just made a bunch of people happy.
    For those not wanting to go through with that, this is one of the latest versions which actually work with clipbucket without any mods: http://euclid.kreden.dk/ffmpeg-r22923.tar.gz
    Note that it is a sourcecode version, will need to compile it.
    I just might lend a hand, but please don't PM me if you think someone else might also benefit from the answer

  3. #3
    Join Date
    May 2010
    Posts
    29

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    I would like to POST that THIS WORKS. I am using r23151 and its working fine. There are a few bugs though

    1) even though the video plays the description everywhere says 00:01 (1 second) but it will play the entire thing
    2) The video render thing never changed to successful it always says processing.

  4. #4

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Quote Originally Posted by bigstack View Post
    I would like to POST that THIS WORKS. I am using r23151 and its working fine. There are a few bugs though

    1) even though the video plays the description everywhere says 00:01 (1 second) but it will play the entire thing
    2) The video render thing never changed to successful it always says processing.
    Is your cron jobs setup correct? The videos need to be verified to display the correct running time and change to status from processing to succesfull.
    If you're trying to convert long videos there is a bug and the videos won't be verified. See here for more info: http://forums.clip-bucket.com/showth...0019#post20019

  5. #5
    Join Date
    May 2010
    Posts
    15

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Quote Originally Posted by bigstack View Post
    I would like to POST that THIS WORKS. I am using r23151 and its working fine. There are a few bugs though

    1) even though the video plays the description everywhere says 00:01 (1 second) but it will play the entire thing
    2) The video render thing never changed to successful it always says processing.

    I'm glad that it worked for your video conversion, however it shouldn't be related at all to the actual display time. The guys post above seems like it should do the trick for you.

  6. #6
    Join Date
    Dec 2009
    Posts
    94

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Quote Originally Posted by oUTSKIRTs View Post
    Thanks man
    I'm sure you just made a bunch of people happy.
    For those not wanting to go through with that, this is one of the latest versions which actually work with clipbucket without any mods: http://euclid.kreden.dk/ffmpeg-r22923.tar.gz
    Note that it is a sourcecode version, will need to compile it.
    You said i have to need to compile it but i'm not an expert so cuold you please tell me how to do?

  7. #7
    Join Date
    Feb 2009
    Posts
    53

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    thanks man this worked pretty well i use ffmpeg version r24053

  8. #8

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Fixed my ffmpeg conversion problems to, Thanks

    Code:
    FFmpeg version SVN-r23100, Copyright (c) 2000-2010 the FFmpeg developers
      built on May 15 2010 13:05:37 with gcc 4.4.4
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --enable-avfilter-lavf --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
      libavutil     50.15. 2 / 50.15. 2
      libavcodec    52.67. 0 / 52.67. 0
      libavformat   52.62. 0 / 52.62. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.20. 0 /  1.20. 0
      libswscale     0.10. 0 /  0.10. 0
      libpostproc   51. 2. 0 / 51. 2. 0

  9. #9
    Join Date
    Jul 2010
    Posts
    3

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Fix .. Thanks..

    # ffmpeg -version
    FFmpeg version SVN-r24078, Copyright (c) 2000-2010 the FFmpeg developers
    built on Jul 7 2010 14:45:22 with gcc 4.4.3
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    FFmpeg SVN-r24078
    libavutil 50.20. 0 / 50.20. 0
    libavcodec 52.79. 1 / 52.79. 1
    libavformat 52.73. 0 / 52.73. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.20. 1 / 1.20. 1
    libswscale 0.11. 0 / 0.11. 0
    libpostproc 51. 2. 0 / 51. 2. 0

  10. #10
    Join Date
    Jun 2010
    Location
    127.0.0.1
    Posts
    15

    Default Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")

    Quote Originally Posted by oUTSKIRTs View Post
    Thanks man
    I'm sure you just made a bunch of people happy.
    For those not wanting to go through with that, this is one of the latest versions which actually work with clipbucket without any mods: http://euclid.kreden.dk/ffmpeg-r22923.tar.gz
    Note that it is a sourcecode version, will need to compile it.
    How do i install this on my server, any instructions? thank you

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Strange behavior when clicking "Upload" navigation button
    By rimmie in forum Troubleshooting & "How to" Questions
    Replies: 4
    Last Post: 03-27-2010, 02:16 AM
  2. Replies: 0
    Last Post: 01-29-2010, 01:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

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