LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-12-2007, 04:24 AM   #1
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Rep: Reputation: 30
Video Conversion & Fstab Entry


Hi,
I normally use ffmpeg to convert .avi videos to mpeg so i can burn them to disk as vcd's and watch on my dvd player (legal videos ofc).

After converting to mpeg there is usually around a 1 second time difference between the sound and the video (it seems to get worse the further you get through the video), so far ive been able to put up with it.
But recently ive been converting videos and the delay is even worse, and now im wondering if there is anyway to fix this, or why it happens?

I know i can convert them without the delay because i booted into windows (the first time in about 6 months) and tried converting them, although it took around 2 hours (whereas ffmpeg takes maybe 10-15 mins), the sound was still in sync (i used cusofts avi to vcd). I tried running the program in wine, but it didnt work, and this wouldnt have been what i wanted anyway.

So is there an all linux solution to my problem? lol.

Thanks Guys
Kane

Oh also, ive got a samba fileserver running, and i currently mount it like:
mount -t smbfs -o username=blah,password=blah,dmask=777,fmask=777,umask=000 //192.168.1.15/media /mnt/Network/Fileserver

How would i convert this to an fstab entry? And would it automount it when the filerserver came online/offline?

Cheers
 
Old 03-12-2007, 04:44 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
dmask=777,fmask=777,umask=000
The dmask and fmask allow you to use different permissions for files then for directories. This allows you to mask out the X bit for files but not for directories. Your fmask and dmask are wrong however, but the umask changes the permissions for everything.
You could use dmask=000,fmask=111 and not use umask. The mask bits deny permissions.

Also double check whether your kernel supports cifs instead of smbfs. The smbfs kernel module is being superceded by the cifs module which has better Linux/Unix to Linux/Unix features.

It may be better to use a credentials file, containing the username and password. Issuing a mount command with the password makes it visible to other uses.

Code:
//192.168.1.15/media smbfs /mnt/Network/Fileserver smbfs username=blah,password=blah,dmask=777,fmask=777,umask=000   0 0
You might also want to use the noauto option so the system doesn't try to mount the partition on boot. There is a
_netdev option which delays mounting until the network is up, but if the host at 192.168.1.15 is down you might still have a problem.

The fstab file has its own manpage as well: man 5 fstab
If you have the kernel source installed, look in the Documentation/filesystems/ directory for a cifs.txt file.
 
Old 03-12-2007, 11:56 AM   #3
Kane2002
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Original Poster
Rep: Reputation: 30
thanks for that

ill have a look into it.

Anyone got any suggestions about my video conversion?

Thanks
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab entry for cdrom here2serve DamnSmallLinux 2 02-04-2007 04:33 PM
Creating fstab entry for Linux (Red Hat 9 & Slackware 11) p2pfire Linux - Hardware 3 01-06-2007 03:38 AM
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 04:30 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 01:45 AM
fstab entry albean Linux - Newbie 1 12-04-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 PM.

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