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 603070 - two-pass (bitrate-based) encoding in pitivi is not easy (requires two manual renders)
two-pass (bitrate-based) encoding in pitivi is not easy (requires two manual ...
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-editing-services
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-26 18:27 UTC by Eugenia Loli-Queru
Modified: 2018-05-09 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
project properties and export settings (138.85 KB, image/png)
2009-11-27 22:55 UTC, Eugenia Loli-Queru
Details

Description Eugenia Loli-Queru 2009-11-26 18:27:58 UTC
Exporting in 720/30p from Pitivi using mp3 and XViD VBR creates the same filesize file, no matter the bitrate requested. It uses about 25 mbps bitrate, even if I told it I want an average of 5 mbps.

If I use constant bitrate, it does give me the bitrate/filesize I am after. The bug only happens when using VBR.

This is Ubuntu 9.10 btw with no third party packages, just whatever found in their various repositories.
Comment 1 Jean-François Fortin Tam 2009-11-26 23:25:56 UTC
This reminds me a bit of bug #593466, if it's related at all.
Comment 2 Edward Hervey 2009-11-27 11:32:12 UTC
Eugenia, which codec and container did you choose ? What exact settings did you apply ?

Screenshots of main output settings window and individual codec settings window will do
Comment 3 Eugenia Loli-Queru 2009-11-27 22:55:58 UTC
Created attachment 148626 [details]
project properties and export settings
Comment 4 Eugenia Loli-Queru 2009-11-27 22:56:27 UTC
Screenshot attachment added, showing project properties and export settings.
Comment 5 Edward Hervey 2009-11-28 09:48:22 UTC
The problem is that it's a 2-pass encoding.

During the first pass it will not take into account the bitrate but only generate the statistics file, and when you re-encode the 2nd pass it will take it into account.

Here are the file sizes of rendering a 27s video:
After 1st pass: 59735208 bytes (17 699 320 bits/s)
After 2nd pass:  4433922 bytes ( 1 313 754 bits/s)

Providing a generic interface for 2 pass encodings is in the todo list. The problem is detecting if encoding elements can do 2-pass-encodings.

Dunno whether I should close this bug or not (or whether we have an existing duplicate bug regarding two pass encoding)
Comment 6 Eugenia Loli-Queru 2009-11-28 09:50:54 UTC
I see. I guess you can defer it as a usability/UI bug rather than as it was suggested. I mean, when I saw that dialog, I thought that it was just a 1-pass VBR encoding, not "1 pass out of the 2 passes".
Comment 7 Jean-François Fortin Tam 2010-02-09 05:26:54 UTC
Retitling for clarity / searchability... I hope I understood the explanation correctly.

I'm still wondering if Bug #593466 is the same thing though.
Comment 8 Edward Hervey 2010-12-04 15:18:57 UTC
Tried rendering a simplistic timeline with ogg/theora/vorbis and tried with two different bitrate settings : 512 and 1024:

-rw-r--r--  1 bilboed bilboed  3695114 Dec  4 16:17 simple-1024.ogg
-rw-r--r--  1 bilboed bilboed  2064803 Dec  4 16:16 simple-512.ogg

Seems to work here. Jeff, can you check again ?
Comment 9 Jean-François Fortin Tam 2010-12-04 17:14:16 UTC
This bug is about automating "multiple pass" rendering; comment #8 is probably about bug #593466 instead (and I just figured out why it happens), so reopening.
Comment 10 Jean-François Fortin Tam 2011-09-15 02:17:38 UTC
As I understand it, GStreamer itself deals with "pipelines" and does not really think in terms of passes, as such, this should be dealt with in gnonlin or GES.

Pitivi should not have to know about the innards of multipass rendering, it should be transparent. Pitivi should just "ask for a multipass rendering" and let ges/gnonlin do their magic.
Comment 11 Olivier Crête 2018-05-04 09:03:59 UTC
There is no plan to handle two pass encoding more gracefully in GStreamer. That could be a feature of gst-transcoder, but there is no plan there either.

Please re-open if there is an idea for a better approach
Comment 12 Thibault Saunier 2018-05-09 12:40:11 UTC
(In reply to Olivier Crête from comment #11)
> There is no plan to handle two pass encoding more gracefully in GStreamer.
> That could be a feature of gst-transcoder, but there is no plan there either.

Not sure where that should be handled tbh. gst-transcoder, having this feature in gst-transcoder wouldn't help with GES implementation :-)