-
05-19-2010 #1
ClipBucket User
- Join Date
- May 2010
- Posts
- 15
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:
toCode:# 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 ";
For HQ 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 -vf 'pad=0:0:0:0:black' ";
Note: Look for the "Function used to convert video in HD format" in the file then scroll down until you see the following code:
toCode://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";
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: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'";
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 helpsFrom 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".
AlexLast edited by av4867; 05-19-2010 at 06:35 PM.
-
05-20-2010 #2
Super Moderator
- Join Date
- Jan 2010
- Location
- Denmark
- Posts
- 846
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
-
05-20-2010 #3
ClipBucket User
- Join Date
- May 2010
- Posts
- 29
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.
-
05-20-2010 #4
ClipBucket User
- Join Date
- May 2010
- Posts
- 91
Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")
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
-
05-20-2010 #5
ClipBucket User
- Join Date
- May 2010
- Posts
- 15
-
05-31-2010 #6
ClipBucket User
- Join Date
- Dec 2009
- Posts
- 94
-
07-05-2010 #7
ClipBucket User
- Join Date
- Feb 2009
- Posts
- 53
Re: Possible fix FFMPEG latest releases (conversion issues "Please use vf=pad")
thanks man this worked pretty well i use ffmpeg version r24053
-
07-06-2010 #8
ClipBucket User
- Join Date
- Mar 2009
- Posts
- 65
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
-
07-07-2010 #9
ClipBucket User
- Join Date
- Jul 2010
- Posts
- 3
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
-
07-14-2010 #10
ClipBucket User
- Join Date
- Jun 2010
- Location
- 127.0.0.1
- Posts
- 15
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Strange behavior when clicking "Upload" navigation button
By rimmie in forum Troubleshooting & "How to" QuestionsReplies: 4Last Post: 03-27-2010, 02:16 AM -
[BUG] "BUG" Total Subscribers not being updated on channels page and view channel.
By orlando2go1 in forum Bugs Reporting & FixesReplies: 0Last Post: 01-29-2010, 01:13 AM




Bookmarks