Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277498 - media-video/ffmpeg-0.5-r1: stdout piping is broke
Summary: media-video/ffmpeg-0.5-r1: stdout piping is broke
Status: RESOLVED DUPLICATE of bug 274255
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-12 12:22 UTC by Matt
Modified: 2009-07-12 18:06 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 Matt 2009-07-12 12:22:41 UTC
(you may want to read this thread in the forums for LONG outputs:
http://forums.gentoo.org/viewtopic-t-779558.html)

I've been using ffmpeg in a script for a couple years now to take in various sound files (mostly for taking the audio out of a .vob and sending it through lame).  This is no longer working, and I'm not sure when it started but with in the past few weeks.

Even if I do something simple like:

ffmpeg -i mp3_file.mp3 -f wav - | lame - mp3_file_2.mp3

The resulting file is corrupt and will not play.  I've isolated it down to ffmpeg by:

flac -dc flac_file.flac | lame - converted_flac.mp3

and that works fine, so the issue isn't with lame.

In the thread I reference, someone else ran a similar test of ffmpeg (just typing it a different way) and found exactly what I'm seeing.  ffmpeg is not sending data to stdout properly.  In the test the person did, he just sent a .wav through ffmpeg back to a .wav and the result was unplayable.

Again, I've been doing it this way for a couple years.  I usually use it almost weekly, I just haven't had to for a few now, so I don't know when it started.  That said the version hasn't changed since May:

     Fri Feb  6 06:19:14 2009 >>> media-video/ffmpeg-0.4.9_p20090201
       merge time: 4 minutes and 44 seconds.

     Wed May 13 21:39:19 2009 >>> media-video/ffmpeg-0.5-r1
       merge time: 5 minutes and 8 seconds.

     Tue Jun 30 18:43:10 2009 >>> media-video/ffmpeg-0.5-r1
       merge time: 6 minutes and 46 seconds.

     Fri Jul 10 06:59:34 2009 >>> media-video/ffmpeg-0.5-r1
       merge time: 5 minutes and 27 seconds.

(I snipped out merges dating back to July of 2007 since they are not relevant)



Reproducible: Always

Steps to Reproduce:
1. ffmpeg -i some.vob -f wav - | lame - audio.mp3

Actual Results:  
Corrupted .mp3

Expected Results:  
Playable .mp3.  It doesn't have to be a .vob, any file type can be used as an example.  This is broke all around.

$ emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-tuxonice-r3 i686)
=================================================================                                              
System uname: Linux-2.6.29-tuxonice-r3-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.0                    
Timestamp of tree: Sat, 11 Jul 2009 23:45:01 +0000                                                             
app-shells/bash:     3.2_p39                                                                                   
dev-java/java-config: 2.1.8-r1                                                                                 
dev-lang/python:     2.5.4-r3                                                                                  
dev-util/cmake:      2.6.4                                                                                     
sys-apps/baselayout: 1.12.11.1                                                                                 
sys-apps/sandbox:    1.6-r2                                                                                    
sys-devel/autoconf:  2.13, 2.63                                                                                
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.18-r3                                                                                   
sys-devel/gcc-config: 1.4.1                                                                                    
sys-devel/libtool:   1.5.26                                                                                    
virtual/os-headers:  2.6.27-r2                                                                                 
ACCEPT_KEYWORDS="x86"                                                                                          
CBUILD="i686-pc-linux-gnu"                                                                                     
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -w"                                                     
CHOST="i686-pc-linux-gnu"                                                                                      
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"                                     
CXXFLAGS="-O2 -march=prescott -pipe -ftracer -fomit-frame-pointer -w"                                                                                          
DISTDIR="/usr/portage/distfiles"                                                                                                                               
EMERGE_DEFAULT_OPTS="--keep-going"                                                                                                                             
FEATURES="candy distlocks fixpackages metadata-transfer noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"                                                                                                                                              
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                          
LANG="en_US.ISO-8859-1"                                                                                                                                        
LC_ALL="en_US.ISO-8859-1"                                                                                                                                      
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"                                                                                       
LINGUAS="en en_US"                                                                                                                                             
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete-before --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /opt/portage"
SYNC="rsync://blackhole/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi adns ads aiglx alsa amr amrnb amrwb apache2 audacious autoipd avahi bash-completion berkdb blender-game bonjour branding bzip2 cairo cdparanoia cdr chardet clamav cli consolekit cracklib crypt css cups curl custom-cflags custom-optimization dbus dell devil dga directfb disk-partition dmx dri dv dvb dvd dvdr dvdread eap-sim eds emboss emerald encode evo exif faac faad fam fbcon fbcondecor fbsplash ffmpeg firefox flac foomaticdb fortran gdbm geoip gif gimp glib glitz gmp gnutls gphoto2 gpm gtk hal hbci iconv id3tag idn imagemagick insecure-savers ioctl ipv6 irda isc isdnlog jbig jfs john jpeg jpeg2k kde kde4 kdehiddenvisibility kerberos kipi ladspa lame laptop lcms ldap libcaca libnotify lm_sensors logrotate lzo mad mbrola md5sum midi mikmod mmx mmxext mng mp3 mp4 mpeg mpi mudflap ncurses network networkmanager nis nls nptl nptlonly nsplugin ntfs ntlm oav offensive ofx ogg opengl openmp openntpd pam pcre pdf perl perlsuid plugins png policykit ppds pppd python qt3 qt3support qt4 quicktime rar rdesktop readline reflection reiserfs samba scanner sdl session sftplogging slp smp sndfile sox speex spell spl sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs tcpd theora threads thumbnail tidy tiff timidity toolbar tools truetype unicode unsupported usb userlocales utempter v4l v4l2 vcd vidix vorbis wavpack webkit wifi win32codecs winbind wma wmf wmp x264 x86 xcb xcomposite xfs xft xinerama xml xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc yv12 zeroconf zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958    ioplug ladspa lfloat linear meter mulaw multi null rate dsnoop extplug file hooks       ladspa lfloat linear meter 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 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev       dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120      kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica largan lg_gsm   mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859        pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3   samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55       soundvision spca50x sq905 stv0674 stv0680 sx330z toshiba_pdrm11 konica_qm150 sipix_blink" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="fbdev i810 intel nvidia "
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-07-12 18:06:05 UTC

*** This bug has been marked as a duplicate of bug 274255 ***