Use the -nostdin
flag to disable interactive mode,
ffmpeg -nostdin -i "$f" -ab 320k -ac 2 "${f%.*}.mp3"
or have ffmpeg
read its input from the controlling terminal instead of stdin.
ffmpeg -i "$f" -ab 320k -ac 2 "${f%.*}.mp3" </dev/tty
See the -stdin
/-nostdin
flags in the ffmpeg documentation
More Related Contents:
- ffmpeg in a bash pipe
- How to wait in bash for several subprocesses to finish, and return exit code !=0 when any subprocess ends with code !=0?
- Can I export a variable to the environment from a Bash script without sourcing it?
- Passing arguments to an interactive program non-interactively
- How to urlencode data for curl command?
- What’s the difference between [ and [[ in Bash? [duplicate]
- How to execute a bash command stored as a string with quotes and asterisk [duplicate]
- How to define hash tables in Bash?
- Why isn’t tilde (~) expanding inside double quotes? [duplicate]
- What is the difference between “$@” and “$*” in Bash? [duplicate]
- Count occurrences of a char in a string using Bash
- Shell: How to call one shell script from another shell script?
- How to redirect output of an entire shell script within the script itself?
- How to represent multiple conditions in a shell if statement?
- How to split one string into multiple strings separated by at least one space in bash shell?
- Getting “command not found” error in bash script
- Why piping input to “read” only works when fed into “while read …” construct? [duplicate]
- Openssh Private Key to RSA Private Key
- Parse out key=value pairs into variables
- How to split a string in shell and get the last field
- How to write a bash script to set global environment variable?
- Bash Script Binary Search
- How to reload .bash_profile from the command line
- Escaping forward slashes in sed command [duplicate]
- Remove all files except some from a directory
- File content into unix variable with newlines
- How to insert a new line character after a fixed number of characters in a file
- How to add path with space in Bash variable
- Bash If-statement to check If string is equal to one of several string literals [duplicate]
- How to change a command line argument in Bash?