gstreamer audio /video sync while encoding raw files(.yuv & .wav)

Nicolas Dufresne nicolas at ndufresne.ca
Tue May 22 14:56:11 UTC 2018


Le lundi 21 mai 2018 à 21:33 -0700, new baby a écrit :
> yeah Nicolas, thanks for suggestion..i added command line  as raw text option
> but interview it was their but now its gone..
> 
> *this is my command line .. *
> gst-launch-1.0.exe  -v filesrc location=Transformers1080p.wav
> do-timestamp=true !  wavparse ! queue max-size-buffers=0 max-size-time=0

do-timestamp makes no sense here, it's bytes at this stage. wavparse
should be taking care.

> max-size-bytes=0 min-threshold-time=0000000000 !  audioconvert   !
> audio/x-raw, format=S16LE, rate=44100, channels=2 !  voaacenc  ! mux. 
> filesrc location=Transformers1080p.yuv  !  videoparse  width=1920
> height=1080 framerate=30/1 ! do-timestamp=true queue max-size-buffers = 0
> max-size-time = 0 max-size-bytes = 0 min-threshold-time = 0 !  x264enc
> bitrate=8000 !  queue  !  mpegtsmux name = mux ! filesink location=final.ts	
> 		

Assuming you got the framerate and audio rate right, the only reason
you would get things out of sync, is because these were not captures
from the same point in time. To introduce a timeshift on one of the
branch, you have to control the pad-offset on one of the pads (at a
point in the pipeline were the data in in TIME format). This can only
be done grammatically atm (unless I'm forgetting about something).

> 
> 
> 
> 
> 
> -----
> adi
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list