Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264235 - net-misc/mediatomb-0.12.0 version bump
Summary: net-misc/mediatomb-0.12.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 270510
Blocks:
  Show dependency tree
 
Reported: 2009-03-30 02:15 UTC by BT
Modified: 2010-03-29 22:33 UTC (History)
8 users (show)

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


Attachments
PCM transcoding patch (mediatomb-0.11.0-pcm.patch,5.73 KB, patch)
2009-03-30 02:17 UTC, BT
Details | Diff
mediatomb svn ebuild (mediatomb-9999.ebuild,3.63 KB, text/plain)
2009-03-30 22:51 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.67 KB, text/plain)
2009-03-30 22:59 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.76 KB, text/plain)
2009-04-15 12:19 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.39 KB, text/plain)
2009-05-19 12:47 UTC, BT
Details
mediatomb confd file (mediatomb.confd,847 bytes, text/plain)
2009-05-19 12:49 UTC, BT
Details
mediatomb-0.11.0 revision bump (mediatomb-0.11.0-r1.ebuild,3.49 KB, text/plain)
2009-05-19 12:52 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.26 KB, text/plain)
2009-08-17 06:33 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.78 KB, text/plain)
2009-08-17 06:35 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.38 KB, text/plain)
2009-08-17 10:43 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.77 KB, text/plain)
2009-08-17 10:44 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.38 KB, text/plain)
2009-08-17 12:27 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.43 KB, text/plain)
2009-08-23 04:37 UTC, BT
Details
mediatomb initd file (mediatomb.initd,541 bytes, text/plain)
2009-08-23 04:40 UTC, BT
Details
mediatomb confd file (mediatomb.confd,732 bytes, text/plain)
2009-08-23 04:42 UTC, BT
Details
Live Ebuild (mediatomb-9999.ebuild,3.45 KB, text/plain)
2009-09-02 20:00 UTC, Mike Lothian
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.38 KB, text/plain)
2009-12-17 03:58 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.77 KB, text/plain)
2009-12-17 04:03 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.81 KB, text/plain)
2009-12-24 23:35 UTC, BT
Details
fixed mp4v2.h include file in configure.ac (mediatomb-9999.ebuild,3.69 KB, text/plain)
2010-01-02 20:42 UTC, Theunis
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.54 KB, text/plain)
2010-01-05 01:54 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.93 KB, text/plain)
2010-01-05 01:55 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.93 KB, text/plain)
2010-01-09 04:53 UTC, BT
Details
mediatomb svn ebuild (mediatomb-9999.ebuild,3.47 KB, text/plain)
2010-01-14 22:23 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.74 KB, text/plain)
2010-01-14 22:25 UTC, BT
Details
mediatomb config (mediatomb-9999.config,5.82 KB, text/plain)
2010-01-25 06:54 UTC, BT
Details
mediatomb 0.12.0 ebuild (mediatomb-0.12.0.ebuild,3.22 KB, text/plain)
2010-03-27 00:45 UTC, BT
Details
mediatomb 0.12.0 config (mediatomb-0.12.0.config,6.04 KB, text/plain)
2010-03-27 00:47 UTC, BT
Details
mediatomb 0.12.0 config (mediatomb-0.12.0.config,6.04 KB, text/plain)
2010-03-27 01:07 UTC, BT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BT 2009-03-30 02:15:56 UTC
This patch adds the ability for MediaTomb to transcode audio files (e.g. FLAC) to PCM. This is especially useful for UPnP clients that have limited codec support i.e. PlayStation 3

The patch was taken from MediaTomb SVN r1821 which was committed some 10 months ago. I have been using the patch since then and have had no issues with it. The MediaTomb devs also reviewed it and gave it the all clear.

The next MediaTomb release 0.12.0 will have this fix, but I doubt it will be released anytime soon since the devs are distracted by other things at the moment :)

Sine I mentioned this patch on the Gentoo Forums many users have contacted me directly requesting it. I hope by adding it to Portage it will make things much easier for everyone.

