When attempting to play any nuv files from mythtv, mplayer segfaults. Reproducible: Always Steps to Reproduce: 1. mplayer (nuv file from mythtv) Actual Results: $ gdb /usr/bin/mplayer GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-unknown-linux-gnu"...Using host libthread_db library "/lib /libthread_db.so.1". (gdb) run 1002_20051001233500_20051002003500.nuv Starting program: /usr/bin/mplayer 1002_20051001233500_20051002003500.nuv [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 21371)] Using GNU internationalization Original domain: messages Original dirname: /usr/share/locale Current domain: mplayer Current dirname: /usr/share/locale MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team AltiVec found CPU: PowerPC 85 audio & 196 video codecs Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. Playing 1002_20051001233500_20051002003500.nuv. Cache fill: 0.00% (0 bytes) NuppelVideo file format detected. NUV extended frame does not have expected length, ignoring No NUV extended frame, using defaults FPS not specified in the header or invalid, use the -fps option. ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400) Selected audio codec: [pcm] afm:pcm (Uncompressed PCM) ========================================================================== Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le... AF_pre: 44100Hz/2ch/s16le alsa-init: 1 soundcard found, using: default alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian AO: [alsa] 44100Hz 2ch s16le (2 bps) Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le... Video: no video Starting playback... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 21371)] 0x1012098c in ds_read_packet (ds=0x1068fc88, stream=0x1068fe60, len=-1840522808, pts=674348.188, pos=The value of variable 'pos' is distributed across several locations, and GDB cannot access its value. ) at demuxer.h:159 159 demuxer.h: No such file or directory. in demuxer.h (gdb) bt #0 0x1012098c in ds_read_packet (ds=0x1068fc88, stream=0x1068fe60, len=-1840522808, pts=674348.188, pos=The value of variable 'pos' is distributed across several locations, and GDB cannot access its value. ) at demuxer.h:159 #1 0x10139680 in demux_nuv_fill_buffer (demuxer=0x106907f8) at demux_nuv.c:253 #2 0x10120cd8 in demux_fill_buffer (demux=0x0, ds=0x21000) at demuxer.c:378 #3 0x10120e50 in ds_fill_buffer (ds=0x1068fc88) at demuxer.c:464 #4 0x101210dc in demux_read_data (ds=0x1068fc88, mem=0x10693ac0 "", len=67584) at demuxer.c:483 #5 0x100c8ddc in decode_audio (sh_audio=0x0, buf=0x20000 <Address 0x20000 out of bounds>, minlen=1, maxlen=50) at ad_pcm.c:101 #6 0x100c6c44 in decode_audio (sh_audio=0x10691160, buf=0x106afe80 "", minlen=65536, maxlen=65536) at dec_audio.c:398 #7 0x100575a8 in main (argc=272564224, argv=0x103e9fe0) at mplayer.c:2267 (gdb) Expected Results: Vidio should be played. Portage 2.0.51.22-r3 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.13.1 ppc) ================================================================= System uname: 2.6.13.1 ppc 7447A, altivec supported Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.90.0.3-r5 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://alpha/gentoo-portage" USE="ppc X aac alsa altivec bash-completion berkdb bitmap-fonts browserplugin cdr crypt cups curl dvd dvdr dvdread emboss encode esd fam fbcon flac fortran frontendonly gd gif gnome gpm gtk gtk2 imlib ipv6 java javascript jpeg jpeg2k kde kdeenablefinal libwww live logitech-mouse mad motif mozilla mp3 mpeg mysql mythtv ncurses network nls objc ogg oggvorbis opengl pam pcmcia pdflib perl png python qt readline rtc samba sdl sheep spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb vnc vorbis xine xinerama xml2 xv xvid zeroconf zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
*** Bug 108708 has been marked as a duplicate of this bug. ***
I need a sample file, could you please report the issue upstream if it does apply to the curren cvs version?
I can't give you a sample file, as it would be a copyright violation, and I don't know how to encode video into this format. This is not an upstream issue, mplayer doesn't support mythtv nuv files, the mythtv USE flag applies a gentoo patch.
Please try upstream CVS. About half of gentoos mythtv patch was cleaned up and applied. The rest was too much of a mess to be integrated cleanly.
Forgot to say: you can also use dd to extract only a small part of the file, that contains just a few frames (but check if it still shows the same problem). When this works, it is always preferable to a full file. My understanding is that this should also fall under some kind of fair-use rule and not cause a problem copyright wise. Depends of course on the country you're in etc.
Please test latest.
Sorry for the long delay. I tested it with the latest mplayer and it seems to be working fine.