[gstreamer-bugs] [Bug 560305] New: x264enc & ffmux_* doesnt link

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Nov 11 01:57:56 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=560305

  GStreamer | gst-ffmpeg | Ver: HEAD CVS
           Summary: x264enc & ffmux_* doesnt link
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-ffmpeg
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: kapil at fluendo.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.23/2.24
   GNOME milestone: Unspecified


Please describe the problem:
If x264enc is tried to link with any of the ffmux_* it doesnt link, and gives
error "Aspect ratio mismatch between encoder and muxer layer". This comes since
x264enc src caps has "pixel-aspect-ratio=(fraction)1/1", while if I use
ffenc_mpeg4 it works since the src caps doesnt have any "pixel-aspect-ratio"
caps.
On further investigation it revealed that this problem occurs due to a probable
bug in ffmpeg ie, in "libavformat/utils.c: (av_write_header):" there is a
"av_cmp_q(st->sample_aspect_ratio, st->codec->sample_aspect_ratio)" check that
fails. This happens since the aspect ratio incase of x264enc is set in
st->codec->sample_aspect_ratio = {1, 1}, while the mux output
st->sample_aspect_ratio = {0, 1}. If this check is commented it works fine.

Steps to reproduce:
1. gst-launch-0.10 filesrc location=1.flv ! flvdemux ! ffdec_vp6f ! x264enc !
ffmux_3gp ! filesink location=test.3gp -v
2. gst-launch-0.10 filesrc location=1.flv ! flvdemux ! ffdec_vp6f ! ffenc_mpeg4
! ffmux_3gp ! filesink location=test.3gp -v



Actual results:
1. Doesnt work, gives error "Aspect ratio mismatch between encoder and muxer
layer"
2. Works.

Expected results:
x264enc case should also work.

Does this happen every time?
yes

Other information:
This is valid for any ffmux_*


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=560305.




More information about the Gstreamer-bugs mailing list