Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333079 - media-video/mkvtoolnix-2.9.9: mkvmerge corrupt file with media-libs/libmatroska-0.9.0
Summary: media-video/mkvtoolnix-2.9.9: mkvmerge corrupt file with media-libs/libmatros...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on: 329633
Blocks:
  Show dependency tree
 
Reported: 2010-08-16 22:49 UTC by Sébastien P.
Modified: 2011-02-11 22:22 UTC (History)
3 users (show)

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 Sébastien P. 2010-08-16 22:49:08 UTC
Recently I saw that mkvmerge produce file bad file when i use it.
When I mux a file (MKV X264 AC3, did not try other format) in order to add a subtitle (srt), the output file is unasable (only sound).

revdep did not see anythink and reinstall changed nothing.


I read my log and i saw to update:libml and libmatroska (https://bugs.gentoo.org/show_bug.cgi?id=329629 and https://bugs.gentoo.org/show_bug.cgi?id=329631).

I mask these version:
>=dev-libs/libebml-0.8.0
>=media-libs/libmatroska-0.9.0

Recompiled both of them and mkvtoolnix and it work now.

I think, Gentoo should use only libmatroska-0.8* for <mkvtoolnix-3. 
<dev-libs/libebml-0.8.0 is already a dependance of libmatroska 0.8.1

Reproducible: Always

Steps to Reproduce:
1.Use last stable version of mkvtoolnix (2.9.9) to add subtitle to a MKV file
Actual Results:  
Bad mux file

Expected Results:  
Mux file with all tracks :)

Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-1.12.13
Timestamp of tree: Mon, 16 Aug 2010 21:45:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j2"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac accessibility acl acpi alsa amd64 apache2 apm audiofile avahi berkdb bzip2 cdparanoia cdr cli cracklib crypt css cups cxx dbus dri dts dvd dvdr dvdread encode exif ffmpeg flac fontconfig fortran gdbm gif gpm gtkstyle gzip hal iconv ipv6 java java6 jpeg jpeg2k kde kontact lm_sensors lzma mdnsresponder-compat mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nforce2 nls nntp nocd nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php plasma pmu png posix pppd pulseaudio python qt3support qt4 quicktime raw rdesktop readline reflection rss session spell spl srt sse sse2 ssl sysfs syslog tcpd theora threads tidy tiff truetype unicode v4l2 videos vorbis w32codecs wavpack wmf wxwindows x264 xattr xml xomposite xorg xosd xv 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Róbert Čerňanský 2010-09-03 07:17:33 UTC
Confirmed that downgrading to libebml-0.7.8-r1 and libmatroska-0.8.1 fixed the issue.

mkvinfo shows that a "corrupted" .mkv file does not have "Doc type: matroska" entry comparing to "good" .mkv.  Though I'm not sure if that's the reason why the file is no playable.

$ mkvinfo <file.mkv>
+ EBML head
|+ Doc type: matroska     <--- this entry is missing in "corrupted" .mkv
|+ Doc type version: 2
|+ Doc type read version: 2
...

I've tried to play the "corrupted" file with mplayer and ffplay, none of them was able to play it.

Running stable amd64 here.

# emerge -pv libebml libmatroska mkvtoolnix 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-libs/libebml-0.8.0 [0.7.8-r1] 0 kB
[ebuild     U ] media-libs/libmatroska-0.9.0 [0.8.1] 0 kB
[ebuild   R   ] media-video/mkvtoolnix-2.9.9  USE="bzip2 flac qt4 wxwidgets -debug -lzo" 0 kB
Comment 2 Rich Gannon 2010-12-02 03:45:07 UTC
I can confirm this problem is still there.  I tried muxing a video to remove unwanted audio tracks and even if I use mkvmerge to mux the video with no changes the resulting file is corrupt.

After masking the two packages as mentioned by the original reporter, this solves the problem.

I am running x86 with mkvtoolnix-2.9.9
Comment 3 Sébastien P. 2011-02-11 22:12:54 UTC
No longuer a real issue since 4.4.0 is stable (#329633) or 3.4.0 (PPC).
Comment 4 Tim Harder gentoo-dev 2011-02-11 22:22:49 UTC
Closing since a newer version is now stable.