OS X to Linux transition - Help needed!

Bill Fink yellowdog-general@lists.terrasoftsolutions.com
Fri Jun 28 23:32:01 2002


On Fri Jun 28 2002, Michael J Flaherty wrote:

> >  > 2. What can I use on Linux to play .mov files?
> >
> >MOL :)
> 
> I recently read that Xine can now play mov.  Haven't tried it yet though.

Hi,

Yes, the latest 0.9.12 xine version can play some but not all QuickTime
movies.  For instance, it can play the Phantom Menace trailer just fine:

	http://starwars.apple.com/ep1/menace_480.mov

This uses the Sorenson SVQ1 video codec and ima4 audio codec.  However,
the newer Sorenson SVQ3 codec and certain other proprietary audio codecs
are not supported.  I also saw that Apple's QuickTime 6 appears to use
MPEG-4 which xine should also be able to handle hopefully.

The 0.9.12 version of xine requires a couple of patches to run on PPC.
I'm attaching a message I sent to xine-user that describes the patches
needed to fix xine segfaulting on PPC.

You may also encounter audio problems due to some optimizations that
were added for the G3.  If this happens to you, make sure that the entry
for misc.memcpy_method in the .xine/config file is not set to
ppcasm_cacheable_memcpy, but is instead set to glibc or ppcasm_memcpy.

							-Regards

							-Bill

P.S.  xine is at:

	http://xine.sourceforge.net/



From: Bill Fink <billfink@mindspring.com>
To: Dave Williams <dwilliams@NXTV.com>
Cc: xine-user@lists.sourceforge.net
Subject: Re: [xine-user] xine 0.9.12 seg fault

Hi Dave,

This patch from Daniel Caujolle-Bert that's now in CVS fixed it for me:

