[gst-devel] problem negotiating pipeline: avi to mp4 conversion

Stefan Kost ensonic at hora-obscura.de
Mon Sep 10 20:07:21 CEST 2007


Tanim Islam wrote:
> Hi, I am having a problem converting from avi to mp4 format. I have all the 
> necessary plugins (ffmpeg gstreamer pack, etc.). I wish to make my 
> video "ipod-friendly," so i want to convert the video to 320x240 at 29.97 
> fps. Here is my pipeline.
> 
> gst-launch filesrc location=$name.avi ! decodebin name=decoder 
> decoder. ! 'video/x-raw-yuv,format=(fourcc)I420,framerate=29.97/1,width=320,height=240' ! 
> ffmpegcolorspace ! ffenc_mpeg4 bitrate=640000 ! queue ! ffmux_mp4 name=mux ! 
> filesink location=$name.mp4 decoder. ! audioconvert ! faac bitrate=64000 ! 
> queue ! mux.

Can you try
gst-launch filesrc location=$name.avi ! decodebin name=decoder decoder. !
video/x-raw-yuv,format='(fourcc)'I420,framerate=(fraction)'2997/100',width=320,height=240
! ffmpegcolorspace ! ffenc_mpeg4 bitrate=640000 ! queue ! ffmux_mp4 name=mux !
filesink location=$name.mp4 decoder. ! audioconvert ! faac bitrate=64000 !
queue ! mux.

Stefan

> 
> The problem appears to arise in the x-raw-yuv video filter. If I change the 
> filter to 'video/x-raw-yuv,format=(fourcc)I420', then it works. However, the 
> output video is not scaled and the framerate is not renormalized. Anyone know 
> what I am doing wrong here?
> 
> Tanim Islam
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list