VideoHelp Forum
+ Reply to Thread
Page 3 of 3
FirstFirst 1 2 3
Results 61 to 65 of 65
Thread
  1. 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
    Quote Quote  
  2. 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
    )
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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.
    Quote Quote  
  4. What changes i need to make to the following code so the above properties listed in the code remain the same.
    I would suggest you add a preset in HandBrake GUI and call it eg My Preset.

    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".

    Image
    [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
    )
    Quote Quote  
  5. Sir,
    How to start a new thread on this forum.
    I am not able to see an option here
    Regards
    Kamalakar
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!