matroskamux + filesink show incorrect video length

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

matroskamux + filesink show incorrect video length

android6011
I am having an issue where vlc(others wont play it) playback  reports the length of the videos as about 2-3 seconds but sometimes it is correct. What is the best way and to which element do I need to get it to cleanly close the file and write the correct length to the header?

pipeline:

rtspsrc location={0} name=stream tcp-timeout=5000000 timeout=1250000 ! rtph264depay ! h264parse ! matroskamux name=container ! filesink location=\"{1}\" name=file stream. ! rtppcmudepay ! mulawdec ! lamemp3enc ! container. 



And thanks to all the devs and members who continually help everyone out :)

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

Re: matroskamux + filesink show incorrect video length

Thiago Sousa Santos
On Wed, 2011-09-21 at 15:39 -0500, android6011 wrote:
> I am having an issue where vlc(others wont play it) playback  reports
> the length of the videos as about 2-3 seconds but sometimes it is
> correct. What is the best way and to which element do I need to get it
> to cleanly close the file and write the correct length to the header?

Are you using your own application or gst-launch? A common mistake is
not to send EOS to the pipeline (and waiting for it to be posted on the
bus) before setting it to NULL state.

If you're using this on gst-launch, just use the -e flag, in your
application send a eos event to the pipeline and wait for an EOS message
on the bus.

Hope this helps,

Thiago

>
>
> pipeline:
>
>
> rtspsrc location={0} name=stream tcp-timeout=5000000 timeout=1250000 !
> rtph264depay ! h264parse ! matroskamux name=container ! filesink
> location=\"{1}\" name=file stream. ! rtppcmudepay ! mulawdec !
> lamemp3enc ! container.
>
>
>
>
>
>
> And thanks to all the devs and members who continually help everyone
> out :)
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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