Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Constant buffering
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Sun Jun 19, 2005 10:30 am    Post subject: Constant buffering Reply with quote

Playing a movie locally is fine.

But playing it from my fileserver, it is buffering every ten or twenty seconds. That's no way to enjoy entertainment.

Doesn't matter if it is Totem movieplayer or Xine. Can't watch anything remotely with Mplayer.

Would this be a Sambathing or an erroneous setting somewhere?

The network itself is 100mbps and the client to watch with is a PIII/600 with 400Meg RAM.
My trusty old p133 with 80megs of RAM and Windows shows almost every file I have unless they are too heavy or lack a codec.

Tanks for any help
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Sun Jun 19, 2005 11:46 am    Post subject: Reply with quote

you can pass the -cache <number in KB> to mplayer, so specify the cache size. for example:
Code:

$mplayer -cache 256 movie.avi

_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Mon Jun 20, 2005 10:20 am    Post subject: Reply with quote

Thanks, but Mplayer is out of the picture. At least until I can reach my files over the network.

Wed
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Mon Jun 20, 2005 10:49 am    Post subject: Reply with quote

wedin8 wrote:
Thanks, but Mplayer is out of the picture. At least until I can reach my files over the network.

Wed

Why exactly can't you reach your files using mplayer?
Btw, have you tried using vlc (virtual lan client) or realplayer? Both are in portage.
_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Mon Jun 20, 2005 11:02 am    Post subject: Reply with quote

In Mplayer my shared directories on LAN is not visible, only the local file tree can be seen.

Xine can play remote files if I first open Xine and then drag and drop files inte the Xine window. Remote filesystems are not browseable.

In totem browsing works just fine, just as if the shares were local.

So that is why I asked if I have a Sambaproblem or media problem since these players both seem to need buffering every 20 seconds or so. In Xine I moved the video buffers from 500 to 3000 with no effect at all (yes restarted in between), apparently that setting doesn't do what I thought it did.

CPU is far from maxed out and the same goes for RAM

No, I haven't tried Realplayer, and never heard of VLC. I'll take a look at it
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Mon Jun 20, 2005 1:32 pm    Post subject: Reply with quote

wedin8 wrote:
In Mplayer my shared directories on LAN is not visible, only the local file tree can be seen.

I understand you are using the GUI right? Try opening it this way:
Code:

$ mplayer smb://<user>:<password>@<IP of the computer with samba>/path/to/movie/file/movie.avi -cache 200


Quote:

Xine can play remote files if I first open Xine and then drag and drop files inte the Xine window. Remote filesystems are not browseable.

Well, if you do it this way, i don't know if it is doing what you want. You want Xine to open a samba URL, but what may in fact be happening is that the filesystem is copying the file to your local computer first, which may not be the behaviour you want.

Quote:

In totem browsing works just fine, just as if the shares were local.

That's because of its integration with Gnome.

Quote:

So that is why I asked if I have a Sambaproblem or media problem since these players both seem to need buffering every 20 seconds or so. In Xine I moved the video buffers from 500 to 3000 with no effect at all (yes restarted in between), apparently that setting doesn't do what I thought it did.

I don't think there is a problem at all, i think perhaps you're just not using the programs the right way.

Quote:

No, I haven't tried Realplayer, and never heard of VLC. I'll take a look at it

Try VLC first (after the thing with mplayer i said above).
_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Mon Jun 20, 2005 1:55 pm    Post subject: Reply with quote

If it seems I sound defensive, please understand I don't intend to.

Quote:
I understand you are using the GUI right?

Of course!

Will try the command line way, but the fileserver has only root as user. And quite frankly, I don't want to set up accounts and passwords to one and all or even a guest account. I am on my own LAN here.

All I want to do is navigate to my file and click it.

Quote:
Well, if you do it this way, i don't know if it is doing what you want. You want Xine to open a samba URL, but what may in fact be happening is that the filesystem is copying the file to your local computer first, which may not be the behaviour you want.


I want to watch my files on this computer as it should have enough resources for it. And I do not want to download it because the hard disk space is insufficient. Though with "System monitor" I see no changes between bufferings.

Quote:
I don't think there is a problem at all, i think perhaps you're just not using the programs the right way.

If these programs are not doing what I want them to, the way I have treated them, then maybe they are not what I am looking for.

The computer is there to serve me, not the other way around. I don't mind reading and learning ... much, but sometimes things seem futile.

I still have VLC to try out. Thanks very much for the help so far.
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Mon Jun 20, 2005 2:18 pm    Post subject: Reply with quote

wedin8 wrote:
If it seems I sound defensive, please understand I don't intend to.

Heh ok. :)

Quote:

Quote:
I understand you are using the GUI right?

Of course!