Reproducible: Always
Comment 1 BT 2009-03-30 02:17:03 UTC
Created attachment 186703 [details, diff]
PCM transcoding patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-03-30 14:52:41 UTC
I wonder if it's not easier to simply snapshot mediatomb from svn...
Comment 3 BT 2009-03-30 22:19:55 UTC
(In reply to comment #2)
> I wonder if it's not easier to simply snapshot mediatomb from svn...

I agree :) I will shortly attach a snapshot based on my SVN ebuild. It also comes with a better default config.xml which will make setting up MediaTomb a lot easier for users.
Comment 4 BT 2009-03-30 22:51:57 UTC
Created attachment 186808 [details]
mediatomb svn ebuild

This is just the SVN ebuild as I wasn't sure how to deal with there being no snapshot tarball.
Comment 5 BT 2009-03-30 22:59:10 UTC
Created attachment 186811 [details]
mediatomb config

This config.xml has good defaults for transcoding, thumbnailer, apple trailers and youtube.
Comment 6 BT 2009-04-04 23:56:19 UTC
I will just wait for MediaTomb 0.12.0 so I'm closing this bug.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-05 01:27:30 UTC
I actually would like to add this to portage asap, just having a bit of a hard time to find time to get around it :/
Comment 8 BT 2009-04-05 01:48:16 UTC
(In reply to comment #7)
> I actually would like to add this to portage asap, just having a bit of a hard
> time to find time to get around it :/

No problem :) I closed it since all I was really after was PCM support for stable 0.11.0. Although SVN is very stable some features like DVD image parsing don't work too well, so I didn't want to add any further stress to the MediaTomb devs by adding this. However since I help out on their irc and forums it should be okay ;)
Comment 9 BT 2009-04-15 12:19:25 UTC
Created attachment 188434 [details]
mediatomb config

Minor update that enables PS3 compatibility.
Comment 10 BT 2009-05-19 12:47:15 UTC
Created attachment 191770 [details]
mediatomb svn ebuild

Updated ebuild with the following changes.

1. Reworded the MySQL elog section in pkg_post inst() so that it no longer refers to specific numbered sections in the MediaTomb documentation as they are likely to change with every release.

2. Replaced the MEDIATOMB_HOMEDIR, MEDIATOMB_CONFDIR and MEDIATOMB_PIDDIR variables with hard-coded values as there isn't any benefit to having these values stored as variables.

3. No longer create the /var/run/mediatomb directory in src_install() as this is a limitation of 0.11.0 which dropped privileges before it could create the PID file. This will also require an updated mediatomb.confd file and a 0.11.0 revision bump which seds the location of the PID file that it needs. This will then allow for a smooth upgrade once 0.11.0 is eventually removed from the tree.
Comment 11 BT 2009-05-19 12:49:54 UTC
Created attachment 191772 [details]
mediatomb confd file

mediatomb confd with new pid location
Comment 12 BT 2009-05-19 12:52:43 UTC
Created attachment 191773 [details]
mediatomb-0.11.0 revision bump

mediatomb-0.11.0 revision bump that seds the location of the PID files that it needs.
Comment 13 BT 2009-05-19 12:57:41 UTC
Reopening...
Comment 14 mikko markko 2009-07-13 10:08:20 UTC
Any progress here? Last.fm lib is now in portage tree. It would be nice to have proper use flag in mediatomb-svn ebuild. I remember that there were patch to use last.fm lib in mediatomb...? 

Also new media-libs/libmp4v2-1.9.0 seems to broke mp4 support in svn ebuild...
Comment 15 BT 2009-08-17 06:33:36 UTC
Created attachment 201501 [details]
mediatomb svn ebuild

Updated ebuild with the following changes.

1. Ebuild now uses EAPI 2 USE deps for FFmpeg and FFmpegThumbnailer. 

