LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2010, 01:12 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Rep: Reputation: 47
streaming the video to firefox


I am using ubuntu 8.04 with GNOME. I copied a video from cache folder of firefox.It is actually video from youtube.
I was wondering can I stream it to firefox to watch it once again instead of running it in media player ?
If I try to drag that file into firefox it brings up window
Code:
You have chosen to open
abc.flv
which is a:flash video
from:/data
What should firefox do with this file
open with movie player(default)
save file

Last edited by sumeet inani; 04-24-2010 at 01:16 AM.
 
Old 04-24-2010, 01:45 AM   #2
klytu
Member
 
Registered: Mar 2004
Location: Eastern United States
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by sumeet inani View Post
I am using ubuntu 8.04 with GNOME. I copied a video from cache folder of firefox.It is actually video from youtube.
I was wondering can I stream it to firefox to watch it once again instead of running it in media player ?
If I try to drag that file into firefox it brings up window
Code:
You have chosen to open
abc.flv
which is a:flash video
from:/data
What should firefox do with this file
open with movie player(default)
save file
Looks like you need to install Adobe Flash:


1. Add Canonical's Archive. Go to the menu System>Administration>Software Sources. Click the "Third Party Software" tab, and click +Add. Copy and paste the following:
Code:
deb http://archive.canonical.com/ubuntu hardy partner
Then click +Add Source.

Do the same for this one:
Code:
deb-src http://archive.canonical.com/ubuntu hardy partner
Then close Software Sources.


