I'm using Ubuntu 14.04 and have compiled ffmpeg 2.8.4 from source with these options:
./configure --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-shared
I have a set of files number consecutively from 0..n and have tried to use the "%03d" as part of my input like so:
ffmpeg -y -pix_fmt yuv420p -s qvga -start_number 0 -i picture%03d.yuv -f mp4 -vcodec libx264 -s qvga -an -threads 0 output.mp4
With and without the start_number it fails to find the files and yields this error message on the terminal:
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-shared libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 picture%03d.yuv: No such file or directory
Here's a short listing of some of the files in the directory as proof they exist:
picture0.yuv picture153.yuv picture206.yuv picture25.yuv picture312.yuv picture4.yuv picture100.yuv picture154.yuv picture207.yuv picture260.yuv picture313.yuv picture50.yuv picture101.yuv picture155.yuv picture208.yuv picture261.yuv picture314.yuv picture51.yuv picture102.yuv picture156.yuv picture209.yuv picture262.yuv picture315.yuv picture52.yuv picture103.yuv picture157.yuv picture20.yuv picture263.yuv picture316.yuv picture53.yuv picture104.yuv picture158.yuv picture210.yuv picture264.yuv picture317.yuv picture54.yuv picture105.yuv picture159.yuv picture211.yuv picture265.yuv picture318.yuv picture55.yuv picture106.yuv picture15.yuv picture212.yuv picture266.yuv picture319.yuv picture56.yuv
Any assistance on this would be awesome, thanks in advance.
Edit - Working command
ffmpeg -y -vcodec rawvideo -pix_fmt yuv420p -s qvga -start_number 0 -f image2 -i picture%d.yuv -f mp4 -vcodec libx264 -s qvga -an -threads 0 output.mp4
-pattern_type glob 'picture???.yuv'
(or'picture*.yuv'
if you don't really want to exclude files with indices < 100)