Keeping id3 tags after transcoding ?

Having trouble installing AmpJuke ?
Check this.

Keeping id3 tags after transcoding ?

Postby dawadoc on 15-12-2009 16:37

Hi,

I'm a new user of ampjuke, just switching from kplaylist due to a huge music fan girl :mrgreen:
Quite happy about this media library, mostly from the easiness of use and admin, and not-so-useless related artist features.

I just have a small problem : How can I keep the id3 tags when using transcoding/downsampling ?
It only gaves ugly filename ...

Thxs for support :)
dawadoc
Newbie
Newbie
 
Posts: 4
Joined: 12-12-2009 13:29

Re: Keeping id3 tags after transcoding ?

Postby Michael on 15-12-2009 23:46

Hi dawadoc,

Thanks for posting and welcome to the AmpJuke forum.

Cannot guarantee you'll get the same experience with AmpJuke when managing & streaming music as you had previously with kPlaylist...
Thanks for the nice words about some of the features. :wink:

Transcoding/downsampling in AmpJuke relies entirely on lame.
To be honest, I'm not 100% sure if there's a switch in there that needs to be activated in order to avoid lame (pun intended) titles on the transcoded stuff.
However, by doing a "lame --help" on my Linux box, I can see there's some interesting parameters available.
Some of them as follows:
ID3 tag options:
--tt <title> audio/song title (max 30 chars for version 1 tag)
--ta <artist> audio/song artist (max 30 chars for version 1 tag)
--tl <album> audio/song album (max 30 chars for version 1 tag)
--ty <year> audio/song year of issue (1 to 9999)
...etc.etc.etc.etc.


Hope this helps somehow.
If not, feel free to post an update (well...feel free to do so in any case).

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Keeping id3 tags after transcoding ?

Postby dawadoc on 16-12-2009 11:43

Michael wrote:Cannot guarantee you'll get the same experience with AmpJuke when managing & streaming music as you had previously with kPlaylist...
Thanks for the nice words about some of the features. :wink:


kPlaylist is perfect for handling a small media lib, but with 600 artists, kPlaylist is a bit limited especially when half or most are totally unknown for you :mrgreen:

To go on with congratulations, i upgraded to 0.8.1. Nice job with the Bing API :shock:
But, i suggest to add a managing page for covers fetched thru the API. For many french bands, the API gives erroneous results and i didn't find a way to modify the cover.

Michael wrote:Transcoding/downsampling in AmpJuke relies entirely on lame.
To be honest, I'm not 100% sure if there's a switch in there that needs to be activated in order to avoid lame (pun intended) titles on the transcoded stuff.
However, by doing a "lame --help" on my Linux box, I can see there's some interesting parameters available.
Some of them as follows:
ID3 tag options:
--tt <title> audio/song title (max 30 chars for version 1 tag)
--ta <artist> audio/song artist (max 30 chars for version 1 tag)
--tl <album> audio/song album (max 30 chars for version 1 tag)
--ty <year> audio/song year of issue (1 to 9999)
...etc.etc.etc.etc.

Hope this helps somehow.
If not, feel free to post an update (well...feel free to do so in any case).


I tried to play on the paramaters in the web interface. I think this lame options should be added when transcoding is called reading tags from the db. But i'm not really used with php.
Think it's doable, because when using transcoding under ampache, tags are keeped ...
dawadoc
Newbie
Newbie
 
Posts: 4
Joined: 12-12-2009 13:29

Re: Keeping id3 tags after transcoding ?

Postby Michael on 16-12-2009 12:38

To go on with congratulations, i upgraded to 0.8.1. Nice job with the Bing API :shock:
But, i suggest to add a managing page for covers fetched thru the API. For many french bands, the API gives erroneous results and i didn't find a way to modify the cover.

Thanks :D
You're right, there's not a "real" management page (ie. where all covers are listed an you can pick&replace).
However, if you configure+enable upload, it should be a visible option whenever you display an album cover or performer image.

A better option (only for admin's) is to click "Lookup a new cover" and then searchresults from last.fm as well as Bing will be shown. When you click on an image from the searchresults, the image will replace what you had previously.
The same method can be used for performers/artists.

An "automatic" replacement is unfortunately not an option, - piccies from covers/performers does not have any metadata associated, so a real human being is needed in order to determine what picture is the best.


In relation to titles vs. transcoding/downsampling: I just switched to "-silent -b 128 -q 7" for myself.
Titles are shown..?
...although not as they normally are when not using transcoding.
I'm using WinXP/FF3.5/WinAmp5.56 to listen to music from the server right now..

Have you tried a different mediaplayer and see if titles are wrong in there as well ? Which one is it that's causing problems by the way ?

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Keeping id3 tags after transcoding ?

Postby dawadoc on 16-12-2009 14:54

Michael wrote:Thanks :D


You're welcome :mrgreen:

Michael wrote:You're right, there's not a "real" management page (ie. where all covers are listed an you can pick&replace).
(...)


Indeed, i wasn't thinking of an "automated" replacement, but a unique place where the management can be done. I 'll investigate your second solution, seems to be a good alternative to a full management page. :wink:

Michael wrote:In relation to titles vs. transcoding/downsampling: I just switched to "-silent -b 128 -q 7" for myself.
Titles are shown..?
...although not as they normally are when not using transcoding.
I'm using WinXP/FF3.5/WinAmp5.56 to listen to music from the server right now..

Have you tried a different mediaplayer and see if titles are wrong in there as well ? Which one is it that's causing problems by the way ?


I'm using "--silent -b 128 -q 5"
In fact, i've tested with several configs :
- WinXP / VLC and WMP
- Kubuntu / VLC and Amarok

It always show the filename when downsampling.
Works fine either
dawadoc
Newbie
Newbie
 
Posts: 4
Joined: 12-12-2009 13:29

Re: Keeping id3 tags after transcoding ?

Postby dawadoc on 22-12-2009 16:46

I'm back, and i'm glad to say that i managed to provide id3 tags while transocding :mrgreen:

Here are the mods i made in stream.php (around l.315)

Code: Select all
        // lame transcoding : ** ORIGINAL VERSION **
        // $cmd=$lame_path.' '.$lame_parameters.' "'.$row['path'].'" -';
        //******************************************

        // Lame transcoding : ** MODIFIED VERSION TO INCLUDE ID3 TAGS WHILE TRANSCODING **
        $trackname=$row['name'];
        $tracknumber=$row['track_no'];

        $qry="SELECT * FROM performer WHERE performer.pid=".$row['performer_id'];
        $performer_result=execute_sql($qry,0,1,$nr);
        $performer_row=mysql_fetch_array($performer_result);
        $perfomer_name=$performer_row['pname'] ;

        $qry="SELECT * FROM album WHERE album.aid=".$row['album_id'];
        $album_result=execute_sql($qry,0,1,$nr);
        $album_row=mysql_fetch_array($album_result);
        $album_name=$album_row['aname'] ;

        $id3add='--add-id3v2  --tt "'.$trackname.'" --tn "'.$tracknumber.'" --ta "'.$perfomer_name.'" --tl "'.$album_name.'" ' ;
        $cmd=$lame_path.' '.$lame_parameters.' "'.$row['path'].'" - '.$id3add;
        //*******************************************************************************
        $process = proc_open($cmd, $desc_spec, $pipes);


Now, tags are broadcasted :mrgreen:
It's not perfect, but better than filenames !
Image

About cover management :
A bit disturbing in the beginnig, but it's efficiant enough. I think a full management page is not so usefull.
dawadoc
Newbie
Newbie
 
Posts: 4
Joined: 12-12-2009 13:29

Re: Keeping id3 tags after transcoding ?

Postby Michael on 28-12-2009 11:41

I'm back as well... :wink:
Thanks for the modification in relation to show "real" tags when transcoding.
I'll include it in the next release.


Great you found the cover/performer replacement options useful.

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark


Return to Installation / support

Who is online

Users browsing this forum: No registered users and 1 guest

cron