Closed jmeyo closed 9 years ago
Try without some additionnal params like fps and speed and let me know
Same story. What is you imagemagick version ?
That's not imagemagick problem it's just the error message that is tricky, it means image magick received no data from ffmpeg which is the one that tries to butn subtitles.
It could be that your subtitles times are referencing unkown times. Can you provide me the movie and subtitles so that I can try myself?
Put them somewhere I can download them.
I didn't want to setup the aegi subtitle software, so I assumed I could try it with your example subtitle ass files, I jusrt changed it a bit, but without success :
[Script Info]
; Script generated by Aegisub 3.2.1
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
[Aegisub Project Garbage]
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:01.00,0:00:01.97,Default,,0,0,0,,{\fnLiberation Sans\fs40}Hello there
Please send me the mp4 and subtitle and I'll try. I can't blind debug
Ok, here is the video :
https://mega.co.nz/#!RNZhQaYY!hxRLGowsSlyFXAo6ikHKDox9AN7amheBRIEVgfMx0QI
the sub :
https://mega.co.nz/#!1AIykLDT!ZWM0IGYoStpWNFJfyAv7CQb7KvPOAt8DiXkXJZ_zCkU
and the command I used :
gifify chili_2.mp4 -o pet2care-600-3.gif --resize 600:-1 --compress 0 --fps 8 --colors 160 --speed 1
→give nice result
with the sub :
gifify chili_2.mp4 -o pet2care-600-3.gif --subtitles subtitles.ass --resize 600:-1 --compress 0 --fps 8 --colors 160 --speed 1
→doesn't work
Ok, I would advise your to first install aegisub and try to create basic subtitles for your movie with it.
I am sure it will work then.
aegisub is easy to install and use, really, and not very big
Ok so it works for me with your commands, I did a crappy gif just so I can copy it here easily. But the whole command gifify chili_2.mp4 -o pet2care-600-3.gif --subtitles subtitles.ass --resize 600:-1 --compress 0 --fps 8 --colors 160 --speed 1
worked for me.
So i'ts not a subtitle problem, maybe it's your ffmpeg.. versions
> convert --version
Version: ImageMagick 6.9.0-0 Q16 x86_64 2014-11-17 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma pangocairo png ps rsvg tiff webp wmf x xml zlib
> ffmpeg -version
ffmpeg version 2.4.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Dec 1 2014 05:59:35 with gcc 4.9.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
> gifsicle --version
LCDF Gifsicle 1.82
Copyright (C) 1997-2014 Eddie Kohler
This is free software; see the source for copying conditions.
There is NO warranty, not even for merchantability or fitness for a
particular purpose.
(giflossy)
Thank you very muh for your time and support, indeed, my ffmpeg version seems quite outdated (1.2.6), I will try again. Will keep you updated.
So indeed, my ffmpeg was way too old. I upgraded to ffmpeg 2.4.3, and now it works, thank you very much for your answers. Great project, I'm thinking to use it as a backend service in a gif platform service.
@jmeyo Great, keep me updated! Also if you use Node.JS for your backend, there's a programmatic interface that you can use from Node.js.
Hi, I tried to mix a subtitles with my gif, and somehow it didn't work
My imagemagick supports lots of format by default :