SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 04-27-2006, 10:47 AM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
I'm curious given all the work that's been going on with developing plugins to MCE and WMP10 and WMP11, why Sage should have it's own media database at all? I'm not talking about PVR'd content, but for ripped DVD's and Music, have Sage API's redirect to the WMP database would seem to enable everyone to leverage all the WMP plugins, and not have to waste time reinventing the wheel.

It would also make it possible for folks to concentrate on GUI and usuability functions rather than having to spend all this effort screwing around to support music tags and formats that WMP already handles just fine, DRM and all.

Why isn't this the right thing to do? It's not like Sage is putting a lot of resources into being an WMP or media center competitor. This lets them concentrate on PVR functions as they have been in the past, but also give us a much more powerful media platform.

Thanks,
Mike
Reply With Quote
  #22  
Old 04-27-2006, 11:14 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Hmm, I don't think the Linux Sage users would like this idea ...


Dirk
Reply With Quote
  #23  
Old 04-27-2006, 12:52 PM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by flachbar
Hmm, I don't think the Linux Sage users would like this idea ...


Dirk
The media capabilities of the the two versions are already completely different, as they already depend on windows specific features for audio playback in the windows version, and I think use mplayer in the linux version. Given such a wide discrepancy in features already, and the lack of WMA DRM support in Linux, I'm not sure that you lose a heck of a lot by going to the WMP database on windows. It's not like the OS media handling features are similar right now.

Also, if we end up with media features that are the lowest common demoninator between Linux and Windows, both sets of user communities will be made unhappy by this.

Also, this would allow Sage to simplify their efforts in realtime transcoders for extenders too.

Thanks,
Mike
Reply With Quote
  #24  
Old 04-29-2006, 06:41 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I've uploaded a new version with a few new features:

1. You can now enable tag parsing separately from playback using the following property:

SageWMP/parser/file_types=.mp3,.wma

If this property is present, the tag parser will parse only the file types listed. If absent or empty, it will parse any file type for which the specified player is SageWMP.Player (as in previous versions).

2. By default, the tag parser uses only the WM/AlbumArtist tag as the Artist for each track. If you enable the following property, it will add all names in the Artist and Author tags as track artists as well (in addition to the AlbumArtist):

SageWMP/parser/all_artists=true

This can result in confusing behavior in the Sage music browser, so use this feature with care.

3. For STV developers, the SageWMP tag parser now optionally copies all tag info into the Sage media library, where you can get at it using some API functions I've exposed. For details, see the STV development section of the top post in this thread.

sleonard, let me know if that meets your needs.
__________________
-- Greg
Reply With Quote
  #25  
Old 04-30-2006, 06:14 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Nice work with the extra tag info Greg. When I first saw it I was like....how did he do that? Nicely integrated.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #26  
Old 05-09-2006, 02:11 PM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by flachbar
Great, didn't notice that the source is included in the download
I'll play around with it and let you know ...

Thanks,
Dirk
BTW, did you ever get this to work? Does it parse FLAC metadata properly, and enable you to use your FLAC library with Sage?

Thanks,
Mike
Reply With Quote
  #27  
Old 05-09-2006, 03:11 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by mikesm
BTW, did you ever get this to work? Does it parse FLAC metadata properly, and enable you to use your FLAC library with Sage?

Thanks,
Mike
Actually, I tried this last night, but nothing showed up in the Sage library. In the debug log I found output from the parser stating something like "FLAC not enabled, pass...". I did not have WMP enabled as the default player for the .flac extension, so I tried it again after changing this, but this time I could not get Sage to rescan the files, even with following all the procedures (remove directory, rescan, restart, etc.) I will try again tonight. If I can't get it to work, I'll post the debug logs here, maybe Greg will have an idea ...

Dirk
Reply With Quote
  #28  
Old 05-09-2006, 04:43 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Ok, it took me over an hour (and a lot of nerves) to get Sage to rescan my library folder, this is *so* aggrevating ... Sometimes it works, and sometimes it simply doesnt, even when following the exact same steps. I really can't understand why we still have to battle such things (especially with version 5 just released). A button to rescan a folder should initiate an action right away, and not after 5, 10, or 15 minutes (if you are lucky) - I do not intend to *schedule* a rescan. Not to mention the need to remove the import directory first in order to get it working at all ...

Ok, rant off, now to the result: no more luck than yesterday ...

Here are some lines from the debug log, maybe Greg has an idea what is going wrong:

Code:
Tue 5/9 18:19:39.599 testFile=01 - Wild Billy.flac
Tue 5/9 18:19:39.630 SageWMP: SageWMP.Parser created.
Tue 5/9 18:19:39.631 SageWMP: SageWMP.Parser.extractMetadata("\\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\01 - Wild Billy.flac", "22 Pistepirkko/Rumble City, LaLa Land/")
Tue 5/9 18:19:39.632 SageWMP:   Media type flac is not enabled; pass.
Tue 5/9 18:19:39.634 VF GetFileDuration:\\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\01 - Wild Billy.flac
Tue 5/9 18:19:39.695 File is not a valid MPEG-2 PS file...using standard file duration detection
Tue 5/9 18:19:40.015 Duration is 172333 millis
Tue 5/9 18:19:40.365 Added:MediaFile[id=1043534 A[1043536,1043535,"22 Pistepirkko/Rumble City, LaLa Land/01 - Wild Billy",0@0320.17:23,2] host=mediapc encodedBy= \\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\01 - Wild Billy.flac, Seg0[Mon 3/20 17:23:23.667-Mon 3/20 17:26:16.000]]
Tue 5/9 18:19:40.379 New Library Video File MediaFile[id=1043534 A[1043536,1043535,"22 Pistepirkko/Rumble City, LaLa Land/01 - Wild Billy",0@0320.17:23,2] host=mediapc encodedBy= \\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\01 - Wild Billy.flac, Seg0[Mon 3/20 17:23:23.667-Mon 3/20 17:26:16.000]]
Tue 5/9 18:19:40.413 testFile=02 - Oo My Head.flac
Tue 5/9 18:19:40.427 SageWMP: SageWMP.Parser created.
Tue 5/9 18:19:40.428 SageWMP: SageWMP.Parser.extractMetadata("\\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\02 - Oo My Head.flac", "22 Pistepirkko/Rumble City, LaLa Land/")
Tue 5/9 18:19:40.429 SageWMP:   Media type flac is not enabled; pass.
Tue 5/9 18:19:40.429 VF GetFileDuration:\\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\02 - Oo My Head.flac
Tue 5/9 18:19:40.439 File is not a valid MPEG-2 PS file...using standard file duration detection
Tue 5/9 18:19:40.447 Duration is 296466 millis
Tue 5/9 18:19:40.477 Added:MediaFile[id=1043537 A[1043539,1043538,"22 Pistepirkko/Rumble City, LaLa Land/02 - Oo My Head",0@0320.17:22,4] host=mediapc encodedBy= \\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\02 - Oo My Head.flac, Seg0[Mon 3/20 17:22:58.534-Mon 3/20 17:27:55.000]]
Tue 5/9 18:19:40.481 New Library Video File MediaFile[id=1043537 A[1043539,1043538,"22 Pistepirkko/Rumble City, LaLa Land/02 - Oo My Head",0@0320.17:22,4] host=mediapc encodedBy= \\lauralein1\albums\22 Pistepirkko\Rumble City, LaLa Land\02 - Oo My Head.flac, Seg0[Mon 3/20 17:22:58.534-Mon 3/20 17:27:55.000]]

Dirk
Reply With Quote
  #29  
Old 05-09-2006, 05:04 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by flachbar
Code:
Tue 5/9 18:19:39.632 SageWMP:   Media type flac is not enabled; pass.
Looks like you haven't properly enabled SageWMP for FLAC file parsing. Could you post the following lines from your Sage.properties?

SageWMP/parser/file_types
media_player_plugin_class/flac
seeker/music_library_import_filename_extensions
__________________
-- Greg
Reply With Quote
  #30  
Old 05-09-2006, 05:27 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by GKusnick
Looks like you haven't properly enabled SageWMP for FLAC file parsing. Could you post the following lines from your Sage.properties?

SageWMP/parser/file_types
media_player_plugin_class/flac
seeker/music_library_import_filename_extensions
SageWMP/parser/file_types=.mp3,.wma,.flac
seeker/music_library_import_filename_extensions=.mp3,.wav,.wma,.flac

