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 681202 - avenc_mpeg2video: not-negotiated because of unsupported framerate
avenc_mpeg2video: not-negotiated because of unsupported framerate
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-04 15:29 UTC by Christian Fredrik Kalager Schaller
Modified: 2013-03-22 11:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Fredrik Kalager Schaller 2012-08-04 15:29:29 UTC
Trying to encode a mpeg ps file with mpeg2 and mp3 audio. Getting this on the console: 

python transmageddon.py 
0:00:10.036989430 25757 0x7f3d9887b6d0 ERROR                  libav :0:: MPEG1/2 does not support 10000000/333667 fps
we got an error, life is shit
Internal GStreamer error: negotiation problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
gstvideoencoder.c(1262): gst_video_encoder_chain (): /GstPipeline:pipeline0/GstEncodeBin:encodebin0/avenc_mpeg2video:avenc_mpeg2video0:
encoder not initialized
we got an error, life is shit
GStreamer encountered a general stream error.
Comment 1 Tim-Philipp Müller 2012-08-04 15:41:07 UTC
avenc_* not mpeg2enc, so -> gst-libav
Comment 2 Tim-Philipp Müller 2012-12-14 01:01:26 UTC
$  gst-inspect-1.0 avenc_mpeg2video
...
Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw
              framerate: { 24000/1001, 24/1, 25/1, 30000/1001, 30/1, 50/1, 60000/1001, 60/1, 15/1, 5/1, 10/1, 12/1, 15/1 }
                 format: { I420, Y42B }


Do you still have the file you tested with?

I wonder which element created that framerate, I think it should've snapped to 30000/1001 instead really.

In any case, transcoding should work fine now, if you add a videorate element before the encoder as well.
Comment 3 Christian Fredrik Kalager Schaller 2013-01-17 12:40:53 UTC
Ok, not sure which file I used to test with here. So closing for now. As for adding a videorate element, this is encodebin so if another videorate element is needed then encodebin needs to add it.