public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* xawtv fails to compile with quicktime
@ 2008-07-22 17:14 Fritz Katz
  2008-07-22 17:32 ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: Fritz Katz @ 2008-07-22 17:14 UTC (permalink / raw)
  To: video4linux-list

The V2L application xawtv appears to be broken if compiled with quicktime libraries.

The video4linux-list is mentioned as the proper discussion forum for xawtv at the bottom of the page: http://bytesex.org/xawtv/ 

I'm on a FreeBSD-7 system, but the same bug has also been filed against xawtv on Gentoo and Debian. Quicktime changed how colormodels are handled several years ago (~2004?) and I guess xawtv never heard about it. 

It's broken in xawtv-3.95 and the same code is used in the 4.x snapshot.

Unfortunately, the various distros make releases with multiple patches for problems -- but don't send fixes back upstream. FreeBSD-7 has 10 patches on xawtv-3.95. Some of these might be important bugfixes. If someone's interested, I can zip them up and email them to you.

Here's a link to the source of the offending code:
http://www.cs.fsu.edu/~baker/devices/lxr/http/source/xawtv-3.95/libng/plugins/write-qt.c

Here's where it fails in my environment:
# uname -smr
FreeBSD 7.0-RELEASE i386

  Installed:
	/usr/ports/multimedia/libquicktime (libquicktime-1.0.2)

  Attempted install:
	/usr/ports/multimedia/xawtv (xawtv-3.95, with patches, original from http://bytesex.org/xawtv/ )

	libng/plugins/write-qt.c: In function 'video_list':
	libng/plugins/write-qt.c:351: error: 'lqt_codec_info_t' has no member named 'num_encoding_colormodels'
	libng/plugins/write-qt.c:353: error: 'lqt_codec_info_t' has no member named 'encoding_colormodels'
	libng/plugins/write-qt.c:354: error: 'lqt_codec_info_t' has no member named 'encoding_colormodels'
	libng/plugins/write-qt.c:381: error: 'lqt_codec_info_t' has no member named 'num_encoding_colormodels'
	libng/plugins/write-qt.c:382: error: 'lqt_codec_info_t' has no member named 'encoding_colormodels'

---------------------
Here's the failure on Debian Linux, 

    http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=9;bug=392576

Debian's 'fix' was to disable libquicktime support:

---------------------
Here's the failure on Gentoo Linux:

    http://bugs.gentoo.org/141429

We're in luck here, someone wrote a patch that looks like it might work. Needs to be verified by someone knowledgeable of Quicktime:

---------------------------------
--- xawtv-3.95/libng/plugins/write-qt.c.old     2006-10-16 20:50:45.000000000 +0200 
 +++ xawtv-3.95/libng/plugins/write-qt.c 2006-10-17 19:36:09.000000000 +0200 
 @@ -348,10 +348,10 @@ 
                     info[i]->name,info[i]->long_name); 
             for (j = 0; j < info[i]->num_fourccs; j++) 
                 fprintf(stderr,"   fcc   : %s\n",info[i]->fourccs[j]); 
 -           for (j = 0; j < info[i]->num_encoding_colormodels; j++) 
 +           for (j = 0; j < lqt_num_colormodels(); j++) 
                 fprintf(stderr,"   cmodel: %d [%s]\n", 
 -                       info[i]->encoding_colormodels[j], 
 -                       lqt_get_colormodel_string(info[i]->encoding_colormodels[j])); 
 +                       lqt_get_colormodel(j), 
 +                       lqt_get_colormodel_string(j)); 
         } 
 
         /* sanity checks */ 
 @@ -378,8 +378,8 @@ 
         /* pick colormodel */ 
         fmtid  = VIDEO_NONE; 
         cmodel = 0; 
 -       for (j = 0; j < info[i]->num_encoding_colormodels; j++) { 
 -           cmodel = info[i]->encoding_colormodels[j]; 
 +       for (j = 0; j < lqt_num_colormodels(); j++) { 
 +           cmodel = lqt_get_colormodel(j); 
             if (cmodel>= sizeof(cmodels)/sizeof(int)) 
                 continue; 
             if (!cmodels[cmodel]) 
---------------------------------
It's one or two lines off, so it failed to apply on my system. But it's easy enough to just make the changes by hand.

Regards,
-- Fritz_Katz




      

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-22 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 17:14 xawtv fails to compile with quicktime Fritz Katz
2008-07-22 17:32 ` Hans de Goede
2008-07-22 19:24   ` Fritz Katz
2008-07-22 20:03     ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox