Problem with recorded .mkv file (first seconds has some lags)

sina_sh sina.shafai at gmail.com
Thu Nov 19 06:39:59 PST 2015


Hi,

I've developed a pipeline to capture a HD video from my webcam (c930e) and
framegrabber in sync beside the audio streams (this is a university project
for recording the lectures) into two separate containers. when I play the
final recorded video "Webcam.mkv" via ffplay (or even vlc) for the first
7-10 seconds it just flashes and has some lags in playing and some times the
video flickers and gets green (just for a second I get a green screen then
it turns back to normal) what shall I do to fix this problem? 
specially the beginning problem which is really annoying!

here is my pipeline:


gst-launch-1.0 v4l2src do-timestamp=true device=/dev/video0  !
'video/x-raw,format=BGR,width=1024,height=768'  ! videoconvert ! queue !
x264enc ! mux.  pulsesrc
device="alsa_input.usb-Samson_Technologies_Samson_Go_Mic_Direct-00-Direct.analog-stereo"
!  'audio/x-raw,rate=88200,channels=1,depth=24' !  audioconvert  ! 
avenc_aac compliance=experimental ! mux. matroskamux name="mux"  ! filesink
location=/home/sina/Desktop/Recordings/Screen.mp4  v4l2src
device=/dev/video1 ! videorate  !
'image/jpeg,framerate=30/1,width=1920,height=1080' ! queue ! mux2. pulsesrc
device="alsa_input.usb-046d_Logitech_Webcam_C930e_AAF8A63E-02-C930e.analog-stereo"
! 'audio/x-raw,rate=44100,channels=1,depth=24' !  audioconvert !  avenc_aac
compliance=experimental ! queue ! mux2.  matroskamux name="mux2" !  
filesink location=/home/sina/Desktop/Recordings/Webcam.mkv


is everything alright with my pipeline? if I have to change it  then what
should I do to improve it and get a clean "no lags" at the beginning of the
.mkv file?

Thanks a lot in advance!
Best,
Sina



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Problem-with-recorded-mkv-file-first-seconds-has-some-lags-tp4674562.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list