GNOME Bugzilla – Bug 582605
Videobox seems to 'scale' instead of boxing
Last modified: 2009-05-14 12:32:37 UTC
I am running the following pipeline: gst-launch-0.10 uridecodebin uri=file:///home/cschalle/Videos/gravity.mpg ! ffmpegcolorspace ! videoscale ! videorate ! capsfilter caps="video/x-raw-yuv, width=352, height=208, framerate=30000/1001" ! ffmpegcolorspace ! videobox right=23 left=23 ! ffmpegcolorspace ! ffenc_mpeg4 ! avimux ! filesink location=videoboxtest2.avi My expected behaviour is for this pipeline to give me a output video which has a width of 352 and height of 208, with 23pixels of black border on the right and the left. Instead I get a video with the size of 306x208 without any black borders. If I got a video that is 398x208 with 2x23pixel borders that would also be understandable behaviour.
Ok, seems I just missed the 'obvious' that adding pixels equal a negative value ;)