diff -ur xine-ui-0.9.12/src/xitk/main.c xine-ui-0.9.12a/src/xitk/main.c
--- xine-ui-0.9.12/src/xitk/main.c      Sun Jun 16 05:06:51 2002
+++ xine-ui-0.9.12a/src/xitk/main.c     Mon Jun 24 23:23:17 2002
@@ -619,7 +619,7 @@
  * initialize codec reporting stuff.
  */
 static void init_report_codec(void) {
-  char  *warn_unhandled_codec[5];
+  static char  *warn_unhandled_codec[5];

   warn_unhandled_codec[0] = _("never");
   warn_unhandled_codec[1] = _("video only");

I also applied this patch (I forget now who made it) that's also in CVS
that may also be necessary to apply:

diff -ur xine-lib-0.9.12/src/libsputext/xine_decoder.c xine-lib-0.9.12a/src/libsputext/xine_decoder.c
--- xine-lib-0.9.12/src/libsputext/xine_decoder.c       Sat Jun 22 13:38:59 2002+++ xine-lib-0.9.12a/src/libsputext/xine_decoder.c      Mon Jun 24 22:42:42 2002@@ -1033,13 +1033,7 @@
 spu_decoder_t *init_spu_decoder_plugin (int iface_version, xine_t *xine) {

   sputext_decoder_t *this ;
-  static char *subtitle_size_strings[SUBTITLE_SIZE_NUM] = { NULL };
-
-  if (!subtitle_size_strings[0]) {
-    subtitle_size_strings[SUBTITLE_SIZE_SMALL]  = _("Small");
-    subtitle_size_strings[SUBTITLE_SIZE_NORMAL] = _("Normal");
-    subtitle_size_strings[SUBTITLE_SIZE_LARGE]  = _("Large");
-  }
+  static char *subtitle_size_strings[] = { "small", "normal", "large", NULL };

   if (iface_version != 8) {
     printf(_("libsputext: doesn't support plugin api version %d.\n"

I applied the second patch above first, but it was applying the first
patch that banished the segfaults on PPC for me.

						-Regards

						-Bill



On Wed, 26 Jun 2002, Dave Williams wrote:

> I'm having a crash every time I try to run Xine 0.9.12 now (even though it
> was working fine two days ago when I was last using it).  When the seg fault
> occurs, gdb reports the stack as:
> 
> 
> #0  0xfb948a0 in strlen () from /lib/libc.so.6
> #1  0x1003ea5c in xitk_labelbutton_change_label (wl=0x10974c38,
> w=0x10974388, 
>     newlabel=0x1 <Address 0x1 out of bounds>) at labelbutton.c:364
> #2  0x1002d5a8 in xitk_browser_rebuild_browser (w=0x1, start=1073741824) at
> browser.c:287
> #3  0x1002f228 in xitk_browser_update_list (w=0x1, list=0x7ffffaf8, len=8,
> start=0) at browser.c:322
> #4  0x10031698 in _xitk_combo_create (skonfig=0x1, c=0x7ffff908,
> skin_element_name=0x0, 
>     mywidget=0x109739e8, private_data=0x10973a48, visible=1, enable=1) at
> combo.c:486
> #5  0x10031c50 in xitk_noskin_combo_create (c=0x7ffff908, x=75, y=86,
> width=16, lw=0x7ffff95c, 
>     bw=0x7ffff960) at combo.c:669
> #6  0x10023e48 in setup_add_combo (title=0x1007cf88 "Display popup window on
> unhandled codecs", 
>     labelkey=0x10688be4 "warn_unhandled_codec", x=65, y=70,
> entry=0x106890a0) at setup.c:680
> #7  0x10024374 in setup_section_widgets (s=1) at setup.c:800
> #8  0x10024c98 in setup_sections () at setup.c:968
> #9  0x100251b4 in setup_panel () at setup.c:1135
> #10 0x1001c0c4 in gui_setup_show (w=0x1, data=0x0) at actions.c:485
> #11 0x10009e84 in gui_execute_action_id (action=ACTID_WINDOWREDUCE) at
> event.c:267
> #12 0x1000b094 in gui_run () at event.c:891
> #13 0x10009808 in main (argc=0, argv=0x1007c3a8) at main.c:973
> #14 0xfb35188 in __libc_start_main () from /lib/libc.so.6
> 
> 
> Hopefully somebody can look at this and see where the problem lies.  This
> was run on a PPC machine.  The output from a normal run (outside the
> debugger) follows:
> 
> 
> This is xine (X11 gui) - a free video player v0.9.12
> (c) 2000-2002 by G. Bartsch and the xine project team.
> Built with xine library 0.9.12 [Mon 24 Jun 2002 11:31:41]-[gcc version
> 2.95.3 20010111 (prerelease/franzo/20010111)]-[Linux 2.2.19-1r ppc].
> Found xine library version: 0.9.12 (0.9.12).
> XServer Vendor: The XFree86 Project, Inc. Release: 40100000,
>         Protocol Version: 11, Revision: 0,
>         Available Screen(s): 1, using 0
>         Depth: 16.
> tvmode: cannot connect to nvtvd - no TV mode switching available
> Display is not using Xinerama.
> tvmode: not connected to nvtvd for switching
> main: probing <SyncFB> video output plugin
> video_out_syncfb: aborting. (unable to open syncfb device "/dev/syncfb")
> load_plugins: video output plugin
> /publinux/nfsdave/usr/local/lib/xine/plugins/xineplug_vo_out_syncfb.so:
> init_video_out_plugin failed.
> main: probing <Xv> video output plugin
> video_out_xv: using Xv port 36 from adaptor Tvia streaming media for
> hardware colorspace conversion and scaling.
> video_out_xv: this adaptor supports the yuy2 format.
> video_out_xv: this adaptor supports the yv12 format.
> load_plugins: video output plugin Xv successfully loaded.
> main: probing audio drivers...
> main: trying to autoload 'oss' audio driver: audio_oss_out: Opening audio
> device...
> audio_oss_out: using device >/dev/dsp<
> audio_oss_out: using SNDCTL_DSP_GETODELAY
> audio_oss_out : supported modes are mono stereo (4-channel not enabled in
> xine config) (5-channel not enabled in xine config) (5.1-channel not enabled
> in xine config) 
> load_plugins: audio output plugin oss successfully loaded.
> main: ...worked, using 'oss' audio driver.
> xine: xine_init entered
> Benchmarking memcpy methods (smaller is better):
> 	glibc memcpy() : 220
> 	ppcasm_memcpy() : 223
> 	ppcasm_cacheable_memcpy() : 84
> xine: using ppcasm_cacheable_memcpy()
> xine-scr_init: complete
> load_plugins: input plugin found : file
> load_plugins: input plugin found : DVD
> load_plugins: input plugin found : VCD
> load_plugins: input plugin found : CDA
> load_plugins: input plugin found : stdin_fifo
> load_plugins: input plugin found : TCP
> load_plugins: input plugin found : RTP
> load_plugins: input plugin found : HTTP
> load_plugins: input plugin found : MMS
> load_plugins: demux plugin found : QUICKTIME
> load_plugins: demux plugin found : ASF
> load_plugins: demux plugin found : AVI
> load_plugins: demux plugin found : MPEG_BLOCK
> load_plugins: demux plugin found : MPEG
> load_plugins: demux plugin found : MPEG_ELEM
> load_plugins: demux plugin found : MPGAUDIO
> load_plugins: demux plugin found : MPEG_PES
> load_plugins: demux plugin found : MPEG_TS
> load_plugins: demux plugin found : CDA
> load_plugins: demux plugin found : FILM (CPK)
> load_plugins: demux plugin found : RoQ
> video decoder plugin found : mpeg2dec
> spu decoder plugin found : spudec
> audio decoder plugin found : a/52dec
> video decoder plugin found : ffmpeg video decoder
> audio decoder plugin found : lpcm
> audio decoder plugin found : mad
> audio decoder plugin found : dts
> spu decoder plugin found : sputext
> spu decoder plugin found : spucc
> video decoder plugin found : cinepak
> video decoder plugin found : CYUV
> video decoder plugin found : msvc
> video decoder plugin found : RoQ Video
> video decoder plugin found : svq1
> audio decoder plugin found : RoQ Audio
> audio decoder plugin found : ADPCM
> video_out: thread created
> metronom: start_clock (at 0)
> xine_play: xine open
> file:///publinux/nfsdave/usr/local/share/xine/skins/xine_logo.mpv, start pos
> = 0, start time = 0 (sec)
> audio_oss_out: AO_CTRL_PLAY_RESUME
> xine: using input plugin >file< for this MRL
> (file:///publinux/nfsdave/usr/local/share/xine/skins/xine_logo.mpv).
> using input plugin 'file' for MRL
> 'file:///publinux/nfsdave/usr/local/share/xine/skins/xine_logo.mpv'
> demux_avi: input capabilities = 649
> demux_avi: AVI_init failed (AVI_errno: 9)
> system layer format 'MPEG_ELEM' detected.
> metronom: video discontinuity #1, type is 0, disc_off is 0
> metronom: waiting for audio discontinuity #1
> metronom: audio discontinuity #1, type is 0, disc_off 0
> metronom: waiting for in_discontinuity update #1
> No accelerated IDCT transform found
> No accelerated motion compensation found
> video_decoder: using decoder >mpeg2dec< 
> using video decoder plugin 'mpeg2dec'
> libmpeg2: frame size is 592 x 112
> libmpeg2: frame size 592 x 112
> demux_elem: demux loop finished.
> libmpeg2: blasting out backward reference frame on close
> video_out: throwing away image with pts 33000 because it's too old (diff :
> 3128).
> video_out: possible still frame (fifosize = 0)
> Segmentation fault
> 
> 
> Anyone have any ideas??
> 
> Thanks,
> -Dave
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Jabber Inc.
> Don't miss the IM event of the season | Special offer for OSDN members! 
> JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
> _______________________________________________
> xine-user mailing list
> xine-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xine-user


-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
xine-user mailing list
xine-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-user