<p dir="ltr">The h.264 decoder needs a complete reference frame to properly decode a stream. That includes an SPS, PPS and an IFrame. Probably you are writing data to the file that doesn't start with this data. You should delay the file write until you have these elements. Often they are transmitted in that order. However, some IP sources will only transmit the SPS and PPS once and some may never transmit them in band, only in an SDP. So you need to be careful depending on the source and encoder. GSTREAMER elements do have properties to force re-transmitting those elements. </p>
<div class="gmail_quote">On Feb 12, 2016 4:55 AM, "Ashish Kumar Mishra" <<a href="mailto:ashish.kmishra@dexceldesigns.com">ashish.kmishra@dexceldesigns.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All ,<br>
<br>
I am working with v4l2src + alsasrc , the application creates multiple files<br>
of user defined chunk<br>
The basic logic of the could be mapped to :-<br>
*gst-launch-1.0 -v v4l2src do-timestamp=true !<br>
video/x-raw,width=960,height=720,framerate=30/1 ! timeoverlay<br>
shaded-background=1 ! x264enc tune=zerolatency ! mux. alsasrc !<br>
audio/x-raw,width=16,depth=16,rate=44100,channels=2 ! queue ! mux.<br>
matroskamux name=mux  ! filesink *<br>
<br>
The files has some quality issue at the start of every file created<br>
,attached is the snapshot of the same.<br>
Basic google search pointed to some problems in H.264 frame .<br>
<br>
Could team member please provide some pointers as to how could this problem<br>
be addressed.<br>
The video is proper after 3-4sec in every file.<br>
<br>
Thanks<br>
Ashish Kumar Mishra<br>
<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/n4675812/38.png" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/n4675812/38.png</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/H-264-encoded-video-has-data-distortion-at-the-start-of-file-tp4675812.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/H-264-encoded-video-has-data-distortion-at-the-start-of-file-tp4675812.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>