After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654387 - Timestamp calcuation error when in-point is set and several files are merged.
Timestamp calcuation error when in-point is set and several files are merged.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-editing-services
0.10.x
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-11 10:43 UTC by vineeth
Modified: 2014-11-01 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GES program to concatenate several files into a mp4 file. (8.86 KB, application/octet-stream)
2011-07-11 10:43 UTC, vineeth
Details
concatenate2.c : to reproduce the problem for ogv files. (8.85 KB, text/plain)
2011-07-14 05:08 UTC, vineeth
Details
log file for the (slightly modified) concatenate2.c program above using GST_DEBUG=4 (640.39 KB, text/x-log)
2013-08-06 15:37 UTC, Alexandre Quessy
Details

Description vineeth 2011-07-11 10:43:47 UTC
Created attachment 191701 [details]
GES program to concatenate several files into a mp4 file.

It was observed in GES 0.10.1 that, when the in-point is set to a non-zero value, and then several files were combined, then the timestamps of video in the resultant file were not proper. 

The code to reproduce this is attached. In the code, we start from the middle of the media file , upto to the last but 1/5th of duration of the file, i.e if the duration of file is 30 seconds, we start from 15 seconds to (30*4)/5 = 24 seconds.
Comment 1 vineeth 2011-07-11 10:45:32 UTC
Example command line: ( merge is being done in non-smart mode )
GST_DEBUG=2 ./concatenate 1 file:///mnt/hgfs/ubuntu_shared/merged.mp4 /mnt/hgfs/ubuntu_shared/h264/3.mp4 /mnt/hgfs/ubuntu_shared/h264/4.mp4 /mnt/hgfs/ubuntu_shared/h264/5.mp4
Comment 2 vineeth 2011-07-14 05:08:36 UTC
Created attachment 191936 [details]
concatenate2.c : to reproduce the problem for ogv files.

reproducable code for ogv
Comment 3 vineeth 2011-07-14 05:10:44 UTC
In the attached concatenate2.c, the problem can be reproduced with ogv files as well.

The program was run as follows:
./concatenate 0 file:///mnt/hgfs/ubuntu_shared/merged.ogv /mnt/hgfs/ubuntu_shared/ogv/Leopard.ogv /mnt/hgfs/ubuntu_shared/ogv/Leopard.ogv 

The file Leopart.ogv is available from http://en.wikipedia.org/wiki/File:Leopard.ogv

After running the above command, merged.ogv can be played back in VLC, and the time starts from 1 mins or so instead of 0 and then stalls in between.
Comment 4 Alexandre Quessy 2013-08-06 15:37:24 UTC
Created attachment 250987 [details]
log file for the (slightly modified) concatenate2.c program above using GST_DEBUG=4

Here is a log file for the (slightly modified) concatenate2.c program above using GST_DEBUG=4. (read the log file with `less -R <filename>`)

Notice the following CRITICAL message that appears four times::

  gst_segment_set_seek: assertion `start <= stop' failed

This is called from the handle_seek_event function in the gnl/gnlcomposition.c file. 

Hence, it would be useful to know which version of gnonlin is used. Here I use:

* GStreamer 0.10.36
* gnonlin 0.10.17
* gst-editing-services 0.10.1.1
Comment 5 Sebastian Dröge (slomo) 2013-12-23 14:15:39 UTC
Is this still a problem with ges 1.x, i.e. latest git or the pre-release?
Comment 6 Thibault Saunier 2014-11-01 10:20:27 UTC
I can't reproduce that anymore on master, closing.