VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5

Thread: Hard subs

Thread
  1. Member
    Join Date: Jan 2013
    Location: USA
    Search PM
    I am trying to burn subtitles into the video (hard subs). I know it is a bad way of doing things but it is a business rule due to technology constraint.

    I generated the srt file from a dvd video with closed captions using CCExtrator.
    I am using the command line below.
    Code:
    ffmpeg -i test.VOB -vf subtitles=test.srt -c:v libx264 -pix_fmt yuv420p -profile:v main -level:v 3.1 -preset slow -s 720x480 -b:v 2000k -x264opts crf=20:keyint=40:ref=3:vbv-bufsize=14000:vbv-maxrate=2000 -acodec libvo_aacenc -ac 2 -ar 44100 -b:a 192k out.mp4
    and I get this message.
    Code:
    ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers
      built on Nov 25 2012 12:25:21 with gcc 4.7.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --
    enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopu
    s --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvo
    rbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52.  9.100 / 52.  9.100
      libavcodec     54. 77.100 / 54. 77.100
      libavformat    54. 37.100 / 54. 37.100
      libavdevice    54.  3.100 / 54.  3.100
      libavfilter     3. 23.102 /  3. 23.102
      libswscale      2.  1.102 /  2.  1.102
      libswresample   0. 17.101 /  0. 17.101
      libpostproc    52.  2.100 / 52.  2.100
    [mpeg @ 0000000001ee7440] max_analyze_duration 5000000 reached at 5024000
    Input #0, mpeg, from 'test.VOB':
      Duration: 00:16:01.31, start: 0.060000, bitrate: 5773 kb/s
        Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
        Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    [AVFilterGraph @ 0000000001feb140] No such filter: 'subtitles'
    Error opening filters!
    If i use
    Code:
    -vf "ass=test.ass"
    then everything works and video will have hard subs.
    But that adds an additional step of converting srt to ass

    Is it possible to do hard subs using srt or do I have to convert to ass format?
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    http://trac.ffmpeg.org/wiki/How%20to%20burn%20subtitles%20into%20the%20video

    Maybe because of
    Windows users will have to ​setup font paths to get libass to work
    http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=20

    or is your ffmpeg version too old.
    Quote Quote  
  3. Member
    Join Date: Oct 2004
    Location: Freedonia
    Search Comp PM
    There can be good reasons for using hard subs. While a few people may say "Why don't you use selectable subs?" most of the people here understand that at times it may actually be desired to use hardcoded subs.

    Xvid4PSP can hard code SRT subs into MP4 output. And it's a lot easier to get it working than going into library hell like you seem to have done with ffmpeg. You might look into using Xvid4PSP instead. I started using it because I also had a need for doing hard subs in a one off project to AVI format (Xvid video) and everything else I tried either failed or was much more difficult to use.
    Quote Quote  
  4. Member fritzi93's Avatar
    Join Date: Nov 2003
    Location: U.S.
    Search Comp PM
    Sure, you may for example have forced subs in the original movie that you'd want to hardcode.

    Anyway, RipBot is another one that can hardcode an .srt file.
    Pull! Bang! Darn!
    Quote Quote  
  5. @ wotdefcuk
    if you're open to an alternative approach without leaving the ffmpeg domain...
    http://forums.creativecow.net/readpost/291/1297

    you basically bypass the headaches of using the subtitles filter (when in Windows).
    Last edited by tugshank; 24th Mar 2014 at 12:02.
    Quote Quote  



Similar Threads