Will try the command line way, but the fileserver has only root as user. And quite frankly, I don't want to set up accounts and passwords to one and all or even a guest account. I am on my own LAN here.

Well, you're saying that because of puting user and pass in the mplayer command? Well, that's only needed if you have a user and password for connecting via samba to your file server. It's not required if you don't.

Quote:

All I want to do is navigate to my file and click it.

Oh yes, i understand you. However, the problem with mplayer is that its interface is really bad... 8O

Quote:

Quote:
Well, if you do it this way, i don't know if it is doing what you want. You want Xine to open a samba URL, but what may in fact be happening is that the filesystem is copying the file to your local computer first, which may not be the behaviour you want.


I want to watch my files on this computer as it should have enough resources for it. And I do not want to download it because the hard disk space is insufficient. Though with "System monitor" I see no changes between bufferings.

That's the idea i got. What you want is to stream the video. :)

Quote:

Quote:
I don't think there is a problem at all, i think perhaps you're just not using the programs the right way.

If these programs are not doing what I want them to, the way I have treated them, then maybe they are not what I am looking for.

The computer is there to serve me, not the other way around. I don't mind reading and learning ... much, but sometimes things seem futile.

I agree with you. But, as you know, it's not uncommon for things to have problems in linux. About mplayer, the only real problem i see remains in its interface (i can't count the many times i've discussed this before). So, it works but not the way you want it to.
Using Totem, how did you do the browsing? Do you have a samba mount mounted? Try instead do "open" and then use something like smb://<ip>/location/movie.avi, for example. I've tried it here and it worked, but in mplayer it played synchronized and in totem it didn't.

Quote:

I still have VLC to try out. Thanks very much for the help so far.

Hope that works then. :)
_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Mon Jun 20, 2005 3:04 pm    Post subject: Reply with quote

Mplayer: Not a chance!
I tried with and without password, checking spelling and spaces. A looong list of parameters and the occasional "cannot open" or "connection refused" only to end in,
Code:
cli_errno_from_nt: 32 bit codes: code=c00000cc
smbc errno NT_STATUS_BAD_NETWORK_NAME -> 2
Could not open from LAN: 'smb://192.168.1.105/wed/files/Beast.avi'

(no, not a porn, but the Beast from 2000 fathoms from -53)
And yes, I do have a disk mounted directly under / called wed.

Quote:
Well, you're saying that because of puting user and pass in the mplayer command?

Not really, or not entirely. I simply cannot remember the spelling of all the titles or directories. For I don't get file name completion with the tab key. Or am I supposed to get that?

As far as I understand Mplayer is a really good mediaplayer. But mostly due to the amount of codecs available, am I right? It is not important to me to use Mplayer even if it nags me that I can't make use of what I installed. There are others, so far Totem is the most promising.

Totem: Sure but NOT by opening a location, only by navigating through the file tree.
Same Beast.avi as above gave "There is no plugin to handle this movie", while the proper way functioned fine, albeit with heavy buffering.
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Mon Jun 20, 2005 3:48 pm    Post subject: Reply with quote

wedin8 wrote:
Mplayer: Not a chance!
I tried with and without password, checking spelling and spaces. A looong list of parameters and the occasional "cannot open" or "connection refused" only to end in,
Code:
cli_errno_from_nt: 32 bit codes: code=c00000cc
smbc errno NT_STATUS_BAD_NETWORK_NAME -> 2
Could not open from LAN: 'smb://192.168.1.105/wed/files/Beast.avi'


That sounds ugly, do you have samba correctly configured? I know this is a vague question, but... mplayer should work! :)

Quote:

(no, not a porn, but the Beast from 2000 fathoms from -53)
And yes, I do have a disk mounted directly under / called wed.

lol... why would beast sound like porn? :P

Quote:

Quote:
Well, you're saying that because of puting user and pass in the mplayer command?

Not really, or not entirely. I simply cannot remember the spelling of all the titles or directories. For I don't get file name completion with the tab key. Or am I supposed to get that?

What does the spelling of titles and directories have to do with creating user accounts? I quite didn't understand that bit.

Quote:

As far as I understand Mplayer is a really good mediaplayer. But mostly due to the amount of codecs available, am I right? It is not important to me to use Mplayer even if it nags me that I can't make use of what I installed. There are others, so far Totem is the most promising.

Well, it's mostly because of its codec support, but also because of other features. In what relates to your subject there is, for example, the fact that it always tries to retrieve a movie at a constant speed so it works well with low connections. For example, if you try to view a movie from a disk connected to an USB1.1 port, it tries to retrieve the movie at a constant speed instead of a naive fetch-and-display cycle (which would leed to stop the movie from time to time, as you are experiencing).

Quote:

