Hi

I am new to using ffmpeg.

I want to create a bat fie that I can drag and drop a video file to and it will create a scaled down version with burnt-in-timecode

I've found out how to scale down and burn-in the timecode in the following script but only from timecode 00:00:00:00
Code:
@echo off
pushd
for %%i in (%*) do if not exist "%%~ni_proxy%%~xi" (
    ffmpeg -i "%%~i" -acodec copy -vf "drawtext=fontfile=C\\:/Windows/fonts/arial.ttf:fontsize=72:fontcolor='white':timecode='00\:00\:00\:00':rate=25:text='TCR\:':boxcolor=0x000000AA:box=1:x=(w-text_w)/2:y=20, scale=640:-1" "%%~ni_proxy%%~xi"
)
popd
echo Completed
pause
I can't figure out how to get the first frame timecode and put that in as a variable.
I have seen some suggestions to use ffprobe?
In my example file the timecode should be 10:00:00:00
Here is a mediainfo dump of an example file:

Code:
General
Complete name                            : C:\temp\test.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 227 MiB
Duration                                 : 30 s 0 ms
Overall bit rate                         : 63.5 Mb/s
Writing application                      : Lavf58.29.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@High
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 30 s 0 ms
Bit rate                                 : 56.6 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.273
Stream size                              : 202 MiB (89%)
Language                                 : English
SEI_rbsp_stop_one_bit                    : Missing
Codec configuration box                  : hvcC

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Channel layout                           : L
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : Yes
Alternate group                          : 1

Audio #2
ID                                       : 3
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Channel layout                           : R
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : Yes
Alternate group                          : 2

Audio #3
ID                                       : 4
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : No
Alternate group                          : 3

Audio #4
ID                                       : 5
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : No
Alternate group                          : 4

Audio #5
ID                                       : 6
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : No
Alternate group                          : 5

Audio #6
ID                                       : 7
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : in24
Duration                                 : 30 s 0 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 4.12 MiB (2%)
Default                                  : No
Alternate group                          : 6

Other
ID                                       : 8
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 30 s 0 ms
Frame rate                               : 25.000 FPS
Time code of first frame                 : 10:00:00:00
Time code of last frame                  : 10:00:29:24
Time code, striped                       : Yes
Language                                 : English
Default                                  : No