10-31-2017
Quote:
Originally Posted by
junorich
Hello yes it opens a windows promp I guess. Like I said this is not the kind of stuff I do and am trying to learn it. I went to google a search for forums on shell scripting and this forum popped up so I came here for help. Am I in the wrong place?
you are at a UNIX & Linux Forum!
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello.
i am new to unix, though have quite a substantial background of other systems.
i recently installed ffmpeg and mencoder on a unix server, which holds a website, in order to use these programs from the website.
after installation, i can activate both commands directly using putty,
no... (1 Reply)
Discussion started by: noamon
1 Replies
2. OS X (Apple)
Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11).
I have written a unix library and I'd like to make a short movie (demo) of it.
Tried: I already own SNapz Pro2 but it hangs the system (I have an old Powerbook 15" PPC). I guess my system is too slow for version... (0 Replies)
Discussion started by: sentinel
0 Replies
3. Shell Programming and Scripting
Hi all,
I have successfully used ffmpeg.exe in windows. But i dont know how to use it in linux:confused:. When i tried running a java program in linux using ffmpeg, I am getting, the following error even after having that ffmpeg.exe in my classpath: "java.io.IOException: java.io.IOException:... (3 Replies)
Discussion started by: ananthi_ku
3 Replies
4. UNIX for Dummies Questions & Answers
Guys,
I'm new on Unix and I was hoping you could help me installing ffmpeg on Apple TV 1st Gen, which is a Unix based OS. This is the version of Unix.
Darwin AppleTV.local 8.8.2 Darwin Kernel Version 8.8.2: Mon Jan 29 18:57:29 PST 2007; root:xnu-792.94.18~1/RELEASE_I386 i386 i386
I was... (6 Replies)
Discussion started by: ferrarih
6 Replies
5. Shell Programming and Scripting
Hi, I hope I am posting in the right place.
I use to stream to justin tv using ffmpeg with that command
ffmpeg -re -i "path/to/input.avi" -vcodec libx264 -preset fast -crf 30 -acodec libfaac -ab 128k -ar 44100 -f flv rtmp://live.justin.tv/app/xxxxxxxxxxx
I would like to know if a bash... (2 Replies)
Discussion started by: undercash
2 Replies
6. Windows & DOS: Issues & Discussions
Hi,
Currently having some trouble with FFMPEG....
I have the following files:
0001_.gif
0002_.gif
.............
0584_.gif
0585_.gif
0586_.gif
0587_.gif
0588_.gif
0589_.gif
0590_.gif
0591_.gif
And am trying to use ffmpeg to join them to a video as follows: (7 Replies)
Discussion started by: pasc
7 Replies
7. UNIX and Linux Applications
Hi, everyone!
I'm on a Debian 9.0 GNU/Linux machine. I'm not a very experienced user, but I do my best to learn.
So, I have a bunch of images PNG files. I'm trying to make a slideshow with these using the ffmpeg video converter. I also have an audio WAVE stereo file which I'd like to merge... (0 Replies)
Discussion started by: worov
0 Replies
8. Shell Programming and Scripting
Hello, I was inquiring myself if it's possible to call ffmpeg in loop, an in each iteration, ffmpeg will pick one of the files in a directory and produce a new with a slightest different name. Can be as simple as a '*' in the beginning of the file name.
I know how to use ffmpeg to do the... (2 Replies)
Discussion started by: colt
2 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)