Totem: Sure but NOT by opening a location, only by navigating through the file tree.
Same Beast.avi as above gave "There is no plugin to handle this movie", while the proper way functioned fine, albeit with heavy buffering.

Totem sure is promissing, though it's still not that good in many things at this time.

Btw, i've checked my smb.conf and found the following entries:
Code:

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

Which look like receive and send buffer size configuration. Perhaps you could try those.
_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Tue Jun 21, 2005 12:10 pm    Post subject: Reply with quote

By now, VLC is also tried and failed.

Which leads me to believe that my Samba setup may be a bit flakey. The fileserver is a RedHat flavour called ClarkConnect and is supposed to be a fileserver, and it works flawlessly against my Windows98SE client. Thus it seems this Linuxclient needs some tweaking ... see comment below.

Quote:
lol... why would beast sound like porn?


You don't know some of my friends ...

Quote:
What does the spelling of titles and directories have to do with creating user accounts? I quite didn't understand that bit.


It wasn't really about the user and pass part, but about using commandlines to watch movies. I have my files fairly well ordered, but that shouldn't be a prerequisite to get some entertainment. Typing in long adresses only to find a missing dot or a capital letter ruining a whole day. Not my cup of tea. If mouse and click doesn't work, I have (need) to find another solution.

Quote:
Btw, i've checked my smb.conf and found the following entries:


Code:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192



Which look like receive and send buffer size configuration. Perhaps you could try those.


That config file of Samba's is one I shudder to stick my nose in, hence my delay. But I will fiddle a bit when I have mustered up the courage (yes all my working config files are copied and stored someplace safe, but still).

I suppose that is a story better told in another part of this forum. Thanks for all the help, and being a moral support.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Tue Jun 21, 2005 12:23 pm    Post subject: Reply with quote

And I have the same entry in my smb.conf.
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Tue Jun 21, 2005 12:40 pm    Post subject: Reply with quote

Ok, so let's see what else i've got left to sugest... how did vnc fail? doesn't it have any sort of configuration about this? this is so weird... what i find most weird above all, is the fact that you don't seem to be able to access your files using a path like smb://etc/etc/etc. If you access the files from your samba mount point, it will be different. Btw, have you looked through the samba mount options?

I wish i could help more. :)
_________________
noup.
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Tue Jun 21, 2005 12:55 pm    Post subject: Reply with quote

Naturally, I ought to give the outcome of VLC, and here it is.

Code:
$ vlc smb://192.168.1.105/wed/files/Beast.avi
VLC media player 0.8.1 Janus
Remote control interface initialized, `h' for help
[00000185] main input error: no suitable access module for `smb://192.168.1.105/wed/files/Beast.avi'
Back to top
View user's profile Send private message
wedin8
n00b
n00b


Joined: 03 Nov 2004
Posts: 61
Location: L-A, Scania, Sweden

PostPosted: Tue Jun 21, 2005 1:01 pm    Post subject: Reply with quote

I wish I understood more ...

Rather, I wish I didn't NEED to understand so much!

edit:
I am mucking about in the Samba stuff now
Back to top
View user's profile Send private message
noup
l33t
l33t


Joined: 21 Mar 2003
Posts: 917

PostPosted: Tue Jun 21, 2005 2:01 pm    Post subject: Reply with quote

wedin8 wrote:
Naturally, I ought to give the outcome of VLC, and here it is.

Code:
$ vlc smb://192.168.1.105/wed/files/Beast.avi
VLC media player 0.8.1 Janus
Remote control interface initialized, `h' for help
[00000185] main input error: no suitable access module for `smb://192.168.1.105/wed/files/Beast.avi'

Bah don't know exactly what it means... aargh :?

Quote:

I wish I understood more ...

Rather, I wish I didn't NEED to understand so much!

edit:
I am mucking about in the Samba stuff now

You're quite right. :)

Btw, in the smbmount man page, there is this:
Code:

 sockopt=<arg>
              Sets the TCP socket options. See the smb.conf(5)  socket options option.

which lets you do the socket things i said above, for the local samba mount.
_________________
noup.
Back to top
View user's profile Send private message
ards
n00b
n00b


Joined: 26 Jun 2004
Posts: 3

PostPosted: Sun Jul 31, 2005 10:49 am    Post subject: Reply with quote

I'm having the exact same problem. Tried setting the network buffer size in gconf...no affect.

Connected to a samba share over gigabit ethernet! And it still buffers every 20 seconds. :(

Any help would be greatly appreciated.
Back to top
View user's profile Send private message
ards
n00b
n00b


Joined: 26 Jun 2004
Posts: 3

PostPosted: Sat Aug 06, 2005 8:38 am    Post subject: Reply with quote

Adding this to my smb.conf file fixed the problem for me:

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum