H.264 encoded video has data distortion at the start of file.

Ashish Kumar Mishra ashish.kmishra at dexceldesigns.com
Wed Feb 24 04:54:24 UTC 2016


Hi Chuck Crisler-3 , 

1) I have created an dynamic pipeline to create multiple ".mkv" file of user
defined duration. 

2) *" ....You should delay the file write until you have these elements..."*
In the current implementation , after the user defined time the pads are
paused , new file is created and the pads are re-started again.* Now in this
case i have no mechanism to know if all the required frames has arrived at
the time of file creation. *

Could you please provide some pointers as to how can delay the file write
till all the required frames are received  ?  i.e how to determine & ensure
all the frames are received ?
( I don't in-depth information of Gstreamer , this is the first project on
Gstreamer application side. 
  Hence it would be helpful if you could share any sample snippet of code .) 

Roughly the pipeline has the below mentioned skeleton  ( actual
implementation is in C code ) 
gst-launch-1.0 -v v4l2src ! video/x-raw,width=960,height=720,framerate=30/1
! x264enc ! mux. alsasrc !
audio/x-raw,width=16,depth=16,rate=44100,channels=2 ! mux. avimux name=mux !
filesink location=test.avi 


Thanks 
Ashish Kumar Mishra.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/H-264-encoded-video-has-data-distortion-at-the-start-of-file-tp4675812p4676015.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list