Page 1 of 1

Need help: FFMPEG command fails

Posted: Fri Dec 13, 2019 10:10 pm
by orfaigin
Im trying to run the following command:

ffmpeg -loglevel verbose -re -stream_loop -1 -i outputfinal4.mp4 -vf “drawtext=text=‘%{localtime}’: fontsize=30” -f flv rtmp://127.0.0.1/live/input_stream

but Im getting this error:

Code: Select all

ffmpeg version 4.2.1-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
        built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
        configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
        libavutil      56. 31.100 / 56. 31.100
        libavcodec     58. 54.100 / 58. 54.100
        libavformat    58. 29.100 / 58. 29.100
        libavdevice    58.  8.100 / 58.  8.100
        libavfilter     7. 57.100 /  7. 57.100
        libswscale      5.  5.100 /  5.  5.100
        libswresample   3.  5.100 /  3.  5.100
        libpostproc    55.  5.100 / 55.  5.100
      [h264 @ 0x7f954c000a00] Reinit context to 1280x720, pix_fmt: yuv444p
      Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outputfinal4.mp4':
        Metadata:
          major_brand     : isom
          minor_version   : 512
          compatible_brands: isomiso2avc1mp41
          encoder         : Lavf58.20.100
        Duration: 00:01:30.09, start: 0.000000, bitrate: 1876 kb/s
          Stream #0:0(und): Video: h264 (High 4:4:4 Predictive), 1 reference frame (avc1 / 0x31637661), yuv444p(left), 1280x720, 1756 kb/s, 24.98 fps, 25 tbr, 12800 tbn, 50 tbc (default)
          Metadata:
            handler_name    : VideoHandler
          Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
          Metadata:
            handler_name    : SoundHandler
      [tcp @ 0x7f954d900140] Starting connection attempt to **** port 1935
      [tcp @ 0x7f954d900140] Successfully connected to **** port 1935
      Stream mapping:
        Stream #0:0 -> #0:0 (h264 (native) -> flv1 (flv))
        Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
      Press [q] to stop, [?] for help
      [h264 @ 0x7f954c00e600] Reinit context to 1280x720, pix_fmt: yuv444p
      [graph_1_in_0_1 @ 0x7f954be01100] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
      Fontconfig error: Cannot load default config file
      [Parsed_drawtext_0 @ 0x7f954bd13180] Cannot find a valid font for the family Sans
      [AVFilterGraph @ 0x7f954db01040] Error initializing filter 'drawtext' with args 'text=%{localtime}: fontsize=30'
      Error reinitializing filters!
      Failed to inject frame into filter network: No such file or directory
      Error while processing the decoded data for stream #0:0
      [AVIOContext @ 0x7f954bc05000] Statistics: 0 seeks, 0 writeouts
      [libmp3lame @ 0x7f954e00b800] 3 frames left in the queue on closing
      [AVIOContext @ 0x7f954bd0ad40] Statistics: 339387 bytes read, 2 seeks
      Conversion failed!

Why it fails?