Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180876 - media-video/mplayer-1.0.20070427 - mencoder segfaults when trying to record from composite input on tv tuner
Summary: media-video/mplayer-1.0.20070427 - mencoder segfaults when trying to record f...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-04 16:44 UTC by Mark Montgomery II
Modified: 2009-08-03 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mencoder debug output (debug.txt,13.38 KB, text/plain)
2007-06-04 19:25 UTC, Mark Montgomery II
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Montgomery II 2007-06-04 16:44:36 UTC
When trying to record from the composite input on my tv tuner (Leadtek winfast tv 2000 xp deluxe), mencoder segfaults.
It records from the tv input fine.
I can fire up tvtime and watch from all inputs fine.
I have tried the current stable version of mplayer in portage and the latest unstable (1.0.20070427 as of now).
I manually compiled the latest svn version downloaded directly (mplayer-checkout-2007-06-03) and it worked fine.

Reproducible: Always

Steps to Reproduce:
1.  Try to record from line in.  The command I use in my recording script is:
/usr/bin/mencoder -v -tv driver=v4l2:norm=ntsc:device=/dev/video0:adevice=/dev/audio:width=512:height=384:input=1:chanlist=us-cable:audiorate=48000 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:vhq:vme=5 -oac lavc -lavcopts acodec=mp2:abitrate=96 -ofps 30 -o $file -endpos $length
Actual Results:  
See thread at
http://forums.gentoo.org/viewtopic-t-563146.html
for debug output.

Expected Results:  
Should have recorded as usual.  :)

I also tried on the older 2.6.18 kernel to make sure it wasn't the kernel upgrade that broke it, but the same thing happened there.

emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.2.7 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 02 Jun 2007 03:30:08 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac alsa amd64 amr avi bash-completion berkdb bidi bzip2 cdr cracklib crypt cups dbus dts dvb dvdr dvdread encode exif ffmpeg flac foomaticdb fortran gdbm ggi gif gimp gimpprint gnutls hal iconv jpeg kqemu lcms mad midi mikmod mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdflib perl plugins png ppds python quicktime readline reflection sdl session smp speex spell ssl startup-notification svg tcpd theora tiff unicode usb v4l v4l2 vorbis x264 xcomposite xml xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-04 17:07:17 UTC
(In reply to comment #0)
> See thread at
> http://forums.gentoo.org/viewtopic-t-563146.html
> for debug output.

Please don't refer to forums.g.o. or any third-party links that contain needed info in bugs. Use bugzilla attachments for relevant info.
Comment 2 Mark Montgomery II 2007-06-04 19:25:36 UTC
Created attachment 121186 [details]
mencoder debug output
Comment 3 Mark Montgomery II 2007-06-04 19:27:21 UTC
Comment on attachment 121186 [details]
mencoder debug output

Ok.  Here's the debug output I posted in the forum.
Comment 4 TemplarKnight 2007-07-01 16:53:48 UTC
Any progress with this? Is it gentoo related or has to do with the app?
Comment 5 Mark Montgomery II 2007-07-01 21:34:18 UTC
(In reply to comment #4)
> Any progress with this? Is it gentoo related or has to do with the app?
> 

Not yet.
It's still doing it in mplayer-1.0.20070622-r1 on my system.
I can download and manually compile mplayer from the official source and there's no problem so it seems to be gentoo related, but I'm not really sure.
Comment 6 Steve Dibb (RETIRED) gentoo-dev 2007-08-15 06:58:48 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Any progress with this? Is it gentoo related or has to do with the app?
> > 
> 
> Not yet.
> It's still doing it in mplayer-1.0.20070622-r1 on my system.
> I can download and manually compile mplayer from the official source and
> there's no problem so it seems to be gentoo related, but I'm not really sure.
> 

Can you try with latest?  1.0.20070814.  Also, post emerge -pv mplayer, and updated emerge --info.  Thanks
Comment 7 Mark Montgomery II 2007-08-20 14:52:40 UTC
Still broken.

Emerge -pv
Calculating dependencies... done!
[ebuild   R   ] media-video/mplayer-1.0.20070814  USE="3dnow 3dnowext X a52 aac alsa bidi bl cdparanoia cpudetection dga dts dv dvb encode ggi gif gtk iconv jpeg lzo mad mmx mmxext mp3 musepack nas openal opengl png quicktime real rtc sdl speex sse sse2 tga theora truetype unicode v4l v4l2 vorbis x264 xanim xinerama xv xvid xvmc -aalib (-altivec) -amrnb -amrwb -arts -bindist -cddb -cdio -custom-cflags -directfb -doc -dvd -enca -esd -fbcon -ftp -ipv6 -ivtv -jack -joystick -libcaca -lirc -live -livecd -md5sum -mp2 -oss -pnm -pvr -radio -rar -samba -srt -ssse3 (-svga) -teletext -tivo (-vidix) (-win32codecs) -zoran" VIDEO_CARDS="nvidia -i810 -mga -s3virge -tdfx -vesa" 0 kB 
----------------------------------------------------------
Emerge info
Portage 2.1.2.12 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 20 Aug 2007 00:00:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac alsa amd64 amr avi bash-completion berkdb bidi bzip2 cdr cracklib crypt cups dbus dts dvb dvdr dvdread encode exif ffmpeg flac foomaticdb fortran gdbm ggi gif gimp gimpprint gnutls hal iconv jpeg kqemu lcms mad midi mikmod mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdflib perl plugins png ppds python quicktime readline reflection sdl session smp speex spell ssl startup-notification svg tcpd theora tiff unicode usb v4l v4l2 vorbis x264 xcomposite xinerama xml xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="leadtek_0010" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 8 Björn Ruberg 2007-09-25 21:52:57 UTC
Confirmed. This is very bad, I need to record something.

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.2.1, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Sun, 23 Sep 2007 19:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.16
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -fno-ident -mfpmath=sse -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer -fno-ident -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer prelink sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi aiglx alsa amd64 apache2 audacious berkdb bitmap-fonts bzip2 bzlib cgi cli completion cpudetection cracklib crypt ctype cups dba dbus dga directfb divx divx4linux dri dv dvb dvd dvdr dvdread encode fbcon ffmpeg gdbm gimp glibc-omitfp glitz gpm gstreamer gtk hal haststyle hddtempbash iconv imlib imlib2 insecure-drivers ip3100 ipv6 isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kqemu lib++ libsamplerate lirc live logitech-mouse lzw-tiff mad midi mmx mmxext modplug mpeg4 mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin opengl openmp openssh pam pcre pdf perl php pic pixusip3100 png pppd python qt3 quicktime readline realmedia reflection rtc session slang spell spl sse sse2 ssl ssse3 svg tcpd threadsafe truetype truetype-fonts type1 type1-fonts unicode usb userlocales v4l v4l2 videos visualization vorbis wma wmp x264 xcomposite xinerama xml xorg xscreensaver xv xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Reimar Döffinger 2007-09-26 10:35:09 UTC
Does it also happen without -endpos? The crash is only _after_ mencoder finished recording so it is mostly a "cosmetic" issue.
Comment 10 Mark Montgomery II 2007-09-26 14:33:24 UTC
It's not crashing after it's done, it's crashing when it starts.
It looks at the stream, then immediately stops/segfaults.
(and keep in mind that it's specific to the composite input, the tv input works fine - though I haven't tried the svideo input, so don't know if it's broken there or not -- and it also seems specific to the gentoo build, as I have a self-compiled normal copy that works fine)
And yes, I am using -endpos in the script.

From the debug:
==> Found video stream: 0
v4l2: get format: YVU420
v4l2: get fps: 29.970030
v4l2: get width: 512
v4l2: get height: 384
v4l2: set audio samplerate: 48000
v4l2: 0 frames successfully processed, 0 frames dropped.
v4l2: up to 0 video frames buffered.

Program received signal SIGSEGV, Segmentation fault.
Comment 11 Reimar Döffinger 2007-09-26 15:12:56 UTC
Since it crashes in demux_close_tv it _is_ done at the moment when it crashes. Obviously you do not want it to be done at that time but to actually record something before, but that is a different (though maybe related) issue.
And you did not answer the most important question: does this problem also happen without -endpos? (and there is also the related question if it also happens when you use really high values for endpos, like 50 hours).
I am not sure that -endpos can currently work with tv:// (and it works weirdly in many other cases as well).
Other things to try include not using audiorate=48000, using immediatemode=0, and -nosound
Comment 12 Steve Dibb (RETIRED) gentoo-dev 2009-08-03 20:04:10 UTC
Old bug, please test and reopen if it's a problem with newer ( 1.0_rc2_p20090731 )