2. Install Adobe Flash. Open a terminal console (from the menu Applications>Accessories>Terminal). Copy, paste and run this:
Code:
sudo aptitude remove flashplugin-nonfree
(just a pre-caution to remove a conflicting flash version - if nothing is removed, that's OK) Then copy, paste and run this:
Code:
sudo aptitude install adobe-flashplugin
If a blue screen pops up in your terminal asking you to acknowledge installing flash, tab to <OK> and acknowledge.


3. Close and re-open Firefox and you should be good to go. Post back if you have any difficulty.

Hope this helps.
 
Old 04-24-2010, 02:11 AM   #3
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 264

Rep: Reputation: 30
Did you try associating .flv with firefox (/usr/bin/firefox)?
 
Old 04-24-2010, 05:26 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Original Poster
Rep: Reputation: 47
to klytu
#apt-get install adobe-flashplugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
adobe-flashplugin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

to fbsd user
I have tried to open it with firefox but the same dialog appears.
Actually when we watch a video on internet it is streamed to our browser.How can i make firefox take data stream from the file.

Last edited by sumeet inani; 04-24-2010 at 05:34 AM.
 
Old 04-24-2010, 06:42 AM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Firefox does not play the file, the flash plugin plays the file. You need to use the flash plugin to view the file in firefox.

For flv files you need an flv player, there are several on the internet, go download one.
You will still have to make a page to view it in firefox though.

To make a basic web page with the flash movie embedded in it.
For swf files you can use this code, change the filenames where necessary (and the size)
Code:
<html>
<body bgcolor=#000000>
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="284">
  <param name="MOVIE" value="movie.swf">
  <param name="QUALITY" value="HIGH">
  <param name="BGCOLOR" value="#000000">
     <embed src="movie.swf"
            quality="high"
            type="application/x-shockwave-flash"
            bgcolor="#000000"
            width="360" height="284">
</object></center>
</body>
</html>
Open the page in firefox. The movie file should be in the same directory as the html page.

Last edited by smoker; 04-24-2010 at 06:44 AM.
 
Old 04-24-2010, 07:05 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Original Poster
Rep: Reputation: 47
to smoker
If I open that video from webpage on youtube it works.I tried the code with my abd.flv but It didn't work.What should be code for flv file.
As you have seen before plugins are integrated in my firefox.
I just have to write web page for that flv file.
 
Old 04-24-2010, 07:08 AM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by sumeet inani View Post
to smoker
If I open that video from webpage on youtube it works.I tried the code with my abd.flv but It didn't work.What should be code for flv file.
As you have seen before plugins are integrated in my firefox.
I just have to write web page for that flv file.
For flv files you need an flv player, there are several on the internet, go download one.
You will still have to make a page to view it in firefox though. Try right clicking the youtube page and viewing the source. You will see the code they use. But you still need an flv player.

If all you want to do is view the movie, use mplayer or vlc.

Last edited by smoker; 04-24-2010 at 07:12 AM.
 
Old 04-24-2010, 07:32 AM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Original Poster
Rep: Reputation: 47
I want to say that
let us assume my file is hulchul.flv with widthxheight=640x290
I found out that
I have to insert following code in body of html
Code:
<p align='center'><iframe src='http://ismedia.exeter.ac.uk/playerfiles/flvplayer.php?flvmovieurl=hulchul.flv&moviewidth=640&movieheight=314&volume=100&autoplay=true&titlelinkcolour=%23000080&title=hulchul&bgcolor=%23FFFFFF' width='660' height='400' align='middle' scrolling='no' frameborder='0'></iframe></p>
It works only the point is it refers to internet page (of php).I want to do it local without internet.
 
Old 04-24-2010, 08:01 AM   #9
klytu
Member
 
Registered: Mar 2004
Location: Eastern United States
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by sumeet inani View Post
I want to say that
let us assume my file is hulchul.flv with widthxheight=640x290
I found out that
I have to insert following code in body of html
Code:
<p align='center'><iframe src='http://ismedia.exeter.ac.uk/playerfiles/flvplayer.php?flvmovieurl=hulchul.flv&moviewidth=640&movieheight=314&volume=100&autoplay=true&titlelinkcolour=%23000080&title=hulchul&bgcolor=%23FFFFFF' width='660' height='400' align='middle' scrolling='no' frameborder='0'></iframe></p>
It works only the point is it refers to internet page (of php).I want to do it local without internet.
Sorry about my previous post; I misunderstood your question. Try modifying your above code to something like this:

Code:
<html>
<p align='center'><embed src='file:///home/inani/hulchul.flv' width='660' height='400' align='middle' scrolling='no' frameborder='0'></p>
</html>
Replacing "/home/inani/hulchul.flv" in the above with the actual path to your video. I just tried this for a local .flv video and firefox opened and played it within its own window.
 
Old 04-27-2010, 11:17 PM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Original Poster
Rep: Reputation: 47
to klytu
I tried as you told but actually in this case totem(default media player in GNOME ubuntu) played the file & it had no decoder for h264 & aac encoding so got stream error.Actually my totem,mplayer & ffplay(from medibuntu) is not latest.

I thought I have watched the video in firefox so it can play it just I have to stream that flv.

Success at last
I downloaded http://www.walkernews.net/mediaplayer.swf
keep abc.html,abc.jpg,abc.flv & mediaplayer.swf in same folder.
Code:
<html>
<head> stream local flv to browser without internet</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="480" height="360"><param name="flashvars" value="abc.flv&image=abc.jpg" /><param name="movie" value="mediaplayer.swf" /><embed src="abc.swf" width="480" height="360" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=abc.flv&image=abc.jpg"
 /></object>
</body>
</html>

Last edited by sumeet inani; 04-29-2010 at 04:58 AM.
 
Old 04-27-2010, 11:37 PM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 869
Blog Entries: 26

Original Poster
Rep: Reputation: 47
Question
How can I get option to play fullscreen by tweaking above code.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WMP compatibility for streaming video on Firefox hiwa Linux - Software 3 06-18-2007 06:59 AM
firefox streaming video files? Userong Linux - Software 2 10-08-2006 12:45 PM
Streaming video with Firefox/gxine.... kmcgavran Linux - Software 16 09-26-2006 11:16 PM
Streaming Windows Media Video Content in firefox will not work TheOneSYM Linux - Software 5 03-01-2006 03:17 PM
Streaming audio/video through Firefox New2MDK Linux - Newbie 8 03-10-2005 09:35 AM


All times are GMT -5. The time now is 01:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration