Transcode question

General discussion about PS3 Media Server (no support or requests)

Transcode question

Postby Luxfero » Wed Mar 17, 2010 4:23 am

I have a question when a video is trancoded is the video saved on the computer for later play or is the video trasncoded every time its played.
I used Tveristy before I started using PS3 Media Server and it would save all transcoded videos on the computer for later play.
Luxfero
 
Posts: 20
Joined: Sun Jan 24, 2010 4:01 am

Re: Transcode question

Postby meskibob » Wed Mar 17, 2010 4:47 am

It's transcoded in memory with no temp files.
viewtopic.php?f=6&t=3507
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4788
Joined: Mon Jan 19, 2009 4:11 pm

Re: Transcode question

Postby chocolateboy » Thu Mar 18, 2010 12:28 pm

meskibob wrote:It's transcoded in memory with no temp files.


Web videos are transcoded via FIFOs. I haven't investigated other transcoding pipelines closely, but I suspect they're similar.

Depending on your platform/setup, the FIFO may be memory mapped e.g. /tmp is memory mapped on many (most?) Unices, and that's where PMS creates its named pipes.

So, yes, there are temp files, but they're not (re-)readable. Caching functionality could be added via a plugin, but PMS's support in this area is, at best, incomplete.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Transcode question

Postby meskibob » Thu Mar 18, 2010 1:01 pm

So in some cases your OS will grant you access to the named pipe, so you could grab the transcoded file if you wanted? Interesting.
However, the main point still holds for the original question, where PMS does not transcode like TVersity by saving a transcoded file to the harddisk that persists after the pipe (or whatever system they use) is closed.
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4788
Joined: Mon Jan 19, 2009 4:11 pm

Re: Transcode question

Postby chocolateboy » Thu Mar 18, 2010 1:10 pm

meskibob wrote:So in some cases your OS will grant you access to the named pipe, so you could grab the transcoded file if you wanted. Interesting.


Yes and no. The temp files are readable on all platforms, including Windows. But multiple processes can't read the whole stream from a named pipe, just as you can't push water back into a hosepipe. Like standard input, the files can only be read once.

A plugin could easily tee the stream off to permanent storage. VLC also has options to multiplex streams.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Transcode question

Postby Luxfero » Mon Mar 22, 2010 2:05 pm

Thank you both for the helping me with the question.

Another question, since there are temp files when transcoding is there any need to clear the temp folder or are the files only existing for as long as they are been used? The reason for my first question is not that i'd like to replay transcoded videos.
Thanks again,
Luxfero
 
Posts: 20
Joined: Sun Jan 24, 2010 4:01 am

Re: Transcode question

Postby chocolateboy » Mon Mar 22, 2010 2:41 pm

Luxfero wrote:is there any need to clear the temp folder or are the files only existing for as long as they are been used?


PMS removes them as soon as they've been used.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests