How to enable video transcoding twonky server 7.3 on mac?

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
jp_hero
Posts:3
Joined:Sat May 31, 2014 6:09 pm
AV Hardware:sony bravia
How to enable video transcoding twonky server 7.3 on mac?

Post by jp_hero » Sat May 31, 2014 7:01 pm

Hi, I use twonky server 7.3 trial on mac.
And I tried enable mkv transcoding. But I can't find transcoding options.
How Do I enable transcoding option on mac?

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: How to enable video transcoding twonky server 7.3 on mac

Post by phibertron » Sat May 31, 2014 11:41 pm

as I understand it, transcoding is still unofficially supported
but...
If you download ffmpeg and place it in the twonky cgi-bin folder
you might have to make sure its rights are set to be executable
and then restart the twonky server

for example: I think this is the path if memory servers me well
/Applications/Twonky.app/Contents/MacOS/cgi-bin/

you should now have the ability to transcode with ffmpeg
what defines what actions should happen with input and ouput are in the .desc files
the names of the files are just so you know what its meant to do
its the settings in them that matter
there should be plenty of examples in there to get things figured out

the second part of it, is the client xml files
sometimes they need to be adjusted to get things working

it will either all work out smoothly
or you will pull your hair out to get it working
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

jp_hero
Posts:3
Joined:Sat May 31, 2014 6:09 pm
AV Hardware:sony bravia

Re: How to enable video transcoding twonky server 7.3 on mac

Post by jp_hero » Mon Jun 02, 2014 5:36 pm

To phibertron
thank you for reply.

I cant understand customize web interfaces.

But I still try it!!

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: How to enable video transcoding twonky server 7.3 on mac

Post by phibertron » Wed Jun 04, 2014 12:35 am

what client is the one that is going to be where you want the video to play?
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

jp_hero
Posts:3
Joined:Sat May 31, 2014 6:09 pm
AV Hardware:sony bravia

Re: How to enable video transcoding twonky server 7.3 on mac

Post by jp_hero » Wed Jun 04, 2014 4:29 am

Client is ps3 and windows media player. And I want to play mkv files. but I can't play these video.
Below is I'm done.

1. Download and ffmpeg from this URL(It's static FFmpeg binaries for Mac OS X Intel 64bit ) >> http://www.evermeet.cx/ffmpeg/ffmpeg-2.2.2.7z

2. I installed ffmpeg binaries to `/Applications/Twonky.app/Contents/MacOS/cgi-bin/`

3. I have edit ..../cgi-bin/ffmpeg-mkv-mpeg.desc following(I read >> http://www.twonkyforum.com/mediawiki/in ... ranscoding). I don't have edit .location file because I can't find ffmpeg.location.

```
exec: ffmpeg -threads 2 -i $infile -vcodec mpeg2video -sameq -acodec copy -f vob -copyts -y $outfile

# capabilities

from=video/x-matroska

to=video/mpeg

synchronous

priority=idle
```

4. Restart twonky server.

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: How to enable video transcoding twonky server 7.3 on mac

Post by phibertron » Thu Jun 05, 2014 1:34 am

I'll assume you edited the existing file "ffmpeg-mkv-mpeg.desc"
with exec you mentioned and didn't create a new file
-sameq is no longer valid in that build or many others, you need to use -qscale 0
exec: ffmpeg -threads 2 -i $infile -vcodec mpeg2video -qscale 0 -acodec copy -f vob -copyts -y $outfile
Once I changed the exec command to the above
I was able to transcode an mkv to the ps3 using 7.3 on osx

One doesn't need to create the file "ffmpeg.location" if ffmpeg is in the cgi-bin folder
its for when it isn't or cant be put there
If one did need to create one, just create the file "ffmpeg.location" in the cgi-bin folder
and add the path to where ffmpeg is located for example
/Applications/Twonky.app/Contents/MacOS/cgi-bin
As an example on my WD MyBook Live "ffmpeg.location" would point to this location
/usr/bin
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: How to enable video transcoding twonky server 7.3 on mac

Post by phibertron » Thu Jun 05, 2014 3:28 am

More info

Twonky Server 7 Special Transcoding does not work
http://twonkyforum.com/viewtopic.php?f=2&t=10667

Twonky Server 7 Special Transcoding can transcode to MPEG
http://twonkyforum.com/viewtopic.php?f=2&t=10682
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