Dear Sir,
for this code
for %%g in (*.mp4) do (
ffmpeg -i %%g -i %%~ng.ass -codec copy %%~ng.mkv
handbrakecli --subtitle 1 --subtitle-burned -i %%~ng.mkv -o %%~ng_HC.mp4
del temp.mkv
)
Can you kindly help me in attaching the following video and audio properties to the above code.
Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Bit rate: 155 Kbps
Maximum bit rate: 661 Kbps
Width: 720 pixels
Height: 480 pixels
Display aspect ratio: 3:2
Frame rate mode: Variable
Frame rate: 29.97 frames/second
Standard: NTSC
Color space: YUV
Chroma subsampling: 4:2:0
Bit depth: 8 bits
Scan type: Progressive
Bits/(Pixel*Frame): Target 0.5 - Max 2
Stream size: 6.25 MiB (51%) 3.63 MiB (81%)
Key Frame Distance 1
------------------------------------------------
Audio
Format/Info: AAC/Advanced Audio Codec
Format profile: LC
Codec: MPEG AAC Audio (mp4a)
Bit rate mode: Variable
Bit rate: 192 Kbps
Maximum bit rate: 292 Kbps
Channel(s): 2 channels
Sampling rate: 48 KHz
Compression mode: Lossy
-----------------------------------------------
I choose VBR, 2 pass (variable bitrate) for better quality, lower file size, but longer rendering time.
Regards,
Kamalakar
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 61 to 65 of 65
Thread
-
-
sorry for not being clear, My goal is to keep the same properties as the original video properties while adding the subtitles.
What changes i need to make to the following code so the above properties listed in the code remain the same.
for %%g in (*.mp4) do (
ffmpeg -i %%g -i %%~ng.ass -codec copy %%~ng.mkv
handbrakecli --subtitle 1 --subtitle-burned -i %%~ng.mkv -o %%~ng_HC.mp4
del temp.mkv
) -
Since you are burning with HandbrakeCLI, https://superuser.com/questions/550710/how-do-i-translate-handbrakecli-options-to-ffmpeg-options has a pretty good write up with most of what you want to set if not all. I'm pretty sure if you change the video size though, you may have to adjust your subtitles again, at least PlayresX and PlayresY as suggested by videobruger in his excellent thread #58.
-
What changes i need to make to the following code so the above properties listed in the code remain the same.
Change the settings using a small duration to test. When your settings gives the properties you want right-click My Preset and select "Update Selected Preset".
[Attachment 44417 - Click to enlarge]
Then change the batch to
Code:for %%g in (*.mp4) do ( ffmpeg -i %%g -i %%~ng.ass -codec copy %%~ng.mkv handbrakecli --preset-import-gui -Z "My Preset" --subtitle 1 --subtitle-burned -i %%~ng.mkv -o %%~ng_HC.mp4 del temp.mkv )
-
Sir,
How to start a new thread on this forum.
I am not able to see an option here
Regards
Kamalakar
Similar Threads
-
Batch script for forcing subtitles on MKV files.
By hemstock in forum SubtitleReplies: 2Last Post: 9th Oct 2015, 15:40 -
Batch muxing video files with subtitles
By calexicoca in forum SubtitleReplies: 4Last Post: 16th May 2015, 09:31 -
Using Ffmpeg to hard code subtitles
By wotdefcuk in forum SubtitleReplies: 21Last Post: 8th May 2014, 10:01 -
Free Video Encoder With Hard Code Subtitles Option Works on Server 2008
By lib3rty1 in forum Newbie / General discussionsReplies: 9Last Post: 3rd Oct 2013, 08:33 -
x264 CLI How to Hard-code Subtitles?
By dark_cross in forum SubtitleReplies: 4Last Post: 8th Apr 2013, 20:06