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 570815 - ffmenc_mpeg4 allows its bitrate property to be changed without actually changing the bitrate
ffmenc_mpeg4 allows its bitrate property to be changed without actually chang...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.10.22
Other All
: Normal normal
: 0.10.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-06 20:54 UTC by Tristan Matthews
Modified: 2009-04-21 16:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Doesn't change the bitrate if it can't be changed, and issues a warning to that effect. (476 bytes, patch)
2009-02-06 20:55 UTC, Tristan Matthews
none Details | Review
Doesn't change the bitrate if it can't be changed, and issues a warning to that effect. (528 bytes, patch)
2009-02-06 20:59 UTC, Tristan Matthews
none Details | Review
Proposed patch (564 bytes, patch)
2009-03-05 07:49 UTC, Edward Hervey
committed Details | Review

Description Tristan Matthews 2009-02-06 20:54:09 UTC
Please describe the problem:
If the pipeline is paused or playing, changing the bitrate has no effect, but the G_OBJECT property for the bitrate is changed regardless. The element should not change this property if the pipeline is in a state > READY and should warn if it can't change it.

Steps to reproduce:
On a playing or paused pipeline, change the bitrate property on ffenc_mpeg4 with g_object_set and notice that it doesn't actually change, even though the property will be different.


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Tristan Matthews 2009-02-06 20:55:55 UTC
Created attachment 128113 [details] [review]
Doesn't change the bitrate if it can't be changed, and issues a warning to that effect.
Comment 2 Tristan Matthews 2009-02-06 20:59:34 UTC
Created attachment 128114 [details] [review]
Doesn't change the bitrate if it can't be changed, and issues a warning to that effect.
Comment 3 Edward Hervey 2009-03-05 07:48:45 UTC
Checking against an element's state is tricky, it would be better to check against gstffmpegenc->opened (which is TRUE once we've initialized the ffmpeg encoder).
Comment 4 Edward Hervey 2009-03-05 07:49:35 UTC
Created attachment 130098 [details] [review]
Proposed patch

This patch refuses to change any properties once the ffmpeg encoder is setup.
Comment 5 Edward Hervey 2009-04-21 16:39:59 UTC
commit f07223fd248ef22937afc7bef85fb89b3d5cdc24
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Tue Apr 21 18:38:03 2009 +0200

    gstffmpegenc: Don't change properties once opened. Fixes #570815
    
    Based on a patch by Tristan Matthews <le businessman at gmail dot com>