GNOME Bugzilla – Bug 654387
Timestamp calcuation error when in-point is set and several files are merged.
Last modified: 2014-11-01 10:20:42 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.
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
Created attachment 191936 [details] concatenate2.c : to reproduce the problem for ogv files. reproducable code for ogv
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.
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
Is this still a problem with ges 1.x, i.e. latest git or the pre-release?
I can't reproduce that anymore on master, closing.