General :: Bash Script To Convert MPG Files To AVI Format?

Sep 19, 2009

I'd like to write a bash script to convert all of the .mpg files in a directory to .avi files. The ffmpeg part of this produces the kind of file that I want, but rather than changing the name of the input and output files each time that I run the script, I'd like to automate it. I've tried this script, but I get an error "command not found".

#!/bin/bash
cd /home/michael_s/golf_temp
1 for i in 'ls *.mpg' ; do
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 1 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi

rm -f /home/michael_s/golf/temp/"$i".avi
/usr/bin/ffmpeg.exe -i /home/michael_s/golf_temp/"$i" -map 0:0 -map 0:1 -pass 2 -vcodec mpeg4 -vtag xvid -f avi -b 1100k -vol 384 -mbd rd -s 640x480 -aspect 4:3 -acodec libmp3lame -ac 2 -ab 128k /home/michael_s/golf_temp/"$i".avi
done
fi
quit

View 5 Replies


ADVERTISEMENT

General :: Convert DBX Mail Files To MBox Format?

Nov 16, 2010

Recently, my hard drive crashed. I was using XP and do not have my install discs (lost them 3 moves ago...). I make backups regularly and only lost roughly 3 days worth of material (nothing really important). On my other PC I've been running linux forever. I don't need windows and have installed a new HD in the PC and put fedora on there w/ no issues. Now historical email. There seems to be many workarounds for getting dbx files to mbox inside windows, but how would I accomplish this task without a windows install anywhere (Virtual installs are out as I do not have any install discs for windows anyways).

After a quick search, I only found one possible solution (in perl) and am looking for something that I don't have to program my self. I am a programmer by trade but have never programmed in perl (c++, FORTRAN, matlab, python... yes) and at this point, don't feel like learning new syntexs for this one problem (python has been my goto scripting language for everything linux...). Also if anyone has a link to a c++ lib(link to documentation?) that does the same thing... I might take a look at that and make a gui for it... then release it for others...

View 1 Replies View Related

General :: Convert .wav Sound Files To .gsm Format With Sox Utility?

Sep 1, 2009

how can I convert .wav sound files to .gsm format as I have an application for this usage ? Please be informed that I have made use of the sox utility for this purpose , as the followings , but it didn't get through : #sox FR00003.wav -r 8000 -c 1 FR0003.gsm resample -ql

View 5 Replies View Related

General :: Simple Script To Convert Datetime Format To UTC Format?

Oct 9, 2009

just wondering is there a simple script to convert datetime to UTC format. I have been searching different forums but most answers are for converting UTC to datetime. For example what is a simple command/script to convert todays datetime to UTC format i.e. '2009-10-09 11:47:59'.

View 10 Replies View Related

Ubuntu :: Convert Files Into Mp4 Format?

May 12, 2010

are there any Gui for ffmpeg because i have heard it can convert files in to mp4 format?

View 5 Replies View Related

Debian :: Convert Postscript Files To Pdf Format

May 5, 2010

I use Linux for my everyday work but lately I've been faced with a trouble when I send out file printouts from my browser from my Debian system to (normally) window$ systems, where they are not readable. Is there a way for me to convert the postscript files into pdf format? Most window$ users will have some sort of pdf reader installed but I am still to find one user that has Ghostscript and Ghostview installed. where can I find the TTF fonts that are shipped with every standard installation of Debian? I'm sometimes forced to print files through a windows system and because the fonts loaded in that system are not the ones I use in Debian (URW Gothic L, as an example) I end up having my official documents disfigured. If I can carry around with me a ready-to-install fonts package I can get over this obstacle.

View 3 Replies View Related

Fedora :: Convert Mkv Files To Any Format Readable?

Nov 11, 2010

I am running my fedora box as a media server and my xbox (sorry) doesn't see mkv files and I have been looking for a while for a way to convert the mkv files to any format readable any ideas?

View 3 Replies View Related

