Guest User

Gstreamer pipeline

a guest
Sep 19th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # Sample "dolbycity.vob" downloaded from: http://www.dvdloc8.com/dolbydtsclip.php?clipid=2
  4.  
  5. SRC='filesrc location=dolbycity.vob ! dvddemux name=demux'
  6.  
  7. VIDEO="demux. ! 'video/mpeg' ! queue ! mpeg2dec ! x264enc ! mux."
  8. AUDIO="demux. ! 'audio/x-ac3' ! queue ! ffdec_ac3 ! audioconvert ! 'audio/x-raw-int,channels=2' ! voaacenc ! mux."
  9.  
  10. SINK="avimux name=mux ! filesink location=output.avi"
  11.  
  12. #ARGS="-e -v"
  13. ARGS="-e"
  14.  
  15. eval "gst-launch-0.10 ${ARGS} ${SRC} ${VIDEO} ${AUDIO} ${SINK}"
Add Comment
Please, Sign In to add comment