x264enc, fast play-back

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

x264enc, fast play-back

mustafa
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

Reply | Threaded
Open this post in threaded view
|

Re: x264enc, fast play-back

mustafa
well it works with:

gst-launch v4l2src ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=320,height=240,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=44100,channels=2,depth=16' ! queue \
! audioconvert ! faac ! queue \
! mux. avimux name=mux ! filesink location=test1.avi