Stuttering streaming video
Code: Select all
function flash-video() {
mplayer -cache 1000 $(stat -c %N /proc/*/fd/* 2>&1|awk -F[\`\'] '/lash/{print$2}')
}
I took it a step further and packaged your script into a pet, with a menuitem for it in the Multimedia menu. I renamed the command to playflash.
Now, one can add the icon to the desktop or a quicklaunch bar, and can just click on the icon, instead of typing in the terminal.
- Click here to download playflash.pet -
enjoy!
Nice one TmanTman wrote:What a great script, stu90. Thanks so much.Code: Select all
function flash-video() { mplayer -cache 1000 $(stat -c %N /proc/*/fd/* 2>&1|awk -F[\`\'] '/lash/{print$2}') }
I took it a step further and packaged your script into a pet, with a menuitem for it in the Multimedia menu. I renamed the command to playflash.
Now, one can add the icon to the desktop or a quicklaunch bar, and can just click on the icon, instead of typing in the terminal.
- Click here to download playflash.pet -
enjoy!
cheers.
-
- Posts: 2
- Joined: Sun 23 Oct 2011, 01:37
streaming video from icefilms.
I get it to work, but it seems to fill the memory after a while and it starts to lag quite enormously.
I've tried some settings in mplayer, changing the video output.
But this seems to be related to the OS(that it loads everything to the ram.)
How can I get the stream to cache the file onto the harddrive instead of directly into the memory?
now I was able to play 720p without stuttering on easypeasy linux, but eventually that crashed and was overall pretty slow on my hardware.
So I have downloaded puppy, I like it, but the streaming wont work(without stuttering) until it has cached the file completely. Anyway dont know what to do.
I get it to work, but it seems to fill the memory after a while and it starts to lag quite enormously.
I've tried some settings in mplayer, changing the video output.
But this seems to be related to the OS(that it loads everything to the ram.)
How can I get the stream to cache the file onto the harddrive instead of directly into the memory?
now I was able to play 720p without stuttering on easypeasy linux, but eventually that crashed and was overall pretty slow on my hardware.
So I have downloaded puppy, I like it, but the streaming wont work(without stuttering) until it has cached the file completely. Anyway dont know what to do.
Icefilms doesn't seem to be a friendly site to stream from unless you are using their streaming player. But underneath the boxes "Choose a streaming method" there is a megaupload link and from there you can download the 700MB file. As you found, once it begins downloading you can start mplayer and begin watching the movie. But by default it downloads to /tmp and that's in RAM so as soon as your RAM is filled, Linux will crash. If you arrange for downloads to go to a directory where there is plenty of room on the hard drive, then it can continue downloading while you begin watching using mplayer. And when you are finished watching, you can watch it all over again because it has been saved to a HD file. To set where downloads are saved, in Firefox: Edit > Preferences and click the radio button "Always ask me where to save files" and at the time of downloading set it to the hard drive, e.g., /mnt/hda6rhubarbcheese wrote:streaming video from icefilms.
I get it to work, but it seems to fill the memory after a while and it starts to lag quite enormously.
I've tried some settings in mplayer, changing the video output.
But this seems to be related to the OS(that it loads everything to the ram.)
How can I get the stream to cache the file onto the harddrive instead of directly into the memory?
You don't have to wait for the complete file to download before starting to watch it. In the file manager, click on the file and open with mplayer. Though lag might be worse because the machine is busy downloading the file. Might be better to allow download to complete before viewing the movie.
On a low-power machine, if you can keep the viewing size to less than full screen, audio lag may not be as bad. Try it and see. There are plenty of options to play with when running mplayer on the command line, too.
.