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 637123 - Decimal aspect ratios are shown in E notation
Decimal aspect ratios are shown in E notation
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: User interface
Git
Other Linux
: Normal minor
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-13 05:38 UTC by Jean-François Fortin Tam
Modified: 2015-10-20 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed solution (3.10 KB, patch)
2013-05-03 06:21 UTC, Brent Davis
none Details | Review

Description Jean-François Fortin Tam 2010-12-13 05:38:29 UTC
If you enter "1.333" as a pixel aspect ratio, it seems pitivi will accept it/parse it fine, but the resulting DAR will be "7.50412e+15:4.5036e+15", which is a bit strange/hard to read.
I'm wondering if there's anything we can do about that.
Comment 1 Brent Davis 2013-05-03 06:21:26 UTC
Created attachment 243141 [details] [review]
proposed solution

Commit message:
---
Optional attribute 'fracthreshold' added to constructor
Defaults to None (no change in behavior)
If num or denom > threshold, display a floating point number instead

Also use the parameter in the project settings dialog for dar/par.
---

It's worth noting that with this patch, the dar/par output generally matches the input (ie, typing in a decimal for dar will print a decimal for par, and likewise for ratios).
Comment 2 Jean-François Fortin Tam 2013-05-04 09:44:48 UTC
Interesting, though so far I haven't figured out the reasoning behind those changes and how they actually solve the problem. Also, if you try to enter 1.33 or 4.33 as an aspect ratio, you get various errors:


(pitivi:24976): GStreamer-CRITICAL **: gst_value_set_fraction: assertion `denominator != 0' failed

pitivi/viewer.py:284: Warning: value "0,000000" of type `gfloat' is invalid or out of range for property `ratio' of type `gfloat'
  self.aframe.set_property("ratio", float(ratio))
Comment 3 Thibault Saunier 2015-10-20 13:25:30 UTC
This bug has been migrated to https://phabricator.freedesktop.org/T2721.

Please use the Phabricator interface to report further bugs by creating a task and associating it with Project: Pitivi.

See http://wiki.pitivi.org/wiki/Bug_reporting for details.