Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397375 - media-video/ripmake with transcode-1.1.7 - FATAL: can't fetch transcode version!
Summary: media-video/ripmake with transcode-1.1.7 - FATAL: can't fetch transcode version!
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 12:57 UTC by Den_M
Modified: 2012-02-20 05:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Den_M 2012-01-02 12:57:56 UTC
media-video/ripmake-1.39 can't work with media-video/transcode-1.1.7

It seems, that transcode have changes that break compability for ripmake.


Reproducible: Always

Steps to Reproduce:
For example, trying to use it:

#  ripmake -t 2 -C 1500 /media/store/video/_work/dvd/ avi
ripmake: $Revision: 1.39 $ $Date: 2004/09/12 18:13:53 $ 
FATAL: can't fetch transcode version!

Ok, grepping /usr/bin/ripmake and editing line 303:
-  my($tcver) = run_cmd("transcode 2>&1 | head -n 1",0);
+  my($tcver) = run_cmd("transcode --version 2>&1 | head -n 1",0);

Running again:

 ripmake -t 2 -C 1500 /media/store/video/_work/dvd/ avi
ripmake: $Revision: 1.39 $ $Date: 2004/09/12 18:13:53 $ 
  transcode(1.1.7), pgmfindclip(found), chaplin(found), mpglen(found)

Probing '/media/store/video/_work/dvd' (title 2) with 'tcprobe'...
  audio tracks:
    00=48kHz,2ch(0x2000) 
  vcodec: 'dvd' (detected)
  acodec: 'ac3' (detected)
  size:   720x576     aspect: 1.8:1 (probed)
  frames: 098025    playtime: 01:05:21.000
  fps:    25.000         frc: 3 (25.0 PAL)
Searching clipping values for input frames...
  generating 5 sample images with transcode...
    chapter 02/frame 016: dvd-SAMPLE-00.pgm (extracted)
    chapter 03/frame 016: dvd-SAMPLE-01.pgm (extracted)
    chapter 04/frame 016: dvd-SAMPLE-02.pgm (extracted)
    chapter 05/frame 016: dvd-SAMPLE-03.pgm (extracted)
    chapter 06/frame 016: dvd-SAMPLE-04.pgm (extracted)
  finding clip region (pgmfindclip -b 1,1 -f 16,16 -t 80,100 -o 0,0 ): 16,0,16,0
  final clip: 16,0,16,0

Requested audio output:
  audio0:   128 kbps  44100 kHz  2 chan [src=#0:0x2000]
  total:    128 kbps
Calculating video output rate for CD sets...
  space for movie:    1500 MB = 12582912000 bits
  total audio rate:    128 kbps
  required mux rate:    60 kbps
  1 cd video rate:    3019 kbps   120759 bits per frame
     [restricting max CDs to 2; vrate already 6227!]
  2 cd video rate:    6227 kbps   249079 bits per frame
Searching suitable output size for square pixels display...
  enumerating framesize from 512 to 640, modulo 16
    pick entries with aspect ratio error <= 2.5%
    512x272:        0 %  OK
    528x288:      2.6 %  too large
    544x288:     0.35 %  OK
    560x304:      2.1 %  OK
    576x304:     0.66 %  OK
    592x320:      1.7 %  OK
    608x320:     0.94 %  OK
    624x336:      1.3 %  OK
    640x336:      1.2 %  OK
Find optimal number of CDs for encoding...
  listing frame size x #CDs in bpp (avg. bits per pixel)
    pick entries with bpp in [0.3;0.65]
        #CD:       01        02   
     vrates:     3019      6227   
    512x272:    0.867      1.79    
    544x288:    0.771      1.59    
    560x304:    0.709      1.46    
    576x304:     0.69      1.42    
    592x320:    0.637**    1.31    
    608x320:    0.621**    1.28    
    624x336:    0.576**    1.19    
    640x336:    0.562**    1.16    
  found 4 suitable resolution(s)
  using #1 CD, vrate: 3019 kbps, frame size: 640x336
Recalculating videorate for each DVD chapter set... (chaplin)
  chapters 01-07: 098024 frames
    video rate:   3020 kbps
    total rate:   3208 kbps
    cd size:      1499 MB
  total frames:   98024 (98025 reported)

Derived video output:
  tv norm:  'pal'
  fps:      25.000        frc: 3
  pulldown: no       anamorph: no
  size:     640x336    aspect: 1.9:1
  vrate:    vbr 3020 kbps
Input->output frame transformation...
  input:   720x544    asr: 1.9:1
  output:  640x336    asr: 1.9:1
  output height:   336 (same aspect)
  scale mode:      only shrink
  scale modulo:    16 = fast
  transcode param: -j 16,0,16,0 -B 13,5,16 

Generating makefile...
  file:   'dvd-avi.mak'
    emitting make variables...
Use of uninitialized value in string ne at /usr/bin/ripmake line 2811.
  flavor: 'avi'
  vcodec: 'xvid'  options: ''
  acodec: 'raw'
    writing rules...
  global: all clean
  sample: sample clean-sample
     rip: rip rip-CD1 clean-rip clean-rip-CD1
ready.


Now trying to rip dvd:

# make -f dvd-avi.mak rip
--- video-pass1-CD1 ---
transcode -i /media/store/video/_work/dvd -T 2,01-07,1 -x dvd,ac3 -y xvid,null \
	-j 16,0,16,0 -B 13,5,16  -V -f 25.000,3 --export_fps 25,3 \
	-a 0  -b 128,0,5 -E 44100 --a52_dolby_off -J resample \
	-w 3020  \
	-R 1,dvd-avi-CD1-v.log \
	-J astat=dvd-avi-CD1-a0.scl \
	
[transcode] critical: bad argument for -V/--video_format, should be one of: yuv420p (default), yuv422p, rgb24
make: *** [dvd-avi-CD1-v.log] Error 1


It's workarounded by changing dvd-avi.mak (added after '-V' parameter 'yuv420p'), but what string need to change in /usr/bin/ripmake I don't know.




emerge --info
Portage 2.1.10.22 (default/linux/x86/10.0, gcc-4.5.2, glibc-2.12.1-r1, 3.0.6-gentoo.den_m i686)
=================================================================
System uname: Linux-3.0.6-gentoo.den_m-i686-AMD_E-350_Processor-with-gentoo-2.1
Timestamp of tree: Sun, 01 Jan 2012 21:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1
dev-util/cmake:           2.8.4
dev-util/pkgconfig:       0.23
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         1.6-r2
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.3.4, 4.5.2
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.12.1-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/src/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aacs acl acpi alsa bash-completion bindist bluray bzip2 cairo cli cracklib crypt cxx dbus dga dri dvd fortran gdbm gif gpm gtk iconv jpeg lcms libnotify maildir midi mime minimal mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly offensive ogg opengl openmp pam png posix pppd quicktime readline session sockets spell sse sse2 ssl sysfs tcpd threads tiff truetype unicode usb vorbis x86 xcomposite xinerama xorg xosd xpm xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-02-20 05:56:19 UTC
removed from portage, closing