x264enc, fast play-back

mustafa mustafa.arikan at tut.fi
Fri Aug 12 02:06:31 PDT 2011


I try to record the webcam and the microphone to a avi-File while showing the
video part.
But unfortunately when I apply x264enc and try to play the file with mplayer
it doesnt work.

1. (this is without encoding and works fine)
gst-launch v4l2src !
'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=20/1' \
! tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue \
! videorate ! 'video/x-raw-yuv,framerate=20/1' ! queue \
! mux. pulsesrc
device="alsa_input.usb-faceVsion_FV_Audio-00-Audio.analog-stereo" !
'audio/x-raw-int,rate=48000,channels=2,depth=16' ! queue \
! audioconvert ! queue \
! mux. avimux name=mux ! filesink location=test1.avi

2. (this is with x264enc and the play-back is too fast)
gst-launch v4l2src !
'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=20/1' \
! tee name=t_vid !* queue leaky=1* ! xvimagesink sync=false t_vid. ! queue \
! videorate ! 'video/x-raw-yuv,framerate=20/1' ! *queue leaky=1 !
ffmpegcolorspace ! x264enc* \
! mux. pulsesrc
device="alsa_input.usb-faceVsion_FV_Audio-00-Audio.analog-stereo" !
'audio/x-raw-int,rate=48000,channels=2,depth=16' ! queue \
! audioconvert ! queue \
! mux. avimux name=mux ! filesink location=test1.avi



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/x264enc-fast-play-back-tp3738281p3738281.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list