Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-12-2007, 05:24 AM   #1
Registered: Dec 2002
Location: UK
Distribution: Slackware, Zenwalk
Posts: 173

Rep: Reputation: 30
Video Conversion & Fstab Entry

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

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 // /mnt/Network/Fileserver

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

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

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.

// 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 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, 12:56 PM   #3
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?



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

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

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration