I wrote a small script that converts HQ video to LQ:ls video/hq | cut -d. -f1 | while read line ; do  HQ=./video/hq/$line.mp4  LQ=./video/lq/$line.mp4  ffmpeg -i $HQ -crf 40 $LQdone;When I run ls video/hq | cut -d. f1 I get back:150246061567715024611359751502461292963150246137394715024614939361502461782119But when running the conversion script only 1502460615677 is processed.If I replace the line with ffmpeg with echo $line echo runs for all but with ffmpeg it only runs for one.Anyone know why ffmpeg changes how this runs?
ffmpeg script only running for first in list?
bash;ffmpeg
Apparently ffmpeg reads from standard input, which interferes with the read command. So I'm directing to /dev/nullls video/hq | cut -d. -f1 | while read line ; do  HQ=./video/hq/$line.mp4  LQ=./video/lq/$line.mp4  ffmpeg -i $HQ -crf 40 $LQ < /dev/nulldone;