Merge lp:~fred-bertolus/luciole/fix-pitivi-export into lp:luciole

Proposed by Fred Bertolus
Status: Merged
Approved by: NicoInattendu
Approved revision: 137
Merged at revision: 137
Proposed branch: lp:~fred-bertolus/luciole/fix-pitivi-export
Merge into: lp:luciole
Diff against target: 79 lines (+14/-10)
2 files modified
luciole/gui/actions.py (+11/-8)
luciole/project/export/export_pitivi.py (+3/-2)
To merge this branch: bzr merge lp:~fred-bertolus/luciole/fix-pitivi-export
Reviewer Review Type Date Requested Status
NicoInattendu Approve
Review via email: mp+60982@code.launchpad.net

Description of the change

Bonjour,

En cherchant un logiciel pour faire du timelapse, je suis tombé sur luciole que semblait convenir. Malheuresement, l'export pitivi ne générait pas les bonnes durées pour les images (par exemple chaque images duraient 0.5 seconde au lieu de 0.08 seconde pour un framerate de 12,5 images par secondes.

J'ai donc téléchargé la version de dev, qui avait le même comportement, mais la boite de dialogue ne s'affichait plus.

J'ai donc fait 2 corrections :

- Réparation de l'affichage de la boite de dialogue "export tools"
- Correction de la durée des images dans l'export Pitivi

Merci pour le logiciel

To post a comment you must log in.
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

To be linked with Bug #782641. For the export tool problem
To be linked with Bug #782643 : for export to Pitivi problem

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'luciole/gui/actions.py'
--- luciole/gui/actions.py 2011-03-25 09:19:59 +0000
+++ luciole/gui/actions.py 2011-05-14 07:42:32 +0000
@@ -39,6 +39,7 @@
39import luciole.gui.constants as GUI_CONST39import luciole.gui.constants as GUI_CONST
40import luciole.constants as LCONST40import luciole.constants as LCONST
41from luciole.gui.windows.export_video_window import ExportVideoWindow41from luciole.gui.windows.export_video_window import ExportVideoWindow
42from luciole.gui.windows.export_tool_window import ExportToolWindow
42from luciole.info import REVNO, VERSION43from luciole.info import REVNO, VERSION
43_tv_change_signal = 'treeview-change'44_tv_change_signal = 'treeview-change'
44_tv_selected_signal = 'treeview-selected'45_tv_selected_signal = 'treeview-selected'
@@ -472,8 +473,8 @@
472 """ report bug action """ 473 """ report bug action """
473 self.debug('Report bug action')474 self.debug('Report bug action')
474 try:475 try:
475 webbrowser.open("https://bugs.launchpad.net/luciole/+filebug")476 webbrowser.open("https://bugs.launchpad.net/luciole/+filebug")
476 except:477 except:
477 _msg = _("Unable to open the Launchpad web page.")478 _msg = _("Unable to open the Launchpad web page.")
478 self.warning(_msg)479 self.warning(_msg)
479 self.gui.windows.error_message(_msg)480 self.gui.windows.error_message(_msg)
@@ -482,8 +483,8 @@
482 """ ask a question action """ 483 """ ask a question action """
483 self.debug('Ask a question action')484 self.debug('Ask a question action')
484 try:485 try:
485 webbrowser.open("https://answers.launchpad.net/luciole/+addquestion")486 webbrowser.open("https://answers.launchpad.net/luciole/+addquestion")
486 except:487 except:
487 _msg = _("Unable to open the Launchpad web page.")488 _msg = _("Unable to open the Launchpad web page.")
488 self.warning(_msg)489 self.warning(_msg)
489 self.gui.windows.error_message(_msg)490 self.gui.windows.error_message(_msg)
@@ -492,8 +493,8 @@
492 """ Help trranslate action """ 493 """ Help trranslate action """
493 self.debug('Help translate action')494 self.debug('Help translate action')
494 try:495 try:
495 webbrowser.open("https://translations.launchpad.net/luciole")496 webbrowser.open("https://translations.launchpad.net/luciole")
496 except:497 except:
497 _msg = _("Unable to open the Launchpad web page.")498 _msg = _("Unable to open the Launchpad web page.")
498 self.warning(_msg)499 self.warning(_msg)
499 self.gui.windows.error_message(_msg)500 self.gui.windows.error_message(_msg)
@@ -537,8 +538,10 @@
537 _export.run(self.app.project_ctrl.project.props)538 _export.run(self.app.project_ctrl.project.props)
538539
539 def _export_tool_cb(self, action) :540 def _export_tool_cb(self, action) :
540 # TODO implement541 """ Export tools callback"""
541 pass542 _export_tools = ExportToolWindow(project=self.app.project_ctrl.project.props)
543 _export_tools.run()
544
542 545
543 def _project_properties_cb(self, action) :546 def _project_properties_cb(self, action) :
544 """ Display of project properties"""547 """ Display of project properties"""
545548
=== modified file 'luciole/project/export/export_pitivi.py'
--- luciole/project/export/export_pitivi.py 2010-04-22 07:05:32 +0000
+++ luciole/project/export/export_pitivi.py 2011-05-14 07:42:32 +0000
@@ -56,7 +56,8 @@
56 __STREAM_NAME = "src0"56 __STREAM_NAME = "src0"
57 __STREAM_TYPE = "pitivi.stream.VideoStream"57 __STREAM_TYPE = "pitivi.stream.VideoStream"
5858
59 __BASE_DURATION_NS = 100000000059 __BASE_DURATION_SECOND = 1000000000
60 __BASE_FRAME_RATE = 25
6061
61 __TIMELINE_TYPE = "pitivi.timeline.track.SourceTrackObject"62 __TIMELINE_TYPE = "pitivi.timeline.track.SourceTrackObject"
62 __TIMELINE_IN_POINT = "(gint64)0"63 __TIMELINE_IN_POINT = "(gint64)0"
@@ -166,7 +167,7 @@
166 """ compute duration in pitivi format. 167 """ compute duration in pitivi format.
167 Input is the fpi : number of frame per image168 Input is the fpi : number of frame per image
168 """169 """
169 duration = (1.0/fpi)*self.__BASE_DURATION_NS170 duration = fpi*self.__BASE_DURATION_SECOND / self.__BASE_FRAME_RATE
170 # use of str and int : int for a rounded value and str for string in element tree171 # use of str and int : int for a rounded value and str for string in element tree
171 return str(int(duration))172 return str(int(duration))
172173

Subscribers

People subscribed via source and target branches

to status/vote changes: