The file name should come right from the batch file (please ask user "dosdan" for advice). When saving using the MKV, WebM or MP4 muxer, the number of output frames could be retrieved from %localappdata%\avidemux\admlog.txt:
[saveLoop] 11:21:56-609 [FF] Wrote 641 frames, nb audio streams 1
[saveLoop] 11:21:56-610 [FF] Found 0 missing PTS / 641 total frames
after each Avidemux run.
bebert64, please post your batchfile.
First, to get the full name with path of your ADM logfile:
Help |
Advanced |
Open Application Data Folder. Hold down your Shift-key and R.click on
admlog.txt. Click on the "Copy as path" option. (This option will not be visible in the R.click menu unless you first hold down the Shift-key).
This is what was copied to my clipboard:
"C:\Users\Dan\AppData\Roaming\avidemux\admlog.txt"Here's a test batchfile:
read_log.txt@echo off
echo ****Start of log**** > d:\test_log.txt
type "C:\Users\Dan\AppData\Roaming\avidemux\admlog.txt" | find /i "[FF] Wrote" >> d:\test_log.txt
rem type "C:\Users\Dan\AppData\Roaming\avidemux\admlog.txt" | find /i " nb" >> d:\test_log.txt
if exist d:\test_log.txt start /i d:\test_log.txt
echo ------------------------ >> d:\test_log.txt
> creates d:\test_log.txt or overwrites it if it already exists.
>> appends to an existing file, and creates it if it doesn't already exist.
start /i "runs" the text file in the associated program, usually Notepad, so a window pops up.
Modify to suit your setup.
After doing a ADM Copy|Copy remux of a .MTS -> .MP4 and then running this batchile I saw this in Notepad:
****Start of log****
[muxerFFmpeg::saveLoop] 19:31:42-067 [FF] Wrote 1229 frames, nb audio streams 1
------------------------
Next, I REMed (remarked) out the first FIND line, unREMed the 2nd FIND line, saved the change in the batchfile and rerun it. I saw:
****Start of log****
[ADM_Composer::checkForValidPts] 19:30:22-242 nbBFrames:64
[ADM_Composer::checkForValidPts] 19:30:22-242 nbPFrames:30
[ADM_Composer::checkForValidPts] 19:30:22-242 nbIFrames:3
[ADM_Composer::checkForValidPts] 19:30:22-242 nbNoImage:3
[ADM_Composer::checkForValidPts] 19:30:22-242 nbPtsgoingBack:0
[muxerFFmpeg::saveLoop] 19:31:42-067 [FF] Wrote 1229 frames, nb audio streams 1
------------------------
So it's possible to save other info from a ADM processing run, if you wish, as long as you can find something unique to filter on. You could have multiple FIND lines, looking for different info.
In your multi-file situation I presume you're running a FOR IN () DO loop. It should be possible to include each mediafile's name in the log as you loop.
So show me your current batchfile.
Dan.