* 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
* Re: xawtv fails to compile with quicktime
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
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2008-07-22 17:32 UTC (permalink / raw)
To: frtzkatz; +Cc: video4linux-list
Fritz Katz wrote:
>
<snip>
> 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.
>
AFAIK xawtv upstream is mostly dead, which is the mean reason why those patches
are not getting integrated upstream.
It would be good for someone to pick up doing xawtv upstream work, you can
request a sf.net (or something similar) project for it, import the latest
version there, then apply a set of patches from a distro of choice and then
start asking distribution maintainers to merge their patch set with your new xawtv.
If you do this I will poke the Fedora maintainer to get his patches integrated
and if he doesn't I'll happily do it myself.
Also look here for a small (but somewhat important) bugfix patch to xawtv:
http://linuxtv.org/hg/v4l-dvb/file/f445674ce0d2/v4l2-apps/lib/libv4l/appl-patches/xawtv-3.95-fixes.patch
Regards,
Hans
--
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
* Re: xawtv fails to compile with quicktime
2008-07-22 17:32 ` Hans de Goede
@ 2008-07-22 19:24 ` Fritz Katz
2008-07-22 20:03 ` Hans de Goede
0 siblings, 1 reply; 4+ messages in thread
From: Fritz Katz @ 2008-07-22 19:24 UTC (permalink / raw)
To: Hans de Goede; +Cc: video4linux-list
Hello Hans de Goede,
OK, I'll volunteer to support xawtv. It's sad when a good program becomes an un-loved orphan. :-)
I just started a project last week to support Video-4-Linux applications and drivers on the various *BSDs -- xawtv-3.96 could be the first application released by the project:
http://video4bsd.sourceforge.net/
My plan is to go from xawtv-3.95 -> xawtv-3.96 by applying all the available patches including the one you pointed me at below.
After that, if there's interest, we can look at the work that was done for the xawtv-4.x-snapshot.
I can test on FreeBSD and Fedora-8, I'll need help testing on the other distros.
Regards,
-- Fritz Katz
____________________________________
--- Hans de Goede wrote:
>
> <snip>
>
> > 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.
> >
>
> AFAIK xawtv upstream is mostly dead, which is the mean
> reason why those patches
> are not getting integrated upstream.
>
> It would be good for someone to pick up doing xawtv
> upstream work, you can request a sf.net (or something
> similar) project for it, import the latest
> version there, then apply a set of patches from a distro of
> choice and then start asking distribution maintainers to
> merge their patch set with your new xawtv.
>
> If you do this I will poke the Fedora maintainer to get his
> patches integrated and if he doesn't I'll happily do it myself.
>
> Also look here for a small (but somewhat important) bugfix
> patch to xawtv:
> http://linuxtv.org/hg/v4l-dvb/file/f445674ce0d2/v4l2-apps/lib/libv4l/appl-patches/xawtv-3.95-fixes.patch
>
> Regards,
>
> Hans
--
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
* Re: xawtv fails to compile with quicktime
2008-07-22 19:24 ` Fritz Katz
@ 2008-07-22 20:03 ` Hans de Goede
0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2008-07-22 20:03 UTC (permalink / raw)
To: frtzkatz; +Cc: video4linux-list
Fritz Katz wrote:
> Hello Hans de Goede,
>
> OK, I'll volunteer to support xawtv. It's sad when a good program becomes an un-loved orphan. :-)
>
Excellent!
> I just started a project last week to support Video-4-Linux applications and drivers on the various *BSDs -- xawtv-3.96 could be the first application released by the project:
>
> http://video4bsd.sourceforge.net/
>
> My plan is to go from xawtv-3.95 -> xawtv-3.96 by applying all the available patches including the one you pointed me at below.
>
Sounds like a good plan.
>
> I can test on FreeBSD and Fedora-8, I'll need help testing on the other distros.
>
I wouldn't worry too much about the other distro's for now, once you have an
3.96 release (iow something to show) you should mail the maintainers of xawtv
from the various distro's and ask them to update to 3.96, adjusting any of
their patches in the progress and then send their patches to you for upstream
merging.
Don't be shy in sending distro specific hacks back to the distro maintainers
for them to implement a more general solution.
Regards,
Hans
--
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