Avi movie file has extra data

Michael Yarochkin michael.yarochkin at timetronics.be
Mon Feb 13 11:33:26 UTC 2017


Hello, William


I am not an expert in RTP, but will need in in future development.


Can i ask you more details? Maybe by answering you can help you self also.


My guess of delay:

- latency=6000. but not really plausible

-rate and clock-rate. you have it different in many places. can 48000/8000 be a reason of your "about 5 sec" delay?


Did you played with this parameters?


Mikl

________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of William Salibrici <bsalibrici at latticeinc.com>
Sent: Wednesday, February 1, 2017 3:35:12 PM
To: Gst Dev (gstreamer-devel at lists.freedesktop.org)
Subject: Avi movie file has extra data

The following pipeline works ok and produces an avi movie file. My development machine is windows 7 and I’m using GStreamer 1.8.2 with your windows pre-built binaries.

gst-launch-1.0.exe -e



avimux name=mux ! filesink location=C:/myfile.avi

sync=true



rtpbin latency=6000 name=rtpbin_A



udpsrc address="192.168.1.101" port=5018

caps="application/x-rtp,media=video,payload=97,clock-rate=90000,encoding-name=VP8" !



rtpbin_A.recv_rtp_sink_0

rtpbin_A. ! rtpvp8depay ! avdec_vp8 output-corrupt=true ! videoconvert ! videorate ! videoscale !

capsfilter caps="video/x-raw,height=288,width=352,framerate=30/1" !

avenc_mpeg4 ! queue ! mux.



udpsrc address="192.168.1.101" port=5020

caps="application/x-rtp,media=audio,clock-rate=48000,encoding-name=OPUS,payload=96" !



rtpbin_A.recv_rtp_sink_1

rtpbin_A. ! rtpopusdepay ! opusdec ! audioconvert ! audiorate !

capsfilter caps="audio/x-raw,format=S16LE,rate=8000,channels=1" !

mulawenc ! queue ! mux.


I can use the standard Windows media player to play the resultant avi file. However, there are two problems:

1.       The avi file length is about 5 seconds longer that it should be.

2.       When I play the movie, there is about a 5 second delay in the beginning before it starts to play. The first video frame appears frozen during this initial delay.

Once the movie starts to play it is all ok. All the audio and video data is there and the audio and video are in sync.
I tried changing the rtpbin latency but that did not correct the problem.
Can anyone tell me what is causing this extra data in the avi file and the initial play delay, and what changes should be made to the above pipeline to eliminate it? Also, does anyone know of an open source avi file chunk viewer? I did a quick google search but have not found anything so far. I would like to see what data is actually in the avi file.
Thanks so much for your help,
Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170213/67b8d92a/attachment.html>


More information about the gstreamer-devel mailing list