8 ms·
xargs
by _hyn3 2y ago
xargs
- LeoPanthera 2y agoThat doesn't help send multiple files over a single pipe. You can't just cat them.
- bqmjjx0kac 2y agoYou can `tar` them though :)
- LeoPanthera 2y agoThat's true, although that requires storage on the other end. Not too much of a problem in most cases, perhaps. But with single input, single output, you can just do: ssh destination "ffmpeg -switches" <infile >outfile
- _hyn3 2y agoyou can xargs your files and even parallelize (read the xargs man page) before you ssh.
- bqmjjx0kac 2y agoGreat point! Something like this could work, modulo ffmpeg arguments which I didn't check. find . -name '*.mkv' \ -exec bash -c \ "ssh server ffmpeg < {} > {}.transcoded.mp4" \;