Thanks JT.
Yuck.... because simply deleting the first .jpg that ffmpeg doesn't seem to work with biftool. Limited by Windows, this means we have a major hack job since natively there is no easy way I can think of to do the rename. We'll bring in Python to help, stealing some very simple code I googled for:
import glob
import string
import os
#get all the jpg file names in the current folder
files = glob.glob("*.jpg")
#sort the list
files.sort()
count = -1
# and rename each file
for f in files:
count = count + 1
n = string.zfill(count,4) + ".jpg"
print f, n,
try:
os.rename(f, n)
print
except:
print "error: didn't rename"
Now we can just delete the "00000001.jpg" file that ffmpeg creates and invoke our renamer script to handle the rest. This seems to produce some good results!!!
Updated 'bifcreate.cmd' file:
@echo off
cls
set BIFTOOL="C:\Users\Home\Tivo\roku\biftool.exe"
set FFMPEG="C:\Users\Home\Tivo\ffmpeg\ffmpeg.exe"
set JPGRENAMER="C:\Users\Home\Tivo\jpgrenamer.py"
set TIVODATA="C:\Users\Home\Tivo\Data"
set TIVOFILE=%1
cd %TIVODATA%
for %%i in (%TIVOFILE%) do set NEWFOLDER="%%~ni"
echo Processing %TIVOFILE% into %NEWFOLDER%...
mkdir %NEWFOLDER%
echo %FFMPEG% -i %TIVOFILE% -r .1 -s 320x240 %NEWFOLDER%\%%010.jpg
%FFMPEG% -i %TIVOFILE% -r .1 -s 320x240 %NEWFOLDER%\%%08d.jpg
cd %NEWFOLDER%
del 00000001.jpg
%JPGRENAMER%
cd ..
%BIFTOOL% -t 10000 %NEWFOLDER%
del %TIVODATA%\%NEWFOLDER%\*.jpg
rmdir %NEWFOLDER%
- John