Configure media types

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
j.beck
Posts:1
Joined:Wed Nov 02, 2011 7:36 pm
AV Hardware:QNAP NAs severaö players
Configure media types

Post by j.beck » Wed Nov 02, 2011 7:43 pm

Hello,

i have on my QNAP in the twonky media directory flac und wma audio files. I would like to configure twonky so that it only streams the flac files but not the wma files. I know, i could remove the WMAs, but i don't want to do that. Is there an possibility to configure twonky that it only streams distinct media types instead of all supported types?

Thanks for your help!

Joachim

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: Configure media types

Post by phibertron » Wed Nov 02, 2011 8:21 pm

I dont know of a way to do that, but..
it is feasable if you moved all the wma files to a folder
and use the ignore directory command in the twonkymedia-server.ini
to not include that folder for scanning

# ignore this directory for scanning (can be a comma separated list)
ignoredir=AppleDouble
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: Configure media types

Post by phibertron » Thu Nov 03, 2011 3:01 am

I thought of another way to do what you want

In the clients db at the top is a list of commands
one of them is this

// MT nnn not-supported - use this if a client shall not get a RES element for this extension by all means

Using the PS3 profile as an example

NA:PS3
HH:PLAYSTATION
DB:FIX
XM:DLNA10
XM:DATETIME
XM:NOEMBEDDEDALBUMART
XM:NOBYTES_IN_TIMESEEK_RESPONSE
DL:MP4DLNA
HP:chunked
HP:1.0PROXYRESPONSE
TR:MPEG,JPEGORG,MP4
MT:mpeg,mpeg2,vdr,spts,tp,ts,mpg,mpg-tts video/mpeg
MT:m4a audio/mp4
MT:avi,divx video/avi
TP:MP4,-suppress_amr -add_isom -update_stss
MT:3gp not-supported

You'll notice they use it there for 3gp

So you could edit the clients.db
and add an additonal line to it "MT:wma not-supported"
to all of the client profiles that you know you will use etc.

Sure, like before its not elegant, but it should work for your needs
the bonus for this approach is you wouldnt have to move any files/folders or use the ignordir approach
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: Configure media types

Post by phibertron » Thu Nov 03, 2011 3:23 am

An even simplier way would be if say you only had to worry about one client profile
but say you wanted to keep it on for one and off for the other
would be to add/create you own section to the ist

for ex:

NA:PS3 No WMA
HH:PLAYSTATION
DB:FIX
XM:DLNA10
XM:DATETIME
XM:NOEMBEDDEDALBUMART
XM:NOBYTES_IN_TIMESEEK_RESPONSE
DL:MP4DLNA
HP:chunked
HP:1.0PROXYRESPONSE
TR:MPEG,JPEGORG,MP4
MT:mpeg,mpeg2,vdr,spts,tp,ts,mpg,mpg-tts video/mpeg
MT:m4a audio/mp4
MT:avi,divx video/avi
TP:MP4,-suppress_amr -add_isom -update_stss
MT:3gp not-supported
MT:wma not-supported

then in the media reciever list you would assign the PS3 or PS3 NO WMA
to the appropriate client and or clients
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