Issue burning subtitles

Issues involving a Windows version of FFmpeg. Do not post general usage questions here.
Zaoshi
Posts: 9
Joined: Wed Jul 29, 2015 4:07 pm

Issue burning subtitles

Postby Zaoshi » Wed Jul 29, 2015 4:18 pm

Hello,
I am trying to burn subtitles into video, however for some reason subtitles don't get burned.
Is something wrong with my command or it's some kind of bug?

Here's console output (hopefully full):

Code: Select all

C:\Users\***\Desktop\ffmpeg>ffmpeg    -i in.mkv -vf "scale=-1:480,subtitles=i
n.mkv" -map 0:0 -speed 5 -c:v libvpx-vp9 -b:v 1000K -threads 8 -tile-columns 6 -
frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -aq-mode 0 -map 0:1 -
c:a libopus -f webm out.webm
ffmpeg version N-74131-g9ec17e4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 29.100 / 54. 29.100
  libavcodec     56. 56.101 / 56. 56.101
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 30.100 /  5. 30.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'in.mkv':
  Metadata:
    ENCODER         : Lavf56.36.100
  Duration: 00:01:30.11, start: 0.000000, bitrate: 3884 kb/s
    Chapter #0:0: start 0.000000, end 0.000000
    Metadata:
      title           : Intro
    Chapter #0:1: start 0.000000, end 90.048000
    Metadata:
      title           : Opening
    Chapter #0:2: start 90.048000, end 90.048000
    Metadata:
      title           : Part A
    Stream #0:0(eng): Video: h264 (High 10), yuv420p10le(tv, bt709), 1280x720, S
AR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      LANGUAGE        : eng
      ENCODER         : Lavc56.41.100 ass
File 'out.webm' already exists. Overwrite ? [y/N] y
Fontconfig error: Cannot load default config file
[Parsed_subtitles_1 @ 0000000005061e20] No usable fontconfig configuration file
found, using fallback.
Fontconfig error: Cannot load default config file
[libvpx-vp9 @ 0000000005372a80] v1.4.0
[libopus @ 00000000053c3880] No bit rate set. Defaulting to 96000 bps.
Output #0, webm, to 'out.webm':
  Metadata:
    encoder         : Lavf56.40.101
    Chapter #0:0: start 0.000000, end 0.000000
    Metadata:
      title           : Intro
    Chapter #0:1: start 0.000000, end 90.048000
    Metadata:
      title           : Opening
    Chapter #0:2: start 90.048000, end 90.048000
    Metadata:
      title           : Part A
    Stream #0:0(eng): Video: vp9 (libvpx-vp9), yuv420p, 853x480 [SAR 2560:2559 D
AR 16:9], q=-1--1, 1000 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
    Metadata:
      LANGUAGE        : eng
      encoder         : Lavc56.56.101 libvpx-vp9
    Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)

    Metadata:
      encoder         : Lavc56.56.101 libopus
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
  Stream #0:1 -> #0:1 (aac (native) -> opus (libopus))
Press [q] to stop, [?] for help


Thank you in advance.

llogan
Posts: 309
Joined: Fri Mar 14, 2014 3:29 am

Re: Issue burning subtitles

Postby llogan » Thu Jul 30, 2015 6:39 pm

Can you provide the input file?

Zaoshi
Posts: 9
Joined: Wed Jul 29, 2015 4:07 pm

Re: Issue burning subtitles

Postby Zaoshi » Fri Jul 31, 2015 2:54 pm

Sorry for late reply, my post required administrator's approval so I assumed I'd be notified by email.

Sure:
in.zip
(2.08 MiB) Downloaded 278 times

Lowered video bitrate to make file small; problem is still reproducible:
  • MPC-HC shows subtitles just fine:
    Screenshot 2015-07-31 17.51.29.jpg
  • Encoded version doesn't have any subs:
    Screenshot 2015-07-31 17.51.57.jpg

llogan
Posts: 309
Joined: Fri Mar 14, 2014 3:29 am

Re: Issue burning subtitles

Postby llogan » Mon Aug 03, 2015 7:09 pm

Your command works for me in Linux. Possibly a FONTCONFIG_PATH issue, or related. I think there are several threads here regarding that.

Zaoshi
Posts: 9
Joined: Wed Jul 29, 2015 4:07 pm

Re: Issue burning subtitles

Postby Zaoshi » Thu Aug 06, 2015 5:59 pm

Thank you. Managed to solve it.

For those who encounter same problem here's the solution:
1. Create folder 'fonts' in your ffmpeg folder (for some reason any other folder does not work)
2. Copy attached file into 'fonts' folder (extract it; later it might update so don't depend too much on this version)
3. Set following environment variables (global or through batch file)

Code: Select all

FC_CONFIG_DIR=.\fonts
FONTCONFIG_FILE=fonts.conf
FONTCONFIG_PATH=.\fonts
Attachments
fonts.zip
(1.79 KiB) Downloaded 1513 times


Return to “Usage Issues”

Who is online

Users browsing this forum: No registered users and 3 guests