1>NUL added to the end of an output statement will suppress STDOUT and 2>NUL will suppress STDERR
You can simply add 2>NUL to the end of your batch and it will put the output only the first statements unless you follow them with 1>NUL

The bad idea is that if you already have a copy of 4.mp4 you will not see the question asking if you want to override and the cmd window will just sit there unless you realize it and type y.[Attachment 44168 - Click to enlarge]

If you wish to keep a log in case it hangs that you can open to look at then add 2> output.txt 1>&2
to the end of the bat file and all will be written to a log file (output.txt) which you should be able to open if the batch fails or hangs

I am not sure weather this is correct or not. I am using start /b /wait /high ffmpeg to run the command at high priority.
I ma not sure weather it makes any difference than using only ffmpeg command directly.
Regards
Kamalakar

Strictly your choice... To me /b and /wait are simply choices if you wish but in my opinion not necessary for this batch file run. /High will not make it run faster unless you have another application hungry for CPU time then the highest priority gets the time. If it works better then I would say use them. If you don't see a difference then they are probably not needed.

Upload??? Do you mean hardcode subtitles or should this be a different question in a different post? You can send me a private message also so this thread doesn't just become a conversation that might not help others that read it.

Sir, Since the file names are creating issues, using Excel VBA i have simplified the file names as 1.mp4,2.mp4 etc and srt files as 1.srt,2.srt etc and the output files i asked it to name it as 100001.mp4,100002.mp4 etc...

and using the simple excel formulas i have developed the codes for each and every file.

Kindly find the images shown on the screen. In the file named distorted, distored words are shown by circling them in red colour.
Kindly also the proper one.jpg to see how it is supposed to be.
Regards
Kamalakar

That difference looks like a font issue. I had two fonts installed that support Telugu glyphs (Arial Unicode and Kohinoor Telugu). Both have the same-height glyphs where your second example shows the ‘hanging’ glyphs (partially below the baseline). I didn’t see the hanging glyphs on my system because of this. I expect ffmpeg to utilize Arial and Arial Unicode by default. Perhaps you can specify a different font for use in your subtitles?
There may be more to it, as rendering Telugu script has its challenges, but font Lohit is distinctly different.

My research looks like it changes characters from different methods but still does not allow below the line characters/symbols in ffmpeg.

I copied and pasted part of your subtitles into notepad and set saved as Unicode and UTF-8. FFmpeg accepted both with the same results in both. Then I used subtitle edit to change the SRT into ASS format with code page 57005 (Telugu) . You have to change your script to change the word [subtitle] to [ass]. I changed (in notepad) the defaults in the ASS file to Character size 40 and Font to Lohit Telugu and saved as unicode and UTF-8. The results were definitely different than the first test but I have no idea what either sentence says so I don't know if the font is correct but it did not show below the line on any of them.

Dear Budeman Sir,
I tried many ways with ffmpeg google search. looks ffmpeg cannot do it for utf-8. it is good for english subtitles.Hand brake does not have the capability to adjust the font sizeAvidemux, is not giving enough time for the user to read subtitles

Do you have experience of any other software that has programming capability to hard code subtitles in utf-8 to a video so that i can hard code multiple videos at a time.
Regards
Kamalakar

I downloaded the subtitles from your post #44 and converted them to .ass format with UTF-8 encoding in Subtitle Edit.

As pointed to by Case in post #44 the difference in your distorted.jpg and proper_one.jpg in post #43 could be due to the font used so I defined three .ass styles with Arial (Top), Lohit Telugu (Middle) and TenaliRamakrishna (Bottom) fonts.

As pointed out by sneaker in your other thread you need to mux the subtitle with the video in order to hardcode with HandBrakeCLI.

From the above you'll see even though a size of 24 pt is used for all three font their size appears different when hardcoded. Your 851.srt is rather messy without any line breaks so when hardcoding HandBrakeCLI inserts line breaks as needed depending on the font and size

In Subtitle Edit you edit the default style to the font/size/color you need. These settings will be used when you batch convert all of your .srt files.

yes, I am able to see now. After setting the format to .ass by clicking on the style button next to ass i am able to get the above screen and can change all files format and style.
Great help.
Regards
Kamalakar