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 625860 - [patch] Incorrect duration of still images
[patch] Incorrect duration of still images
Status: RESOLVED NOTABUG
Product: pitivi
Classification: Other
Component: General
0.13.4
Other Linux
: Normal normal
: 0.15
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-02 17:31 UTC by Jean-François Fortin Tam
Modified: 2011-09-18 14:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2010-08-02 17:31:37 UTC
Initially reported in https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/608946

Quote:
If you add a still image, it's "default_duration" is 5 seconds. However, it's "duration" is set to 2**64 (truncated, I expect). Looks like a problem converting from seconds to gst.SECONDs. Here's what the relevant XML looks like:

<source default_duration="5000000000" duration="18446744073709551615" ... >


--------------------------------------
There seems to be a patch available on
https://code.launchpad.net/~jderose/ubuntu/lucid/pitivi/fix-608946
Comment 1 Alex Băluț 2011-06-16 11:46:41 UTC
duration="18446744073709551615" stands for gst.CLOCK_TIME_NONE. The meaning is that the picture (which has been added to the project) has no duration. For the media that has no duration (like pictures), the default_duration attribute is used when it is added to the timeline. So everything is working as intended here. I suggest to close this bug as invalid.

For the record, below is the change from:
https://code.launchpad.net/~jderose/ubuntu/lucid/pitivi/fix-608946

 class PictureFileSourceFactory(FileSourceFactory):
     """
     Factory for image sources.
 
     @see: L{FileSourceFactory}, L{RandomAccessSourceFactory}.
     """
 
     duration = 3600 * gst.SECOND
     default_duration = 5 * gst.SECOND
+    
+    def __init__(self, uri, name=''):
+        FileSourceFactory.__init__(self, uri, name)
+        self.duration = 3600 * gst.SECOND