LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2012, 01:09 PM   #1
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Rep: Reputation: 0
Question Watch a video while being downloaded


Greetings,

I use Fedora 17 and up till Fedora 16, I was able to watch a video while it was still being downloaded and it would update the file in real time, so that you don't have to wait till the video was finished downloading to start playing it.

But now, if I play a video which is being downloaded, it will play only till where it was downloaded when I started playing the video. Something has changed, but I don't know where to change it or what to search for so that it goes back to previous behavior. Any thoughts are appreciated.

Cheers
 
Old 08-25-2012, 01:46 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
There are a number of ways to download a media file and play it at the same time.
Code:
mplayer http://www.path/to/file.avi -dumpstream -dumpfile out.avi & mplayer out.avi
You'll have out.avi and play it as it downloads.

Or stream it to a named pipe. (example)
Code:
mkfifo foo.fifo
mplayer http://path/to/file.avi -dumpstream -dumpfile foo.fifo
cat foo.fifo | mplayer -
Depends on what you are watching. If you want to watch youtube without waiting for download or flash
Code:
mplayer -cookies -cookies-file /tmp/cookie.txt $(youtube-dl -g --cookies /tmp/cookie.txt "http://www.youtube.com/watch?v=video no. goes here")
You don't say what player you are using.
 
1 members found this post helpful.
Old 08-25-2012, 06:49 PM   #3
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by harris4got View Post
Greetings,

I use Fedora 17 and up till Fedora 16, I was able to watch a video while it was still being downloaded and it would update the file in real time, so that you don't have to wait till the video was finished downloading to start playing it.
VLC does that for me, what player are you using? Gmplayer does exactly what you describe above.
 
1 members found this post helpful.
Old 08-26-2012, 03:02 AM   #4
harris4got
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Thank You teckk and fogpipe for your replies. I use mplayer, smplayer or totem to watch the videos. I tried vlc and it worked as you said. Something must have changed in mplayer I guess.

teckk's post was very informative, I learned some new stuff. Also, there is a nice lightweight command-line program called cclive for downloading videos from youtube, dailymotion and many other sites.

Also here is a trick to check this property (in Gnome-3). Press Alt+Ctrl+Shift+R to start screen recording. Go to videos folder, a file named 'Screencast from %date%.webm' must appear in the folder. Play it. You will see recursive mirror effect and it will never finish playing unless you stop recording.

Cheers

Last edited by harris4got; 08-26-2012 at 03:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you watch video played on the computer on a TV? silencestone Slackware 11 11-27-2007 02:09 PM
I can't watch streaming video edkilp Linux - Software 4 05-04-2006 07:22 AM
How come i can't watch video with FreeBSD 5.1 selvyn *BSD 2 02-29-2004 01:08 PM
How to watch video with RH9 ???? novkhan Linux - Newbie 2 01-22-2004 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration