What is the correct syntax to limit the number of decimals to 1 or 0 in a bash script? Here is the partial code I have which works, but if I echo $meters, it has 4 or 5 decimals:
METERS=`echo "$FEET * 0.3048" | bc`
I read about scale and length in the bc man page, but I can't seem to get the... (2 Replies)
found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution :)
to encode an avi to to an nokia e71 recognized mp4 format:
ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop... (2 Replies)
Hi all,
I use ffmpeg to convert my movies to play them with my PSP.
I use the terminal version of ffmpeg so i put in the code:
]ffmpeg -i FILENAAM.avi -f psp -r 29.97 -b 512k -ar 24000 -ab 64k -s 320x240 M4V00001.MP4
FILENAAM is the part i replace with the title of the movie i want to see... (17 Replies)
Hi,
I have the following requirement.
There will be following text/line in a file (eg: search-build.txt)
PRODUCT_VERSION="V:01.002.007.Build1234"
I need to update the incremental build number (eg here 007) every time I give a build through script. I am able to search the string and get... (4 Replies)
I'm making an automated bash install script. When you install mysql-server using apt-get, there's a blue dialog screen where it wants you to chose your mysql root password.
Is there a way to pre-define the password in the apt-get command, or have it not chose a root password?
It's not a... (2 Replies)
This is the final first release of the dynamic menu generator for pekwm (WM).
#!/bin/bash
function param_val {
awk "/^${1}=/{gsub(/^${1}="'/,""); print; exit}' $2
}
echo "Dynamic {"
for CF in `ls -c1 /usr/share/applications/*.desktop`
do
name=$(param_val Name $CF)
... (3 Replies)
dear all,
i need your advice for convert bash shell to C programming
INDEX=/zpool1/NFS/INDEX/${1}
SCRIPT=/zpool1/NFS/script/${1}
LIST=SAMPLE
cd ${SCRIPT}
for i in `cat ${LIST}`
do
GETDATE=`echo ${i}|awk '{print substr($1,9,8)}'`
/usr/xpg4/bin/awk -F ":" '{close(f);f=$4}{print >>... (2 Replies)
I am trying to use bash to automate the scan of a specific directory using clamav. Having this in place is a network requirement. The below is an attempt to:
1. count the extensions (.txt, .jpeg) in a directory and write them to a virus-scan.log (section in bold)
2. scan each folder in the... (6 Replies)
I use plink.exe to automate remote commands that return data to Windows machines. This works well on newer servers running Red Hat since the commands were developed for bash and the designated user's login shell is bash. I need to also support older servers which are running Solaris 10 but the... (5 Replies)
Discussion started by: randman1
5 Replies
LEARN ABOUT SUSE
lavtrans
lavtrans(1) MJPEG tools manual lavtrans(1)NAME
lavtrans - Convert MJPEG videos to other MJPEG video formats
SYNOPSIS
lavtrans -o outputfile -f a|q|i|w [-i num] lavfile1 [lavfile2 ... lavfileN]
DESCRIPTION
lavtrans can be used to convert the recorded videos from one MJPEG "container" format to another one. It can also be used to split the
streams, or do destructive edits.
Like all the other mjpegtools(1) lavtrans also accept a edit list file in place of actual video files. This allows it to be used to con-
struct a stand-alone copy of the editted video sequence described in the editlist.
Note that lavtrans can only change the container type of MJPEG video, not the format. As such it is not possible to use it combine streams
of different format.
OPTIONS
lavtrans accepts the following options:
-f [a|q|m|i|w]
Specifies the output format that should be saved.
a - output to AVI file
q - output to Qicktime file
i - output single JPEG images,
w - output WAV file (sound only!)
-i num
Convert a single frame to a JPEG file.
-o outputfile
Specifies the name of the output file If you want as output single JPEG images the output file string must be a valid format string
filename
Multiple filenames as input are acceped, also mixing of edit list files and other in video files.
BUGS
There seem to be problems with the transoding of large Quicktime movies. One other thing is that with interlaced movies only one field is
extracted. So you get pictures with the full horizontal size and half vertical size.
AUTHOR
This man page was written by Bernhard Praschinger.
If you have questions, remarks, problems or you just want to contact the developers, the main mailing list for the MJPEG-tools is:
mjpeg-users@lists.sourceforge.net
For more info, see our website at
http://mjpeg.sourceforge.net
SEE ALSO mjpegtools(1), lavplay(1)MJPEG Linux Square 2 June 2001 lavtrans(1)