Seperate Views based on Flac and MP3

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
ht354
Posts: 16
Joined: Tue Nov 22, 2005 6:08 pm

Seperate Views based on Flac and MP3

Post by ht354 » Mon Jul 28, 2014 8:00 pm

I've done some basic tweaking to the navigation tree and I'm pleased with the results except that I'd like to specifically be able to browse FLAC and MP3 files separately.

For example I now have a rather basic layout;
MUSIC
->MY LIBRARY
Album
All Tracks
Artist
Artist Index
ABC
A
B
C
DEF
GHI
etc...
etc...
PHOTO
VIDEO
What I'd Really like is an option to choose between File Formats. THe problem is that we keep our FLAC's in a seperate folder that the MP3's SO I like to be able to see the following navigation;
MUSIC
->MY LIBRARY
Album
All Tracks
Artist
Artist Index
FLAC
ABC
A
B
C
DEF
GHI
etc...
etc...
PHOTO
VIDEO
Is it possible? I cannot find anything in the docs to choose a directory below the main ones

Jeff
Jeff G potts

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Seperate Views based on Flac and MP3

Post by phibertron » Mon Jul 28, 2014 10:15 pm

What version of twonky server are you using and what is it running on?

Your example would be difficult/impossible to pull off without sacrificing certain tags to be used for filtering
and even then it would fall apart when they weren't present

However, The following should/might be possible, without to much effort,
would still need to test a few things to verify behavior the client side, as some work different than others
as what are your client devices for streaming to play music?

Code: Select all

Music	->MP3	->All MP3's
									->Albums
									->Artists
									->Artist Index
									->Artist Album
									->Genre
									->Genre Album
									->Genre Artist Album
									->Rating
									->Folders
									->Playlists
			->FLAC	->All FLAC
									->Albums
									->Artists
									->Artist Index
									->Artist Album
									->Genre
									->Genre Album
									->Genre Artist Album
									->Rating
									->Folders
									->Playlists
Photos	->etc.
Videos	->etc.
There is no manual that covers this sort of thing,
there is some stuff they released a long time ago
and there are some post I made on the subject

How to Create Your Own Custom Navigation Trees
http://twonkyforum.com/viewtopic.php?f=24&t=6219

TMS-View-Configuration.zip
http://twonkyforum.com/download/file.php?id=78

TMS-View-Configuration addendum.zip
http://twonkyforum.com/download/file.php?id=404
Navtree 6 (How to show folders at the root solved and more)
http://twonkyforum.com/viewtopic.php?f=2&t=9353

Navtree 7 (How to show folders at the root solved and more)
http://twonkyforum.com/viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Seperate Views based on Flac and MP3

Post by phibertron » Mon Jul 28, 2014 10:23 pm

Another solution would be to run 2 instances of the server
one for mp3 and one for flac
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

ht354
Posts: 16
Joined: Tue Nov 22, 2005 6:08 pm

Re: Seperate Views based on Flac and MP3

Post by ht354 » Mon Jul 28, 2014 10:39 pm

How would I run two instances of Twonkyserver? I currently run version 7.2.7 on a QNAP box running OS 4.1.0 I don't think that it is possible to run two at the same time on this box . . . I could be wrong.

Would it be possible to fiter using file extensions versus physical locations?

Jeff
Jeff G potts

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Seperate Views based on Flac and MP3

Post by phibertron » Mon Jul 28, 2014 11:12 pm

In regards to filtering in the navtree, taken from "TMS-View-Configuration.pdf"
3.4.1.1
Filtering
With the filteron property, items that are allowed within a named container can be restricted. In the example above filteron='pv:highrated' would limit the music tracks in the music folder to those that have a value in the database field pv:highrated.
The "filteron=" in the "vew-definitions.xml" is used as a true statement, if the entry has a tag entry for it
one cant supply what the value of the tag is equal to

What one has to do to create branches for the file types is to use "buildon="
For Example:
buildon='pv:extension'
.
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Seperate Views based on Flac and MP3

Post by phibertron » Mon Jul 28, 2014 11:15 pm

In regards to multiple instances

Observations with multiple instances of Twonky Server 7
http://twonkyforum.com/viewtopic.php?f=2&t=11135

One would have to modify this file

"/share/HDA_DATA/.qpkg/TwonkyMedia/twonkymedia6.sh"

and make a duplicate of this line and modify it to be used for the second instance

$TWONKYSRV -inifile "${INIFILE}" -enableweb 2 -powersavemode 1 -logfile ${LOG_FILE} -suppressmenu mediafeeds 2>/dev/null 1>/dev/null &
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Locked