2. Renamed ffmpegthumbnailer USE to thumbnail. This makes it consistent with most other ebuilds that specify a USE flag for thumbnailers.

3. FFmpeg is no longer optional. Since the new config.xml comes with a working transcoding section that uses FFmpeg, it makes sense to have it installed. FFmpeg is also used for metadata extraction and FourCC detection so it's quite useful to have it enabled.
Comment 16 BT 2009-08-17 06:35:36 UTC
Created attachment 201502 [details]
mediatomb config

Updated config.xml which adds -threads 2 to the FFmpeg transcoding profiles.
Comment 17 BT 2009-08-17 06:46:23 UTC
(In reply to comment #14)
> Any progress here? Last.fm lib is now in portage tree. It would be nice to have
> proper use flag in mediatomb-svn ebuild. I remember that there were patch to
> use last.fm lib in mediatomb...? 

This patch was created by the author of lastfmlib and posted to the MediaTomb forum so it's not even in SVN. The MediaTomb devs said they will take a look at it, but since they won't be working on MediaTomb for at least the rest of the year, don't expect to see any progress on last.fm support.

> Also new media-libs/libmp4v2-1.9.0 seems to broke mp4 support in svn ebuild...

This is a known issue and from what I understand needs to be fixed by upstream. In the meantime you can build MediaTomb with -mp4 to get around this issue.
Comment 18 BT 2009-08-17 10:43:45 UTC
Created attachment 201518 [details]
mediatomb svn ebuild 

Reverted the forced FFmpeg dependency after getting some emails about this. It's entirely possible to build MediaTomb without FFmpeg support and not require transcoding as well.
Comment 19 BT 2009-08-17 10:44:37 UTC
Created attachment 201520 [details]
mediatomb config

Removed the -threads option from the audio transcoding profile since it has no effect.
Comment 20 BT 2009-08-17 12:27:45 UTC
Created attachment 201527 [details]
mediatomb svn ebuild 

Fix ffmpegthumbnailer support which was broken in previous ebuild due to copy & paste :>
Comment 21 mikko markko 2009-08-18 20:17:06 UTC
(In reply to comment #20)
> Created an attachment (id=201527) [edit]
> mediatomb svn ebuild 
> 
> Fix ffmpegthumbnailer support which was broken in previous ebuild due to copy &
> paste :>
> 

Thanks for fixing this up. Compiles now fine again here...
Comment 22 BT 2009-08-23 04:37:18 UTC
Created attachment 201977 [details]
mediatomb svn ebuild 

This update fixes #281432.
Comment 23 BT 2009-08-23 04:40:09 UTC
Created attachment 201979 [details]
mediatomb initd file

Updated init.d file to fix bug #274627.
Comment 24 BT 2009-08-23 04:42:59 UTC
Created attachment 201981 [details]
mediatomb confd file

Updated conf.d file to fix bug #274627. Users who need to specify an interface or ip should now set it via the MEDIATOMB_OPTIONS var.
Comment 25 Mike Lothian 2009-09-02 20:00:59 UTC
Created attachment 203013 [details]
Live Ebuild

Updated ebuild to keep QA happy
Comment 26 Andrew Frink 2009-09-16 16:21:16 UTC
(In reply to comment #25)
> Created an attachment (id=203013) [edit]
> Live Ebuild
> 
> Updated ebuild to keep QA happy
> 

The line in this ebuild that reads "eautoreconf" needs to be "eautoreconf -i" for the current svn to work correctly. As it needs to copy missing auxiliary files. If an updated ebuild needs to uploaded for this change let me know and i can.
Comment 27 rj rooke 2009-09-18 22:41:14 UTC
(In reply to comment #17)
> (In reply to comment #14)
> > Any progress here? Last.fm lib is now in portage tree. It would be nice to have
> > proper use flag in mediatomb-svn ebuild. I remember that there were patch to
> > use last.fm lib in mediatomb...? 
> 
> This patch was created by the author of lastfmlib and posted to the MediaTomb
> forum so it's not even in SVN. The MediaTomb devs said they will take a look at
> it, but since they won't be working on MediaTomb for at least the rest of the
> year, don't expect to see any progress on last.fm support.
> 
> > Also new media-libs/libmp4v2-1.9.0 seems to broke mp4 support in svn ebuild...
> 
> This is a known issue and from what I understand needs to be fixed by upstream.
> In the meantime you can build MediaTomb with -mp4 to get around this issue.
> 

Comment 28 rj rooke 2009-09-18 22:49:00 UTC
(In reply to comment #17)
> (In reply to comment #14)
> > Any progress here? Last.fm lib is now in portage tree. It would be nice to have
> > proper use flag in mediatomb-svn ebuild. I remember that there were patch to
> > use last.fm lib in mediatomb...? 
> 
> This patch was created by the author of lastfmlib and posted to the MediaTomb
> forum so it's not even in SVN. The MediaTomb devs said they will take a look at
> it, but since they won't be working on MediaTomb for at least the rest of the
> year, don't expect to see any progress on last.fm support.
> 
> > Also new media-libs/libmp4v2-1.9.0 seems to broke mp4 support in svn ebuild...
> 
> This is a known issue and from what I understand needs to be fixed by upstream.
> In the meantime you can build MediaTomb with -mp4 to get around this issue.
> 

Sorry about the extra "reply", but if interested, you can temporarily hack your way around the libmp4v2 error by creating an mp4.h link in the mp4v2 includes directory and by adding an include path to the ebuild: --with-libmp4v2-h=/usr/include/mp4v2 - who knows what else that breaks, but mediatomb compiles, runs and links with libmp4v2...

ls -al /usr/include/mp4v2/mp4.h 
lrwxrwxrwx 1 root root 7 Sep 18 15:30 /usr/include/mp4v2/mp4.h -> mp4v2.h

mediatomb-9999.ebuild inside src_configure():

	if use mp4; then
		myconf="${myconf} --with-libmp4v2-h=/usr/include/mp4v2"
	fi
Comment 29 BT 2009-12-17 03:58:43 UTC
Created attachment 213259 [details]
mediatomb svn ebuild

Updated ebuild to fix issue reported in comment #26.

This issue was actually caused by eautoreconf running in ${DISTDIR}/svn-src/mediatomb/mediatomb instead of ${S} and not a missing -i to eautoreconf as suggested in comment #26.
Comment 30 BT 2009-12-17 04:03:12 UTC
Created attachment 213260 [details]
mediatomb config

Changed the ffmpegthumbnailer seek percentage from 5 to the default of 10. 5 was too small in some cases resulting in opening movie credits to be displayed as the thumbnails.
Comment 31 BT 2009-12-17 13:28:52 UTC
(In reply to comment #28)
> Sorry about the extra "reply", but if interested, you can temporarily hack your
> way around the libmp4v2 error by creating an mp4.h link in the mp4v2 includes
> directory and by adding an include path to the ebuild:
> --with-libmp4v2-h=/usr/include/mp4v2 - who knows what else that breaks, but
> mediatomb compiles, runs and links with libmp4v2...

Upstream has now fixed libmp4v2 support so need for hacks anymore :)
Comment 32 BT 2009-12-24 23:35:15 UTC
Created attachment 214076 [details]
mediatomb config

Added new image-quality option for ffmpegthumbnailer.
Comment 33 Theunis 2010-01-02 20:42:38 UTC
Created attachment 214942 [details]
fixed mp4v2.h include file in configure.ac

removed src_unpack()
added src_prepare()
    added sed to fix configure.ac to look for mp4v2.h instead of mp4.h
Comment 34 BT 2010-01-02 23:29:44 UTC
(In reply to comment #33)

It appears you have added a bunch sed's throughout the ebuild but they have all been commented out. Furthermore upstream has already fixed the libmp4v2 issue and configure.ac now searches for and finds mp4v2.h.
Comment 35 BT 2010-01-05 01:54:23 UTC
Created attachment 215220 [details]
mediatomb svn ebuild

Add last.fm support.

Since I do not use last.fm could somebody please test this feature and report back? You will need edit config.xml and set <lastfm> to enabled and provide your last.fm username and password.

NOTE: You will need to have lastfmlib 0.4.0 installed but it's not in Portage yet. I have opened bug #299686 and requested a version bump. In the meantime you can just copy the 0.3.0 ebuild to lastfmlib-0.4.0.ebuild and it should work.
Comment 36 BT 2010-01-05 01:55:49 UTC
Created attachment 215222 [details]
mediatomb config

Add last.fm configuration.
Comment 37 BT 2010-01-09 04:53:01 UTC
Created attachment 215770 [details]
mediatomb config 

Added mimetype for m2ts and slightly tweaked the YouTube section which should now be working again.
Comment 38 BT 2010-01-14 22:23:38 UTC
Created attachment 216550 [details]
mediatomb svn ebuild 

Removed dvd USE flag since this feature is incomplete and has been disabled by upstream.
Comment 39 BT 2010-01-14 22:25:09 UTC
Created attachment 216551 [details]
mediatomb config

Removed dvd import config.
Comment 40 BT 2010-01-25 06:54:31 UTC
Created attachment 217368 [details]
mediatomb config

Added .cr2 and .nef "fake" mimetype mappings to make it easier to setup raw image transcoding.
Comment 41 Jeremy Sermersheim 2010-02-21 19:04:13 UTC
i can confirm that lastfm works in my setup.  thanks!

(In reply to comment #35)
> Created an attachment (id=215220) [details]
> mediatomb svn ebuild
> 
> Add last.fm support.
> 
> Since I do not use last.fm could somebody please test this feature and report
> back? You will need edit config.xml and set <lastfm> to enabled and provide
> your last.fm username and password.
> 
> NOTE: You will need to have lastfmlib 0.4.0 installed but it's not in Portage
> yet. I have opened bug #299686 and requested a version bump. In the meantime
> you can just copy the 0.3.0 ebuild to lastfmlib-0.4.0.ebuild and it should
> work.
> 
Comment 42 BT 2010-03-27 00:45:53 UTC
Created attachment 225393 [details]
mediatomb 0.12.0 ebuild

MediaTomb 0.12.0 has been released. You can read the changelog here: http://mediatomb.cc/changelog.txt

Changes in 0.12.0 ebuild:

- Removal of apple trailers support since it no longer works.
- Map .oga and .ogv extensions to audio/ogg and video/ogg mimetypes respectively. The previous behavior was to map .ogg to application/ogg. If you have any files with .ogg extensions you should rename them appropriately. I strongly suggest you clear and rebuild the database to ensure the new mimetypes are correctly set. This is a decision made by upstream.
Comment 43 BT 2010-03-27 00:47:00 UTC
Created attachment 225395 [details]
mediatomb 0.12.0 config
Comment 44 BT 2010-03-27 01:07:00 UTC
Created attachment 225399 [details]
mediatomb 0.12.0 config 

Minor fix.
Comment 45 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-27 01:54:53 UTC
(In reply to comment #42)
> Created an attachment (id=225393) [details]
> mediatomb 0.12.0 ebuild
> 
> MediaTomb 0.12.0 has been released. You can read the changelog here:
> http://mediatomb.cc/changelog.txt

Wow, about time :) Thanks for being persistent here. I'll get to it this weekend.
Comment 46 BT 2010-03-27 01:59:49 UTC
(In reply to comment #45)
> Wow, about time :) Thanks for being persistent here. I'll get to it this
> weekend.

Thanks, that would be awesome :)
Comment 47 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-29 22:33:44 UTC
Ok, great. We now have 0.12.0 in the tree. Thanks, BT, for the help. Any new issues belong in new bug reports. Thanks.