Joining video file

adrien_sch adrien.schwartzentruber at gmail.com
Wed Apr 16 08:38:09 PDT 2014


Hello guys,

I'm trying to join multiple video file (without decoding), so to achieve my
goal, a use the playbin element, and listen the callback "about-to-finish",
on this callback, I'm updating the playbin's uri to the next video file,
until a reach to last video file, and then I'm firing an EOS event.

My problem is that the result file "contains" the only two first files and
it seems that the segment event receive in the video sink isn't right after
the second file.

Example : 

First Segment : 
** Message: Segment : Base 0
** Message: Segment : Duration 11011017072
** Message: Segment : Offset 0
** Message: Segment : Position 0
** Message: Segment : Start 0
** Message: Segment : Stop 18446744073709551615
** Message: Segment : Time 0

Second segment : 
** Message: Segment : Base 0
** Message: Segment : Duration 11011017072
** Message: Segment : Offset 0
** Message: Segment : Position 10969000000
** Message: Segment : Start 0
** Message: Segment : Stop 11010708398
** Message: Segment : Time 0
** Message: receive segment event
** Message: Segment : Base *11010708398*
** Message: Segment : Duration 10260708398
** Message: Segment : Offset 0
** Message: Segment : Position 0
** Message: Segment : Start 0
** Message: Segment : Stop 18446744073709551615
** Message: Segment : Time 0

Third segment : 
** Message: Segment : Base 0
** Message: Segment : Duration 10260708398
** Message: Segment : Offset 0
** Message: Segment : Position 10219000000
** Message: Segment : Start 0
** Message: Segment : Stop 10260708398
** Message: Segment : Time 0
** Message: receive segment event
** Message: Segment : Base *11010708398*
** Message: Segment : Duration 7257708398
** Message: Segment : Offset 0
** Message: Segment : Position 0
** Message: Segment : Start 0
** Message: Segment : Stop 18446744073709551615
** Message: Segment : Time 0

For me, the third segment base must be the addition of first + second
segment duration.

What should I do to get this working ?
Is the observed behavior "normal" ?

 





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Joining-video-file-tp4666463.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list