On Mon, Jun 06, 2011 at 02:51:30PM -0500, William Metcalf wrote:
> I have the following gstreamer terminal pipeline which converts ogg
> video to mp4 video file, and it adjusts the resolution to 640X480:
>
> gst-launch filesrc location="c:\\video.ogg" ! oggdemux ! theoradec !
> ffmpegcolorspace ! videorate ! videoscale ! video/x-raw-yuv,
> width=640, \
> height=480 ! ffenc_mpeg4 ! qtmux ! filesink
> location="c:\\video(convert).mp4"
>
> I am attempting to convert it to a c application. I have
> successfully converted almost the entire thing, except that I cannot
> get the video to scale to 640X480. The resulting video file is
> encoded correctly and plays, but the resolution stays at the 720X400
> resolution of the original file.
You're looking for this:
... ! videoscale add-borders=true ! video/x-raw-yuv,width=640,height=480,
pixel-aspect-ratio=1/1 ! ...
If you don't want the letterboxing, you need to crop the video first
using videocrop.
David
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel