[FFmpeg-user] Converting mkv to mp3 failures

Moritz Barsnick barsnick at gmx.net
Fri Jul 14 22:38:33 EEST 2017

On Fri, Jul 14, 2017 at 13:25:03 -0600, JD wrote:
> But I thought I did answer it :(
> With -nostdin  it is NOT able to read the input list :(
> because the script is (was) providing the the list via stdin.

That's techically impossible, but *sigh* Why should an ffmpeg command
line option influence the shell's behavior?

With this command, I can reproduce your issue (ffmpeg trying to
interpret spurious file names as interactive keys):

$ rm -fv movie_*{mp4,mkv} INLIST; for i in $(seq 1 5); do mfile="movie_${i}.mkv"; ffmpeg -f lavfi -i testsrc2 -t 2 "$mfile"; echo "$mfile" >> INLIST; done; while read file; do ffmpeg -i "$file" -c copy "${file%.mkv}.mp4"; done < INLIST

If I replace 'ffmpeg -i "$file"' with 'ffmpeg -nostdin -i "$file"', the issue goes away, and the
shell is still perfectly capable of reading the list from stdin.


More information about the ffmpeg-user mailing list