Jump to content


anudanan

Member Since 27 Feb 2011
Offline Last Active Today, 14:26
-----

Posts I've Made

In Topic: streamproxy and seeking in file

9 May 2019 - 17:11

I‘ve done also many different commits from the beginning of the changes to the lastest changes. You see it in the commit history of the branch. Ir may be that is not compatible with your idea of step bei step. For me it was usefull to learn how to migrate from the fork model to the thread model

In Topic: streamproxy and seeking in file

9 May 2019 - 16:09

The base idea my changes is to have a structur to handle a fix number of threads for trancoding streams. The number depends on the hardware in the box, The other thread are only limited inside the source code with a define

#define CLIENTTHREADS 32

 

If a stream request comes up than it depends on the transcoding demand to use one of the free structure for transcoding threads or to use a free structur for threads for streaming directly without transcoding.  The thread starts if the request comes up

 

If the main process detects seeking in a recorded movie  thread than  it informs the streaming threadto use  a new socket and a new position. 

 

The filetstreaming thread checks in his loop if there is a seeking request and make then the neccessary operations.


In Topic: streamproxy and seeking in file

9 May 2019 - 15:30

Here is my source tree for the thread based version but there are many changes between my tree and your streamproxy sources. So I´m not sure to make a PR to your tree. I´m not sure if your will use my complete changes but you can look into it. Maybe you have  better ideas to switch from fork based version to the thread based version.

 

https://github.com/a...ee/work-threads

 

This version runs very stable on my uno4kse and I hope the source also handle boxes with more than one transcoding units. 

I have simulate something for that


In Topic: streamproxy and seeking in file

9 May 2019 - 10:24

My last modified streamproxy doesn´t stop transcoding. It only flushes the outgoing queue to the client socket and seeks to the new position of the moviefile, and continous the loop. No ioctl to the trancoding hardware. it works.


In Topic: streamproxy and seeking in file

9 May 2019 - 09:14

That is what my modified strreamproxy does. It works without a new setup of the hardware but after seeking to the new position in the movie file it needs 5-.7 seconds in which a user continous watching from the older postion until the swtich  to the new position in the streaming client it there. But it works better that in the past.

 

.