Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 10802

ffmpeg joining raw files with file pattern fails on Windows

$
0
0

I wrote an ffmpeg command to run in a Windows command prompt in the directoy within which I have a thousand or so .raw files, numbered 0000.raw to 3708.raw. The raw files are nv12 bitmaps. I want to join them into a 60 fps movie at 20kpbs.

Anyway, my command fails with:

[in#0 @ 000001b7a9123a00] Error opening input: No such file ordirectory Error opening input file %04d.raw. Error opening inputfiles: No such file or directory

What silly mistake have I made? I'm just running the command in a prompt, I'm not trying to run it for a batch file or anything like that.

ffmpeg -framerate 60 -f rawvideo -pix_fmt nv12 -s:v 1280x720 -i "%04d.raw" -c:v libx264 -b:v 20000k -minrate 20000k -maxrate 20000k -bufsize 40000k -pix_fmt yuv420p output.mp4

Viewing all articles
Browse latest Browse all 10802

Trending Articles