Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware, CentOS, Debian, OpenWRT, FreeBSD, OpenBSD, Solaris
Posts: 38
Rep:
amarok + cifs/smb = no seek ?
Greets all,
I've had this same issue across two separate installs. Amarok will not seek within mp3/ogg files that are being played from a locally mounted samba/cifs share. If I copy the same files over to my local hd and play from there, the problem does not exist and I can seek forwards/backwards within the file. The symptom is just that the seekbar appears to be locked and I cannot move it. Seeking is no problem when using other simple media player apps such as orpheus or mp3blaster with this samba share.
Just to clarify, this is a samba share mounted via cifs locally from a server on my lan.
if it matters, between the client and server there is a linksys wrt54g router (running openwrt kamikaze) and a cisco catalyst 2900 switch
Client specs: amarok 1.4.6 on slackware 12.0 with a custom 2.6.24.3 kernel.
Also had the same issue on debian 4.0rX etch.
I just mounted my home directory on a desktop on a mountpoint on my laptop and selected an mp3 file from "files" in amarok. I was able to seek to the middle of the mp3 file. Maybe it was due to the mp3 file being short or maybe because I am the owner of both and using cifs instead of smb. I normally use NFS, and actually I download all podcasts to an NFS share on the desktop. I usually listen to the podcasts from my laptop in another room. ( I also use mysql on the desktop as well, but I digress. )
Code:
> sudo mount -t cifs //hpmedia/jschiwal /mnt/hpmedia/mb2/ -o defaults,cred=/home/jschiwal/.credentials
mount |grep cifs
//hpmedia/jschiwal on /mnt/hpmedia/mb2 type cifs (rw,mand)
You used smb/cifs in your post. Check which one is used. cifs has better linux-to-linux support.
Which engine are you using to play the mp3's? I am using the xine engine.
the 'users' option is to allow non-root users to mount/unmount samba shares.
I just noticed something very strange: If I play an m3u playlist created on local hd which points to files on the cifs share, amarok WILL allow seeking within the files.. If I load the files directly into amarok as usual, however, seeking is once again disabled! Does this make any sense to anyone?
Distribution: Slackware, CentOS, Debian, OpenWRT, FreeBSD, OpenBSD, Solaris
Posts: 38
Original Poster
Rep:
no go
Amarok is using the xine engine and i've tried using arts (no play), oss, and alsa for output with the same results.
Also have tried chmod'ing /usr/bin/amarok u+s, chown'ing it to my own username, running amarok as root, mounting the cifs share as root instead of user.
All with the same result: If I have the files in a playlist, the seekbar works fine, but if i load the cifs shared files directly, seekbar is locked. One other detail: amarok is not calculating the length of the files loaded from the samba cifs share. The "length" field is just blank for those tracks, yet the "length" field is correctly filled for the exact same files if they are loaded through a playlist or copied over to local hd and loaded from there.
Any further ideas?
Last edited by Molly; 04-08-2008 at 11:58 PM.
Reason: addition
The lines that are commented out are the ones I tried with no success in resolving the seek issue. Basically I could not get this to work with cifs AT ALL .. so I switched to smbfs. The other VITAL option was the fmask=0444 - without this option the same problem will exist.. no seek!
The last thing I did was chmod u+s /usr/bin/smbmnt to allow users to mount/unmount the share.. this was not necessary when using cifs but becomes necessary with smbfs.
Hope I've saved others a bit of headache here.
Last edited by Molly; 04-09-2008 at 12:37 AM.
Reason: revision
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.