The movie must be encoded with embedded timecode and AFAIK it is not possible to add it later.
For example, in ffmpeg I have encoded my old interlaced 25fps PAL .dv movies to double frame rate 50fps bob-deinterlaced (i.e. preserving all fields) HEVC .mp4 with the following command. "-timecode 00:00:00:00" forces the timecode to start at zero instead of what timecode happens to start the first .dv clip (option "-write_tmcd off" would disable timecode and there would be no SMPTE timecode or Frame count display options in QuickTime Player).
for i in *.dv; do ffmpeg -i "$i" -vf bwdif=1,scale=788:576,crop=768:576:10:0,setsar=sar=1/1 -c:v libx265 -crf 18 -preset slow -timecode 00:00:00:00 -tag:v hvc1 -c:a aac -b:a 128k "${i%.*}_converted.mp4"; done