Quantcast

Avi movie file has extra data

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Avi movie file has extra data

William Salibrici

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

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Avi movie file has extra data

Mikl

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 <[hidden email]> on behalf of William Salibrici <[hidden email]>
Sent: Wednesday, February 1, 2017 3:35:12 PM
To: Gst Dev ([hidden email])
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

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Avi movie file has extra data

William Salibrici

Michael,

Please see my ‘Avi movie file has extra data – update2’ posted Mon 2/6/2017 11:35 AM.

To do this you can go to the link below

                https://lists.freedesktop.org/archives/gstreamer-devel/

and view the February 2017 archive by Author. I explain where the initial play delay is coming from.

Bill

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael Yarochkin
Sent: Monday, February 13, 2017 6:33 AM
To: Gst Dev ([hidden email]) <[hidden email]>
Subject: Re: Avi movie file has extra data

 

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 <[hidden email]> on behalf of William Salibrici <[hidden email]>
Sent: Wednesday, February 1, 2017 3:35:12 PM
To: Gst Dev ([hidden email])
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

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...