LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-10-2005, 12:26 PM   #1
greenthing
Member
 
Registered: Jan 2005
Distribution: Suse 9.3 pro
Posts: 116

Rep: Reputation: 15
stream video from samba?


'have installed and configured samba andit works great exceot for one thing... When i wan't to play a video file i have to first copy the intere file to the computers harddrive, so my question is cn i somehow stream my video directly from the samba share?

Last edited by greenthing; 06-10-2005 at 01:09 PM.
 
Old 06-10-2005, 01:20 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
well you've not told us why you "have to" copy it anywhere.... what's wrong? there's no reason at all it shouldn't work ok
 
Old 06-10-2005, 01:50 PM   #3
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
He has a good point though. On windows-to-windows SMB, you can watch the video remotely without having to copy it over. It creates some lag on the bandwidth connection and the local drive hosting the file but it can be done. I have SMB server running on my SUSE 9.3 distro and am able to view videos on my windows box (hosted on the Linux SMB server.)

Does the video not play at all or does is skip frames alot?
Are you trying to view the video from a Windows or Linux box?
 
Old 06-10-2005, 02:12 PM   #4
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
I do it all the time. My video directory is on my linux box, i watch it over smb on windows....


but i do remember having issues with this back when i had redhat. I honestly dont remember how I resolved it..... mabey i just didnt have it with slack... but at least I know that it can be fixed.
 
Old 06-10-2005, 03:02 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
you can share both ways and run apps both ways if the directory is maped/mounted by the computer you are phsyically touching.

example: when you are on your windows box is the samba share mapped to a drive?

to do so go to my network place (or my computer both work) then tools and add network drive, or map network drive i forget what exactly it is called now.

once you have that mapping setup for your windows box the OS does not know that that share is not a real harddrive connected to that box. as far as Windows is concerned it is a LOCAL resource for accessing the files and running them.

so if samba share is mapped to the Z:/ then you would open z:/share_name/*.mpg and open with your video viewer like windows media player or VLC.

that way you no longer need to copy the file directly to your local HD.
 
Old 06-10-2005, 03:05 PM   #6
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
i watch videos on linux over smb all the time, too, and once and a while even from lin -> win.
 
Old 06-10-2005, 03:08 PM   #7
greenthing
Member
 
Registered: Jan 2005
Distribution: Suse 9.3 pro
Posts: 116

Original Poster
Rep: Reputation: 15
Sorry for not giving a good description of the problem.
I'm trying to watch movies on one linux box that is connected to a second linux box witch hostes the files. when i click on any file in the smb share i get a standard dialog with two otions save the file to disk or to open it directly excactly the same dialog you get if you click on this link. so im looking for a way of streaming the video so I can watch it while downloading so to speak. the same thing that happens when you stream video from a webpage.
 
Old 06-10-2005, 03:16 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
what are you using to access these shares?? you should be able to just use them as if they were a local file system, not as if it were a web page...
 
Old 06-10-2005, 04:56 PM   #9
greenthing
Member
 
Registered: Jan 2005
Distribution: Suse 9.3 pro
Posts: 116

Original Poster
Rep: Reputation: 15
I use konqueror by entering the following in the adress bar smb:/mediaserver/
 
Old 06-11-2005, 10:49 AM   #10
greenthing
Member
 
Registered: Jan 2005
Distribution: Suse 9.3 pro
Posts: 116

Original Poster
Rep: Reputation: 15
After some looking around i saw that smbfs isn't running does this matter?
 
Old 06-11-2005, 10:55 AM   #11
ckr
Member
 
Registered: Jul 2004
Posts: 45

Rep: Reputation: 15
Just a question: Why are you using Samba from Linux 2 Linux at all? I stream vids to my widoze boxes from my Linux server while using Samba with no problem. But if I'm streaming *to* a linux box, I just NFS mount the directory. I know that you can use samba from Linux 2 Linux, but there didn't seem to be a good reason to do so. For me, any way.
 
Old 06-11-2005, 10:58 AM   #12
greenthing
Member
 
Registered: Jan 2005
Distribution: Suse 9.3 pro
Posts: 116

Original Poster
Rep: Reputation: 15
Ok this is strange, if you right click on the file and choose "preview in kaffeine" you can stream it.
 
Old 06-11-2005, 01:26 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
oh yeah..... no windows machines in the picture? dump samba, use nfs, so so much easier and faster.
 
Old 06-11-2005, 04:27 PM   #14
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
Quote:
Originally posted by greenthing
Sorry for not giving a good description of the problem.
I'm trying to watch movies on one linux box that is connected to a second linux box witch hostes the files. when i click on any file in the smb share i get a standard dialog with two otions save the file to disk or to open it directly excactly the same dialog you get if you click on this link. so im looking for a way of streaming the video so I can watch it while downloading so to speak. the same thing that happens when you stream video from a webpage.
this is something i just learned not to long ago as i moved from a windows box as my file server to a linux box to host my movies for my media box.

for windows to windows use SMB
for linux to windows use Samba
for linux to linux use NFS

that linux box that has the files you want to stream across your LAN should be configured as your NFS server, then you can use the following command to modify for your personal server and LAN configuration.

Code:
mount -t nfs -o rw,rsize=8192,wsize=8192,intr 192.168.2.100:/directory/of/files/to_be/streamed /mount_point
run that command from the computer that will be accessing the files you are streaming from the server. this will mount the NFS share and give you access to the files as if the files were local. also keep in mind you will need to be on at least a 10baseT LAN or the stream will be choppy.

best of luck.
 
Old 06-12-2005, 01:41 AM   #15
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
If you want to copy and stream the video you should click on the source location in konqueror while copy the SMB share with a delay. The desired action you seek to view and rip the file have to do be done by browsing the SMB share with these actions. It is not a silver bullet but it is a few clicks that doesn't make it any harder to do.
 
  


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
Video stream gateway templar_g Linux - Software 0 10-04-2005 02:38 AM
Creating a live video stream little_penguin Linux - Software 1 08-12-2005 02:57 AM
Could you pse test this video stream for me martinlinuxuser Linux - Software 3 03-25-2005 04:14 AM
Watching a video stream on linux locazor Linux - Software 1 04-29-2004 07:06 AM
Capturing Video Stream suriyamohan Programming 0 03-25-2003 07:33 AM


All times are GMT -5. The time now is 10:22 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