Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384225 - media-libs/mlt-0.7.2: automagic dependency on media-libs/swfdec
Summary: media-libs/mlt-0.7.2: automagic dependency on media-libs/swfdec
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 18:31 UTC by Sławomir Nizio
Modified: 2012-03-28 20:41 UTC (History)
0 users

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


Attachments
ebuild patch (mlt-ebuild.patch,1.01 KB, patch)
2011-09-23 18:42 UTC, Sławomir Nizio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2011-09-23 18:31:52 UTC
If media-libs/swfdec is present, /usr/lib/mlt/libmltswfdec.so is created which links to libswfdec-0.8.so.0.
If media-libs/swfdec is not present during compilation, such a lib is not created.
Attaching patch that fixes it.

However it's not the full story, unfortunately.
If mlt is compiled without --disable-swfdec and that lib is created and linked to libswfdec-0.8.so.0:
+ if swfdec is installed on system, /usr/bin/melt (command line player etc. that comes with mlt) is NOT able to play .swf files (!); the error is:
- cut -
SWFDEC: ERROR: swfdec_resource.c(244): swfdec_resource_stream_target_parse: no decoder found for format
SWFDEC: ERROR: swfdec_as_context.c(168): swfdec_as_context_abort: abort: This is not a Flash file
- cut -
and Openshot 1.3.1 (not in Portage…) is unable to import .swf files;
+ if swfdec is UNinstalled, melt plays fine a .swf file and Openshot is happy too.

Because of the above, you may consider hardcoding --disable-swfdec. There's probably nothing that requires /usr/lib/mlt/libmltswfdec.so (and the revdep list on mlt is short).

-----
`file' reports it's: Macromedia Flash Video
emerge --info:
Portage 2.2.0_alpha51 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 3.0.0-sabayon i686)
=================================================================
System uname: Linux-3.0.0-sabayon-i686-AMD_Athlon-tm-_XP_1700+-with-gentoo-2.0.3
Timestamp of tree: Fri, 16 Sep 2011 14:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1, 2.7.2
dev-util/ccache:          2.4-r8
dev-util/cmake:           2.8.4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3-r1::sabayon
sys-apps/openrc:          0.8.3-r1::sabayon
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38
sys-libs/glibc:           2.12.2::sabayon
Repositories: gentoo user_defined
Installed sets: @system
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config/kdm /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/grub.d /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect 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="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh"
MAKEOPTS="-j2 -s "
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx aim alsa artswrappersuid audiofile avahi bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi emboss encode exif fam fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gdu gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hfs iconv icq ieee1394 imap inotify ipod ipv6 irc irda jabber jack jfs joystick jpeg kde kdehiddenvisibility kerberos lame lcd lcms ldap libnotify live lm_sensors lzo mad mail matroska mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mudflap musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pango pcmcia pcre pda pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 rar rdesktop readline reiserfs rss scanner sdl session slp speex spell ssl startup-notification stream svg sysfs tcpd theora tiff truetype udev unicode usb v4l v4l2 visualization vorbis wifi win32codecs wmf x264 x86 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" 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 keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh" LIRC_DEVICES="audio audio_alsa serial" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeonhd" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Sławomir Nizio 2011-09-23 18:42:50 UTC
Created attachment 287545 [details, diff]
ebuild patch

Adds local USE flag: swfdec.
Comment 2 Sławomir Nizio 2011-09-24 11:48:59 UTC
Same thing is with media-libs/mlt-0.7.4 (not in Portage, I did a quick dirty bump on my system) wrt its unability to support .swf when media-libs/swfdec is installed.
Comment 3 Alexis Ballier gentoo-dev 2012-02-25 22:05:28 UTC
here melt was able to play compressed flash files with swfdec and not without, so I applied your patch, thanks!
Comment 4 Sławomir Nizio 2012-02-26 00:14:26 UTC
(In reply to comment #3)
> here melt was able to play compressed flash files with swfdec and not without,
> so I applied your patch, thanks!

Good!

Could you tell me if that file was a video or audio only?
My test file is a video, "Macromedia Flash Video" according to the "file" utility.
I think of filing a bug upstream if melt freezes on such a file (which occurs to me).

App gnome-extra/swfdec-gnome doesn't seem to use MLT, only media-libs/swfdec directly and handles my test file correctly: shows a message ("xxx is not a Flash file"), while melt simply "freezes".

This is an upstream issue so this bug which is about missing dep. can be closed anyway, I think.
Comment 5 Alexis Ballier gentoo-dev 2012-02-26 00:37:58 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > here melt was able to play compressed flash files with swfdec and not without,
> > so I applied your patch, thanks!
> 
> Good!
> 
> Could you tell me if that file was a video or audio only?
> My test file is a video, "Macromedia Flash Video" according to the "file"
> utility.

Macromedia Flash data (compressed), version 6 (according file).
Appararently libavformat doesnt handle these compressed files, so without swfdec, melt rejects them as it falls back on libavformat for flash.
Comment 6 Sławomir Nizio 2012-02-26 00:50:36 UTC
(In reply to comment #5)
> without swfdec, melt rejects them
My case is that it rejects *with* swfdec, anyway:
> Macromedia Flash data (compressed), version 6 (according file).
it means your file is different than mine, so it doesn't anti-confirm (btw. head -c 3 my-file.swf → "FLV").

That's what I wanted to know. Thanks. :)
Comment 7 Sławomir Nizio 2012-03-28 20:41:32 UTC
Just a note, it has been addressed upstream in a way described here: http://sourceforge.net/tracker/?func=detail&aid=3494517&group_id=96039&atid=613414 (a month ago already).