![]() |
Re: Youtube browser - mYTube - released
hmm. makes me wonder where I went wrong. :(
I downloaded the script above, put it in /usr/bin, replacing the one I had there, ran chmod +x on it, and added the -x to the prefs in mytube. ...wouldn't download or play any video until I took the -x out of the myytube preferences... :( |
Re: Youtube browser - mYTube - released
Quote:
|
Re: Youtube browser - mYTube - released
Oh and for my next trick.. auto crop and scale of widescreen clips. It's a hack, but once it's ready it should be a simple drop in.
|
Re: Youtube browser - mYTube - released
There you go again, brontide. Taking a perfectly good, working application...
...and making it better. Thanks. |
Re: Youtube browser - mYTube - released
Ok, here is the deal with the hack...
auto crop and scale imposes a long ( 8 seconds if downloaded, longer for streaming ) the first time a video gets played. It's the best I can do without rewriting this app to handle the post processing. There is no delays after it gets played the first time. |
Re: Youtube browser - mYTube - released
What imposes this delay?
|
Re: Youtube browser - mYTube - released
Quote:
It's a one time penalty because I cache the results in a sqlite3 db for later retrieval. I can probably get the time down for saved videos, but for streamed videos I'm not sure. I could also apply a new algorithm to try and deal with the edge cases with fewer frames. But for now that's the price of glorious full and widescreen mytube. |
Re: Youtube browser - mYTube - released
Thinking about the problem... yes i have another algorithm that I can apply. It's pretty easy in fact to get the time down and still have fewer edge cases. The new alogrithm will only detect no crop or proper letterboxing ( roughly equal top and bottom ). I will have to rewrite the code, but I think it should detect properly with much fewer frames ( and fewer frames = less latency on first play ).
|
Re: Youtube browser - mYTube - released
100 frames... yep, that's less than a second delay for saved, and probably 3 seconds streaming. There are still misses, but this actually hits better than the last one with 1/10th the frames.
|
Re: Youtube browser - mYTube - released
Of course, this leads me to think about using your cropdetect / aspect ratio algorithm in other situations...
For instance, I would love to see you work your magic with josiahg777's mplayer-opt script... |
All times are GMT. The time now is 17:05. |
vBulletin® Version 3.8.8