Ubuntu Multimedia :: Convert AVI Files To DVD Format?

Apr 9, 2010

what package can I install to convert AVI files to DVD format??

View 8 Replies View Related

Software :: Convert Video Files .mov Format To .mp4?

Apr 9, 2011

How can I convert video files .mov format to .mp4?

View 2 Replies View Related

Ubuntu :: Any Tool / Script To Convert MKV Files Into VOB Or AVI Format?

Feb 17, 2010

I need a tool or a script or something that will convert mkv files into vob or avi format.

View 9 Replies View Related

Ubuntu Multimedia :: Convert Any Video Files To Any Format?

Jan 4, 2011

I just wanted to know what people think is the best video encoding program. I want to be able to convert any video files to any format, mostly x264, avi that sort of stuff. I used AVS encoder in windows.

View 2 Replies View Related

Ubuntu Multimedia :: Unable To Use 'convert' In Command Prompt To Convert Image File Format

Jan 19, 2010

I am trying to use 'convert' in command prompt to convert image file format.I get the following error.

convert: UnableToOpenConfigureFile `delegates.xml' @ configure.c/GetConfigureOptions/589.
convert: NoDecodeDelegateForThisImageFormat `airplane.jpg' @ constitute.c/ReadImage/530.
convert: MissingAnImageFilename `airplane.ppm' @ convert.c/ConvertImageCommand/2838.

View 3 Replies View Related

General :: Convert AVI Or Rmvb To DVD Format?

Apr 18, 2010

how can convert AVI and Rmvb format to DVD and burn it into DVD Disc? I have Obuntu ver9.?

View 3 Replies View Related

General :: Using Convert From Imagemagick Package To Convert Multiple Jpg Files?

Jul 18, 2010

I'm trying to use convert, I have installed the imagemagick. I use this line:convert *.jpg test.pdf but I'm only able to convert to pdf 1 single jpg file, not multiple files at once. When there's more than one file, I get the following error: Segmentation fault

View 5 Replies View Related

Fedora :: Convert Image Files To Mpeg Video - Bash: Images2mpg: Command Not Found

Sep 13, 2010

I am new to Linux and I am trying to convert image files to mpeg video I tried using this command images2mpg -o Vorticity.mpeg -i Vorticity-Magnitude0%d.jpeg I get an error as below bash: images2mpg: command not found

View 2 Replies View Related

General :: Convert To ASCII Format Under OpenWrt?

Feb 16, 2011

[URL] under Fedora 14 - Bash:
$ cat asdf | iconv -c -t ASCII
<a href="http://www.net-security.org/secworld.php?id=10607">biometric cabinet lock detects life in the finger</a>
ASDF
$
[Code]...

But theres no iconv under OpenWrt. Are there other working methods to convert a piped ( "|" ) text to only ascii format (under OpenWrt 10.03)?

View 1 Replies View Related

General :: Convert *.cur To X11 Cursor File Format?

Mar 6, 2011

Visibly my WM is not capable to read else than the format X11 cursors, so no way to CUR or ANI
Cheers

View 4 Replies View Related

General :: Convert Pdf File To Text Format In 4.7?

Dec 27, 2010

I have an pdf file on my linux RHEL 4.7 machine. I can open that file but when i click on 'saveas' to save the file in 'Text' format there are no options i see there. I need to save the 'pdf' file to 'text' format. could anyone tell me how to save the pdf file to Text format. Iam using 'KDE'

View 6 Replies View Related

General :: Convert A Video File To Mxf Mxf Container Format?

May 31, 2010

I am trying to convert a mpg video file to mxf container format using ffmpeg by follwing command. ffmpeg -y -i INPUT.mpg -s 640x480 -vcodec mjpeg -b 5Mb -minrate 4Mb -maxrate 6Mb -bufsize 3Mb -an -f mxf OUTPUT.mxf

I get this error::

FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-shared --enable-libmp3lame
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1

[Code]....

View 2 Replies View Related

General :: Convert A Cdrom Made With Clonecd To ISO9660 Format?

Jan 4, 2010

I used linux clonecd to copy a cdrom, but I would like to convert it to more standard iso9660 format.

How could we make it? I have the bin and toc files as source from clonecd linux.

View 9 Replies View Related

General :: Free Command Line Tool To Convert SVG To PDF And/or Some Commonly-used Bitmap Format?

Jun 29, 2011

Is there a free linux command line tool to convert SVG to PDF and/or some commonly-used bitmap format (for example PNG)?

View 2 Replies View Related

General :: Want To Format Bash Errors

Jun 8, 2011

I am using Fedora 14 and when I am executing a file:

#!/bin/bash
asd #assuming this command does not exist

I am getting following error:
/path/to/file: line 2: asd: command not found

I want to format it so it outputs error in same way as it would when it was executed from terminal:

$ asd
bash: asd: command not found

View 1 Replies View Related

General :: System Call (not Bash Command) To Format Partition?

Feb 18, 2011

I'm working on Linux OS (Suse/redhat) and trying to format a linux partition from a c program. Is there a way to do this without using : 'system ("mkfs.ext4 /dev/sdxy")'

View 4 Replies View Related

General :: Convert Open Office (odt) Files To Text Files?

May 25, 2011

How do you convert Open Office (ODT) documents to Text files?
I have made a report using libre office. Now I wish to continue editing the document using lyx (latex front end). So the ODT file needs to be saved as some .tex file.

I don't see an option to do this in File menu (export/save as). So is there any other plugin to do this?

View 1 Replies View Related

General :: Convert Many Files To Individual .bz2 Files Retaining Original Name?

Mar 28, 2010

i have a large directory of .bsp files that i would like to convert .bz2 archives. I've been searching for some time and all i can find is the obvious compress multiple files into one large archive. If anyone knows how to convert each file individually, while retaining the original file name (testmap.bsp would be archived as testmap.bsp.bz2)

View 5 Replies View Related

Fedora :: Convert .mp4 Format To .avi Format Using "ffmpeg"?

Aug 9, 2011

I have some .mp4 files. While open this file using vlc-player the resolution is fine. Then I convert this .mp4 format to .avi format using "ffmpeg". While open the .avi file using vlc-player the resolution is not fine.

View 3 Replies View Related

Software :: Convert A Bunch Of .ogg Files To Mp3 To Play On IPod - Unable To Convert With Sound Converter?

May 3, 2009

I have Ubuntu 9.04 and just installed Sound Converter. I am trying to convert a bunch of .ogg files to mp3 to play on my iPod and it's not working so well. In the Sound Converter options I have is set to convert to high quality mp3. I choose the folder that the files are in and after a moment (slow laptop) Sound Converter populates, I hit 'convert' and it shows that the conversion completes in two seconds. All that it did was create the new folder structure of artist/album but there is nothing in there. Not sure what I am missing. I used Sound Converter before and it worked fine.

View 2 Replies View Related

Fedora :: Convert A Dvd To Avi Format?

Sep 5, 2010

Just wondering what are my options if I wanted to convert a dvd to avi format?

View 3 Replies View Related

Fedora :: Convert A DVD From NTSC To PAL Format?

Aug 13, 2009

What is the best way using Linux to convert a DVD from NTSC to PAL format? I have a DVD made from an HD recording using a video camera. Made a standard DVD by copying from the Camera to the DVD recorder [ergo NTSC].

Now how to convert the DVD to PAL format?

View 2 Replies View Related

Fedora :: How To Convert FLV And MP4 Videos To SWF Format

Sep 20, 2009

Is there any way to convert *.flv and *.mp4 videos to *.swf format please? I have some videos downloaded with .....-dl that are in the above format. I would like to make them all into SWF files, so anyone can watch them in their browser, without having to find a suitable multimedia player.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved