09-25-2015
learning me, I am using the perl script and whithout the dots in between coud be yes a) jampacked as you set it uptotheroof but without touching the file extension "up to the roof.avi" or b) "up to the roof.avi"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings to all!!:b:
I have one root folder containing several other folders inside it. This tree structure is deep. And the files are of similar extension.
I need to start at the top level and recursively search and rename all the files with say .a extension to .b .
This is the code to... (7 Replies)
Discussion started by: riverside
7 Replies
2. Shell Programming and Scripting
I am trying for loop to rename file extension from .txt to .html :
as below :
for i in *.txt; do mv "$i" `basename $i`.html; done
-------------------------------------------
But this renames a file file1.txt as file1.txt.html
anyone know how get avoid .html added after .txt ?
it... (4 Replies)
Discussion started by: sriram003
4 Replies
3. UNIX for Dummies Questions & Answers
I searched the forum, but there was different type of rename.
Hello.
I have files in folder.
Like:
xxxxxxxx1.html
or
xxxxxxxx2.txt
or
xxxxxxxx3.tar.gz
and how to rename or change file extension case to
xxxxxxxx1.htm
or
xxxxxxx2.TXT
or (5 Replies)
Discussion started by: Sheldon
5 Replies
4. Shell Programming and Scripting
Hi guys,
i had many files like filename.20110520_20110519_050030
i have to rename the file by removint the last numerics ..
i.e filename.dat
i tried with cut command and removed the numerics but i'm not able to add .dat to the files.
is there any command insted of cut command to... (1 Reply)
Discussion started by: apple2685
1 Replies
5. Shell Programming and Scripting
hi
I would like to ask if someone knows a command or a script on how to rename a multiple file in the directory starting at the end of the filename or at the .extension( i would like to remove the last 11 character before the extension) for example
Below is the result of my command ls inside... (5 Replies)
Discussion started by: jao_madn
5 Replies
6. Shell Programming and Scripting
hi!
i want to rename all files with no extension with the extension DAT.
with this command ls |grep -v "\\." i can list files but i dont know how i am going to rename them..
so
i tried
FILE_LIST=ls |grep -v "\\."
for TEST_FILE in ${FILE_LIST}
do
mv $TEST_FILE... (2 Replies)
Discussion started by: kouppoua
2 Replies
7. Shell Programming and Scripting
Hi,
I am trying to make all file in the directory uppercase but not their extension (ex: image.jpg becoming IMAGE.jpg)
here is code i am trying.
$ ls | while read file
do
name=${file%%.*}
newfilename=$(echo $name | tr 'a-z' 'A-Z')
mv $file $newfilename
done
any suggestions of... (4 Replies)
Discussion started by: johninweb
4 Replies
8. Shell Programming and Scripting
I have a list file that contains names of many files. I am reading one file name at a time using for loop
Then I like to create one more list file but with the file extension changed to "ctl".
Note: The file name can have any number of dots ".". But the extension after the last dot should be... (4 Replies)
Discussion started by: pinnacle
4 Replies
9. Shell Programming and Scripting
Hello,
I have multiple files named rscclog_2013-03-25.txt;3 in a directory, where 2013-03-25 is the previous day's date and the number after extension .txt preceded by a ';' is any number which i do not know beforehand.
Now, i have to rename all such files as rscclog_2013-03-25.txt
thus,... (2 Replies)
Discussion started by: rahulkt1987
2 Replies
10. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
yuv2lav(1) MJPEG tools manual yuv2lav(1)
NAME
yuv2lav - encodes lavtool's raw YUV frame streams into MJPEG files
SYNOPSIS
yuv2lav [-f a|A|q|m] [-q num] [-b num] [-I num] [-m num] [-v num] [-w file] -o output-file
DESCRIPTION
yuv2lav is a simple MJPEG encoder for raw YUV frame streams as they are emitted by lav2yuv(1) or lavpipe(1), for example. It reads its
input from stdin and is capable of writing AVI and Quicktime.
OPTIONS
The command line options allow to specify the output file name, JPEG encoding quality and the amount of memory that will be allocated for
JPEG compressed data.
-o output-file
This (compulsorary) option sets the name of the file that yuv2lav will write its output to. If the output file contains a % (e.g.
file%02d.avi), the output will be written to multiple files in case this is necessary (file00.avi, file01.avi and so on).
-f a|A|q
This sets the output file format, which has to be one of
a - for AVI file output,
A - for AVI with reversed fields,
q - for Quicktime output or
AVI with reversed field of course only makes sense if yuv2lav's feed is an interlaced video source and should only be needed if you
experience frame reversal problems in your output. If you don't use that option yuv2lav will set the output format to AVI if the
last 3 char are avi, or to Quicktime if you use mov. If you use the -f option it overides the setting in the filename
-q num This option specifies the JPEG encoding quality as passed through to libjpeg. The default value is 80, num must lie within 24...100
inclusive (think of it as percentage values, although with a lossy compression algorithm like JPEG, keeping 100% of the original
quality is of course not really possible).
-b num This option specifies the size of the buffer (in kBytes) that yuv2lav allocates in order to store the compressed JPEG data in it.
The default value (256k) is perfectly enough for 100% quality full sized PAL/NTSC, but if you want to compress Super-Mega-HDTV or if
you are low on memory, you can use this option to suit your needs.
-m num This is the maximum size (in MB) per file. Normally this depends on the output file type.
-I num Force a specific interlacing type. 0 means no interlacing, 1 means top-field-first, 2 means bottom-field-first.
-w file
This is the WAV file containing audio data to be combined with the video stream into the output file.
-v num Verbosity level. 0 means only print error messages, 2 prints full debug output.
-? Display a synopsis of the command syntax.
EXAMPLES
lav2yuv movie.avi | yuv2lav -fq -q 30 lowbitrate.qt
would recompress movie.avi as a low bit rate Quicktime file.
lavpipe input.pli | yuv2lav -q80 output.avi
would save the movie assembled by lavpipe as a single AVI file.
BUGS
If you experience any problems with this tool, please feel free to contact the developers (see below).
AUTHOR
This man page was written by pHilipp Zabel.
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
lav2yuv(1), lavpipe(1), lavplay(1), lavrec(1), mpeg2enc(1), yuvscaler(1)
MJPEG Linux Square 2 June 2001 yuv2lav(1)