I haven't set the media_player_plugin_class because I thought this is only necessary if I also want to *play* the files with WMP, but I only want to parse them. If the import works I would want to play the files with the winamp plugin. So is this property required for the import too ?

Dirk
Reply With Quote
  #31  
Old 05-09-2006, 05:40 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
No, it's not required. I just need to know what your properties look like in order to repro the bug.

Turns out I goofed in parsing the SageWMP/parser/file_types list. Try without dots and it should work better:

SageWMP/parser/file_types=mp3,wma,flac

Next version (whenever that happens) will handle the dots properly.
__________________
-- Greg
Reply With Quote
  #32  
Old 05-09-2006, 06:07 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by GKusnick
No, it's not required. I just need to know what your properties look like in order to repro the bug.

Turns out I goofed in parsing the SageWMP/parser/file_types list. Try without dots and it should work better:

SageWMP/parser/file_types=mp3,wma,flac

Next version (whenever that happens) will handle the dots properly.
Greg,

just tried it without the dots, but unfortunately no change, I get the same debug output ...


Dirk
Reply With Quote
  #33  
Old 05-09-2006, 06:20 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Hmm. Worked for me when I tried it here (using dummy flac files; I don't have any real ones).

Dumb question time: did you exit Sage, stop the service, etc. while editing properties? Are you sure you're using v1.2 of the plugin?
__________________
-- Greg
Reply With Quote
  #34  
Old 05-09-2006, 06:33 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by GKusnick
Hmm. Worked for me when I tried it here (using dummy flac files; I don't have any real ones).

Dumb question time: did you exit Sage, stop the service, etc. while editing properties? Are you sure you're using v1.2 of the plugin?
Yeah, I stopped the service before editing the properties file, and I am using V1.2 of the plugin. Maybe something not right in my WMP configuration ? For the FLAC support, I installed oggcodecs_0.71 and WMPTagSupportExtender.1.0 ...

I could email you a FLAC file if you want, but no need for you to go crazy with that, it's not a high priority for me to get this working...

Thanks,
Dirk
Reply With Quote
  #35  
Old 05-09-2006, 07:05 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
OK, now I'm confused. I guess I don't quite understand the file upload system here because that zip that's out there now is v1.0, not v1.2.

Unfortunately I didn't think to keep a backup of v1.2, and v1.3 is not quite ready for prime time yet, so it may be a little while before I can get a new version up there (assuming I can figure out how to do it right this time).

Sorry for the confusion.
__________________
-- Greg
Reply With Quote
  #36  
Old 05-09-2006, 07:15 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by GKusnick
OK, now I'm confused. I guess I don't quite understand the file upload system here because that zip that's out there now is v1.0, not v1.2.

Unfortunately I didn't think to keep a backup of v1.2, and v1.3 is not quite ready for prime time yet, so it may be a little while before I can get a new version up there (assuming I can figure out how to do it right this time).

Sorry for the confusion.

No problem, I can wait.
I think you have to be careful not to change anything else (description, etc) when you upload a new file, otherwise it won't replace the existing one ...


Thanks,

Dirk
Reply With Quote
  #37  
Old 05-09-2006, 08:07 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by GKusnick
OK, now I'm confused. I guess I don't quite understand the file upload system here because that zip that's out there now is v1.0, not v1.2.
Did you by chance change the title/description of the upload as well as try to upload a new file at the same time? The reason I ask is I could swear I saw a post specifing that you need to do them separately. Maybe upload the file first than change the description or title.

BobP.
Reply With Quote
  #38  
Old 05-09-2006, 08:09 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Yeah, that's probably what I did. (Seems like the obvious thing to do unless you know better.)
__________________
-- Greg
Reply With Quote
  #39  
Old 05-13-2006, 11:24 AM
xlr8shun xlr8shun is offline
Sage Advanced User
 
Join Date: Dec 2003
Posts: 205
very interesting, any chance you could modify this to support video also? im trying to get sage video player to play ASX files (playlists) but no luck so far.
Reply With Quote
  #40  
Old 05-13-2006, 11:33 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Getting WMP to render video in the Sage window is not a simple project. It may be possible, but it's not high on my priority list since I don't have a large collection of DRM video.

Doesn't Sage support ASX playlists natively? I'm pretty sure the default seeker/playlist_import_filename_extensions property includes .asx as an importable playlist type.
__________________
-- Greg
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 05:01 PM.


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