Hi! I wonder if you can help me with something? I am trying to alter a couple of video…
- User
Hi! I wonder if you can help me with something? I am trying to alter a couple of video files using ffmpeg. The command I use is ffmpeg -i ".\input.mp4" -c copy -metadata:s:v:0 rotate=270 ".\r_input.mp4" The command works perfectly. I would now like to batch process a number of video files. Preferably in powershell. I know I can pipe commands like get-childitem *.mp4 | rename-item -newname { _.name -replace "s_", "r_"} However, I can't seem to achieve this piping into ffmpeg. When I try get-childitem *.mp4 | ffmpeg -i .name -c copy -metadata:s:v:0 rotate=270 "r"+$_name ffmpeg executes and aborts with the error -c: No such file or directory How can I get ffmpeg to work in a pipe?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.