ffmpeg and non-sequential events

Forum for questions and support relating to the 1.24.x releases only.
Locked
robbin
Posts: 2
Joined: Tue May 29, 2007 2:11 pm

ffmpeg and non-sequential events

Post by robbin »

If I create a video file, ffmpeg stops if there is a gap in the event numbers. I get lots of cases where the capture jpgs aren't exactly sequential - there are skipped numbers.

I have a shell snippet that sequentially renumbers the capture files:

Code: Select all

shouldbenum=1

find . -name "*.jpg" | sed -e 's=./\([0-9]*\).*=\1=' | sort -n | \
while read jpgnum ; do
    shouldbenumzeros=`printf %03d $shouldbenum`
    if [[ "$shouldbenumzeros" != "$jpgnum" ]]
    then
        mv ${jpgnum}-capture.jpg ${shouldbenumzeros}-capture.jpg
    fi
    let shouldbenum++
done
I would like to run this prior to the data base being updated when the events are noticed.

Or should I look at changing ffmpeg to ignore spaces?

What would be the best course of action?
Locked