Sponsored Content
Top Forums Shell Programming and Scripting ffmpeg script to convert all movies in a folder for PSP Post 302551512 by Ditzyken on Tuesday 30th of August 2011 04:37:03 PM
Old 08-30-2011
it works perfect, thx for the help.

Do you know a way that i do not have to type all the names of the movies i want to convert ( <list of files to convert> )
So when i run the script in a certain folder it takes all .avi files that are in that folder to convert them (would save me some work, total is about 200 movies to convert Smilie )
Now i placed 10 movies in a folder and typed their names in the <list of files to convert> so it starts with those 10, but it would be nice not to have to type all the movie titles before converting.




Is there a way that when you execute the script that before it starts converting you first get the question to restart (r), shutdown (s), leave computer on (l)
so after you press r, s or l the conversion starts and then after all is converted the system shuts down or restart or does nothing?
For this i thing about:
[code]echo "When converting is done would you like to Restart (r), Shot down (s) or leave the computer on (l)"
if [r] restart,
if [s] shutdown
if [l] do nothing

but im not a good scripter, so i know the way i put it here will not work (but i dont know the good way)

Last edited by Ditzyken; 08-30-2011 at 07:11 PM.. Reason: added second question
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

here-doc convert 2 script convert to single script?

I have my main script calling another script to retrive a "ls -alt" of a directory that's located in a remote location I'm sftping into. main.sh #!/bin/ksh getLS.sh > output.txt getLS.sh #!/bin/sh /home<..>/sftp <host@ip> <<! cd /some/dir/Log ls -alt quit ! Basically I'd like to be... (2 Replies)
Discussion started by: yongho
2 Replies

2. Shell Programming and Scripting

script for Finding files in a folder and copying to another folder

Hi all, I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt. I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
Discussion started by: satish2712
5 Replies

3. Linux

convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue :)

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)
Discussion started by: mr_manny
2 Replies

4. Shell Programming and Scripting

Automated FFmpeg Convert Bash Script

I need a bash script that will. So here is what I made so far. 1. Convert video files to iPhone format 2. MV converted video to new directory (with domain.com attached to it) 4. Copy a NFO file (from another directory) and add some conversion information 5. Delete old directory torrent... (6 Replies)
Discussion started by: domz
6 Replies

5. Shell Programming and Scripting

Convert all files in current folder from UTF8 to ANSI, name unchanged.

Asking for a Linux command line to convert all files in current folder from UTF8 to ANSI, name unchanged. Best Regards Pei (3 Replies)
Discussion started by: jiapei100
3 Replies

6. Red Hat

Problem installing PSP on rhel 5.2 64

hi, i have a problem when i try to install Proliant support pack into a server with rhel 5.2 sv556:#/tmp/psp# ./hpsum -silent ./hpsum: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory i have already installed library... (3 Replies)
Discussion started by: pabloli150
3 Replies

7. Shell Programming and Scripting

Script to move one folder to multiple folder...

Hi All, I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip. This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
Discussion started by: peekuabc
9 Replies

8. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
aviplay(1)																aviplay(1)

NAME
aviplay - QT-based movie player SYNOPSIS
aviplay [options] [ files | URLs ] DESCRIPTION
aviplay is a QT-based player for various avi, asf, mpeg4 movie files. Avifile project creates library that allows programs to read and write compressed AVI/ASF files (Indeo Video, DivX :-), etc.) under Unix OS. (De)compression is performed with various plugins (included Win32 DLLs for x86_32 OS) if native codec is not available. Win32 libraries have to be downloaded separately. Primarily the ffmpeg project is used for codecs and also for stream parsing. Over the time it's possible the project will mostly blend into ffmpeg. FEATURES
* low CPU usage (movies playable even P200MMX) * smooth video (using threads and frame precaching) * supports streamed .asf files * audio resampling suppport * modular design OPTIONS
-h --help Show help message -c --codec [help] Set codec options (use help to see options for this parameter) -s --size <width:height> Start playing movie at dimensions X * Y. -f --fullscreen Start playing movie in fullscreen. -f --maximize Start playing movie in maximized mode (i.e. preserve current resolution). --seek <position> Seek to given position in movie. -sub --subtitle <filename> Use give file as the source for subtitles. -subcp --subtitle_codepage <codepage> Select codepage for subtitles. They are internaly encoded into UTF-8. See iconv(3) for available codepages. Codepage "default" means current default encoding in system. Example of codepages: CP1250, ISO8859-2, default. -subfont --subtitle_font <fontname> Select font for subtitles. At this moment only X11 fonts are supported (either in traditional "-misc-*" or TTF notation) -ac --audio-codec <codecname> Prefered codec to be used for movie audio decoding. Use with "help" to see available audio codecs. -vc --video-codec <codecname> Prefered codec to be used for movie video decoding. Use with "help" to see available video codecs. --rc Enables remote control (stdin|stdout). SHELL variables: WIN32_PATH - can be used to override library path /usr/lib/win32 which holds MS Windows binary dll codecs. AVIPLUGIN_PATH - can be used to override library path /usr/lib/avifile which holds avifile plugins. AVIPLAY_MUTE_AUDIO - if set shows just video track AVIPLAY_MUTE_VIDEO - if set plays just audio track AVIPLAY_NOSYNC - do not synchronize audio and video track HTTP_PROXY WRITE_ASF - write asf file received over the network to file (/tmp/*.asf) NOTE
Press the About button in aviplay's GUI for more details about the usage and configuation. Aviplay automaticaly searches for subtitle file with the same name as the original ".avi" file but with .sub, .SUB, .srt, .SRT, .txt, .TXT, .smi, .SMI suffix. For Debian users: After the discussion with the autor I have came to the conclusion that GSM codec is legaly distributed under GPL terms since this piece of code was donated to the project by the original author which was using it in the non-GPL project xanim. SEE ALSO
http://avifile.sourceforge.net for the original source and main CVS archive for binary codecs. http://mplayerhq.hu for mplayer - an excelent player with more options and supported formats AUTHORS
Original author: Eugene Kuznetsov <divx@euro.ru> Current developer: Zdenek Kabelac <kabi@users.sourceforge.net> Zdenek Kabelac 12 February 2003 aviplay(1)
All times are GMT -4. The time now is 02:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy