[gstreamer-bugs] [Bug 398875] New: [ffdec_camtasia] requires "bits_per_sample" to be set or playback fails

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Jan 20 15:20:10 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=398875

  GStreamer | gst-ffmpeg | Ver: HEAD CVS

           Summary: [ffdec_camtasia] requires "bits_per_sample" to be set or
                    playback fails
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-ffmpeg
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: gnomebugzilla at sukimashita.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.15/2.16
   GNOME milestone: Unspecified


Please describe the problem:
Playback of a movie with the "Techsmith Camtasia video" codec using GStreamer
fails with:

ERROR ffmpeg :0:: Camtasia error: unknown depth 0 bpp

It appears the caps don't set the AVCodecContext->bits_per_sample to the
correct value which actually seems to be stored in the AVI (24bpp in this
case).

Steps to reproduce:
---

GST_DEBUG="avi*:5,ffmpeg*:5" gst-launch gnomevfssrc
location=http://videos.aircrack-ng.org/WEP_Cracking_with_Airoscript.avi !
avidemux ! ffdec_camtasia ! ffmpegcolorspace ! xvimagesink

---

Actual results:
You see the log ouput.

Expected results:
Video should play.

Does this happen every time?
Yes.

Other information:
I have a lack of overview thus unable to fully find the cause of the problem
and fixing the issue completly.

All I know is that manually setting/enforcing the bits_per_sample makes it
work:

--- ext/ffmpeg/gstffmpegcodecmap.c      11 Jan 2007 10:02:40 -0000      1.137
+++ ext/ffmpeg/gstffmpegcodecmap.c      20 Jan 2007 23:16:46 -0000
@@ -1571,11 +1577,14 @@

     case CODEC_ID_MSRLE:
     case CODEC_ID_QTRLE:
+    case CODEC_ID_TSCC:
     {
       gint depth;

       if (gst_structure_get_int (str, "depth", &depth))
         context->bits_per_sample = depth;
+
+      context->bits_per_sample = 24;
     }
       break;


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list