VideoHelp Forum

+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Aug 2009
    Location
    Israel
    Search Comp PM
    Hello,
    I am trying to hardcode a Hebrew subtitle to a movie with "Videopad Video Editor".
    Some lines are "Italic" stile, so the "Italic" signs are shown on the movie.
    In "Handbrake", these signs are not visible, but the black shadow is ugly, so I prefer the "Videopad".
    How can I make these "Italic" signs invisible with "Videopad" ? (If its possible)
    Answers will be appreciated.
    Thanks
    Motim

    Windows 10. 20H2 x 64
    Quote Quote  
  2. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Hi.
    What format is your subs track?

    A quick read of this might help with understanding subs. It did for me.
    https://forum.videohelp.com/threads/350842-Two-line-srt-subtitles-can-one-be-italic
    The last post was interesting; what with having further text AFTER the italics.

    I add .srt subs using either ffmpeg for .mp4 output;
    Code:
    @echo off
    :: Video track must have matching 'track name.srt'
    if not exist New\*.* md New
    for %%a in ("*.mp4", "*.mkv") do if exist "%%~na.srt" ffmpeg.exe -hide_banner -i "%%a" -sub_charenc ISO-8859-1 -i "%%~na.srt" -map 0:v -map 0:a -map 1 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng "New\%%a"
    pause
    Or using mkvmerge for .mkv output;
    Code:
    @echo off
    :: Video track must have matching 'track name.srt'
    if not exist New\*.* md New
    for %%a in ("*.mp4", "*.mkv") do if exist "%%~na.srt" "C:\Program Files\MKVToolNix\mkvmerge.exe" --ui-language en --output "New\%%~na.mkv" --language 0:eng --language 1:eng "%%~na.mp4" --language 0:eng "%%~na.srt" --track-order 0:0,0:1,1:0
    pause
    Cheers.
    Quote Quote  
  3. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    If the sub is srt run them through subtitle edit/edit to remove all the italic tags.
    I think,therefore i am a hamster.
    Quote Quote  
  4. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    And, these are my two batch files to extract subtitles as srt.

    From an mp4;
    Code:
    ffmpeg.exe -hide_banner -i "Video Name.mp4" -map 0:s -scodec srt "Video Name.srt"
    pause
    From an mkv;
    Code:
    @echo off
    echo.
    echo Example:
    echo Stream #0:2(eng): Subtitle: subrip
    echo Stream #0:3(bul): Subtitle: subrip
    echo Stream #0:4(chi): Subtitle: subrip
    echo e.g. To extract "Stream #0:4(chi): Subtitle: subrip" - Enter index number 4
    
    echo.
    echo Streams found:
    ffmpeg -i "Video Name.mkv" -y nul 2>&1 | find /i "stream"
    set /p idx=What index number?
    ffmpeg -i "Video Name.mkv" -map "0:%idx%" -scodec srt "Video Name.srt"
    pause
    Cheers.
    Last edited by pcspeak; 14th Jan 2022 at 15:36.
    Quote Quote  



Similar Threads