Hi,
I'm looking for a command line argument to do the following 1. Read a .mpg file 2. Transcode the video component to mpeg4 (using ffenc_mpeg4) 3. Transcode the audio component to mp3 4. mux this to an AVI file. I know that I can use the following code to create a mp3 transcoded file using ffenc_libmp3lame (currently im just using a mp3 file as input. gst-launch filesrc location=Desktop/nana\ patekar.mp3 ! decodebin name= dec dec. ! queue ! audioconvert ! ffenc_libmp3lame ! filesink location=Desktop/nana.mp3 I used this to get the video component in mpeg4 encoding in an AVI file. gst-launch filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ Name.mpg ! decodebin name= dec dec. ! queue ! ffenc_mpeg4 ! filesink location=Desktop/Rage_ gstreamer_v.avi I just dont know how to do it together. I want something that would take this file 'filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ Name.mpg' demux it and use the 'ffenc_mpeg4' and similarly 'audioconvert ! ffenc_libmp3lame' and use 'avimux' to create an avi. Could someone help me out here? Kaustubh ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
I'm looking for a command line argument to do the following 1. Read a .mpg file 2. Transcode the video component to mpeg4 (using ffenc_mpeg4) 3. Transcode the audio component to mp3 4. mux this to an AVI file. I know that I can use the following code to create a mp3 transcoded file using ffenc_libmp3lame (currently im just using a mp3 file as input. gst-launch filesrc location=Desktop/nana\ patekar.mp3 ! decodebin name= dec dec. ! queue ! audioconvert ! ffenc_libmp3lame ! filesink location=Desktop/nana.mp3 I used this to get the video component in mpeg4 encoding in an AVI file. gst-launch filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ Name.mpg ! decodebin name= dec dec. ! queue ! ffenc_mpeg4 ! filesink location=Desktop/Rage_ gstreamer_v.avi I just dont know how to do it together. I want something that would take this file 'filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ Name.mpg' demux it and use the 'ffenc_mpeg4' and similarly 'audioconvert ! ffenc_libmp3lame' and use 'avimux' to create an avi. Could someone help me out here? Kaustubh ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Kaustubh Khade wrote:
> Hi, > > I'm looking for a command line argument to do the following > > 1. Read a .mpg file > 2. Transcode the video component to mpeg4 (using ffenc_mpeg4) > 3. Transcode the audio component to mp3 > 4. mux this to an AVI file. > > I know that I can use the following code to create a mp3 transcoded file > using ffenc_libmp3lame (currently im just using a mp3 file as input. > gst-launch filesrc location=Desktop/nana\ patekar.mp3 ! decodebin name= dec > dec. ! queue ! audioconvert ! ffenc_libmp3lame ! filesink > location=Desktop/nana.mp3 > > I used this to get the video component in mpeg4 encoding in an AVI file. > gst-launch filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ > In\ The\ Name.mpg ! decodebin name= dec dec. ! queue ! ffenc_mpeg4 ! > filesink location=Desktop/Rage_gstreamer_v.avi > > I just dont know how to do it together. > > I want something that would take this file > 'filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ > Name.mpg' > > demux it and use the 'ffenc_mpeg4' and similarly 'audioconvert ! > ffenc_libmp3lame' and use 'avimux' to create an avi. > > Could someone help me out here? > > Kaustubh > > gst-launch-0.10 filesrc location=Desktop/Rage\ Against\ The\ Machine\ -\ Killing\ In\ The\ Name.mpg ! decodebin name=dec avimux name=avm dec.src0 ! queue ! ffenc_mpeg4 ! avm.video_0 dec.src1 ! queue ! ffenc_libmp3lame ! avm.audio_0 avm.src ! filesink location=/Desktop/Rage_gstreamer_av.avi (untested) Assumes that src0 corresponds to video tracks and src1 to audio tracks (which may or may not be the case, but usually it is). ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi LRN,
Sorry for the late reply. I tried the command you suggested, but gstreamer gives me this 'Setting pipeline to PAUSED ... Pipeline is PREROLLING ...' and then stalls. Dont rightly know why this is happening. I'd encountered this before with my own adaptations and didnt find a reason why. Any ideas? 2009/10/6 LRN <[hidden email]>
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |