SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-14-2005, 05:18 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Thumbs up Plugin: Workaround for annoying VBR MP3 problem in V2.2.2+

I have figured out a workaround to that annoying VBR MP3 problem where Sage plays a long period of silence at the end of the track...

Rumour has it that it will be fixed in 2.2.4, but in the meantime here it is, as a Java plugin.

It takes advantage of what might be bugs, and will only work in 2.2.2 and 2.2.3, and it will also only work if you have deleted and re-added your music library since installing 2.2.2 or 2.2.3 (because these are the first versions that know internally the correct duration of VBR MP3's, and you need to do a library delete/re-import to recalculate durations.)

Install instructions:
  • Play back a VBR MP3 and go to the full screen/visualisation view
  • If it shows up in the timebar with an incorrect duration then you need to do a rescan:
    -> remove the music library from the import list,
    -> rescan the media libraries
    -> check in the music jukebox that you have no music
    -> then re-add the music library
  • Stop the SageTV/SageClient instance
  • Unpack the attached zipfile into youe SageTV directory
  • Edit Sage.properties or (if running a client, or the SageTV service,) SageClient.properties
  • add the value "net.sf.sageplugins.Mp3Fixer" to the properties line "load_at_startup_runnable_classes="
    If anything already exists in this line, separate each item with a semicolon ';'
    Note that this is case-sensitive and there must be no spaces at all in this line. eg:
    Code:
    load_at_startup_runnable_classes=net.sf.sageplugins.Mp3Fixer
Restart Sage...
There should be some lines in the logging beginning with MP3FIXER...

Now, playback some VBR MP3's, and enjoy the sound of no silence!
Attached Files
File Type: zip mp3fixer.zip (3.5 KB, 230 views)
Reply With Quote
  #2  
Old 01-17-2005, 09:13 AM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
If I am running the client AND server do I set this up on the server, client or both? I was thinking just the server because that is where the re-scan happens, no?

Thanx,Matt
Reply With Quote
  #3  
Old 01-17-2005, 10:07 AM
Cayars Cayars is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 2,029
Nielm can correct me if I'm wrong but I believe you want it installed on the client as the "Server" doesn't do the playback, the client does and it appears this is a fix for the "client playback".
Reply With Quote
  #4  
Old 01-17-2005, 11:43 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
yep: client -- the bit that does the playback
hence the line:
Quote:
Edit Sage.properties or (if running a client, or the SageTV service,) SageClient.properties
Reply With Quote
  #5  
Old 01-17-2005, 12:24 PM
NickSD NickSD is offline
Sage User
 
Join Date: Jun 2004
Location: San Diego, CA, USA
Posts: 16
Thanks!

nielm,

Thanks so much! I've hated the fact that I can't use the music library due to this bug... Thanks for the workaround! Hopefully it'll get fixed for good in the next beta...

Nick
Reply With Quote
  #6  
Old 01-18-2005, 01:49 PM
hoep hoep is offline
Sage Advanced User
 
Join Date: Sep 2004
Posts: 197
@nielm
thanks a lot for this wonderful fix, it lets me throw meedio from my harddisk and stay only with sage. i'm happy (especially because i have not noticed any issues with the actual beta 2.2.3 - which i also reported already)
thank you VERY much
Reply With Quote
  #7  
Old 01-19-2005, 07:22 PM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
So, if the client does the work why do I need to "... delete/re-import to recalculate..."?
Reply With Quote
  #8  
Old 01-20-2005, 02:32 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
.. because the plugin code in the client needs to know the true length of the VBR MP3 file, which sage (server) reads from the MP3 when scanning the import directory, and stores in it's DB.

Pre 2.2.2 versions, Sage calculated the length of the VBR file incorrectly (a 3min file would show up at 6min in the timebar). This got fixed in 2.2.2, so in 2.2.2 NEWLY IMPORTED Mp3's would have the correct length and would show up as 3min in the timebar... BUT it still played back for 6 mins...

This plugin uses the difference between the real time in the DB and the playback time to figure out that the file is a VBR MP3 that has already ended...

Anyway... 2.2.4 has fixed the problem, and although this plugin should disable itself in 2.2.4, you should also remove it from the .properties file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.