Bug 379365 - FFMpeg failed to convert
Summary: FFMpeg failed to convert
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 3.1.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-29 23:04 UTC by umbreonicfox
Modified: 2017-11-22 10:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The log error (3.21 KB, text/plain)
2017-04-29 23:04 UTC, umbreonicfox
Details
("Render Animation" dialogue capture) (105.02 KB, image/jpeg)
2017-05-02 15:29 UTC, mvowada
Details
(Render Animation - PNG file format settings) (56.48 KB, image/jpeg)
2017-05-02 16:00 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description umbreonicfox 2017-04-29 23:04:51 UTC
Created attachment 105280 [details]
The log error

I have a error with rendering a animation. error message is as follows
 "Could not render animation:
FFMpeg failed to convert the image sequence. Check the logfile in your output directory for more information.'

I have no idea what I am doing incorrectly here. 
windows 10
moderately good PC
tried multiple different FFMpeg programs. from 2.6 to the latest version.
Help please <3
Comment 1 wolthera 2017-04-30 12:27:40 UTC
Hey,

Thanks for reporting this, the log file is exactly what we need!

FFMPEG can't seem to find the frames. This sounds like a bug that may have gotten fixed in 3.1.3, which we're releasing next week, so if you could check if the bug still happens in that version, that'd be great.

If it is still bugged there, could you tell us 1) The stuff in the status bar, is it an 8bit/channel image? Or higher? And what is the resolution? And 2) Could you make a screenshot of the export window? Then we can tell what exact export options caused this.
Comment 2 umbreonicfox 2017-04-30 18:17:11 UTC
Alright, I'll wait for the new version next week. The resolution is 1360 by 768
I have tried different bit channels, but none had different log outcomes. If issue continues after next patch I will inform here.
Comment 3 mvowada 2017-05-02 15:29:59 UTC
Created attachment 105311 [details]
("Render Animation" dialogue capture)

(In reply to wolthera from comment #1)
> FFMPEG can't seem to find the frames. This sounds like a bug that may have
> gotten fixed in 3.1.3, which we're releasing next week, so if you could
> check if the bug still happens in that version, that'd be great.
> 
> If it is still bugged there, could you tell us 1) The stuff in the status
> bar, is it an 8bit/channel image? Or higher? And what is the resolution? And
> 2) Could you make a screenshot of the export window? Then we can tell what
> exact export options caused this.
Hi, I think I can reproduce the issue with:

- Krita 3.1.3
- ffmpeg version 2.7.2
- on Ubuntu 14.04
- (16bit float image)

The alert with the error message says:

"Could not render animation:
FFMpeg failed to convert the image sequence. Check the logfile in your output directory for more information."


And the log_encode.log file content is:

"ffmpeg version 2.7.2-1dhor~trusty Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --prefix=/usr --extra-version='1dhor~trusty' --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx265
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-nostdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument 0.
Reading option '-progress' ... matched as option 'progress' (write program-readable progress information) with argument '/tmp/KritaFFmpegProgress.j24805'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '24'.
Reading option '-start_number' ... matched as AVOption 'start_number' with argument '0'.
Reading option '-i' ... matched as input file with argument '/tmp/render.animation/frame%04d.png'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '23'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'medium'.
Reading option '-profile' ... matched as option 'profile' (set profile) with argument 'high422'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv422p'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '/tmp/render.animation/170502.01.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option nostdin (enable or disable interaction on standard input) with argument 0.
Applying option progress (write program-readable progress information) with argument /tmp/KritaFFmpegProgress.j24805.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file /tmp/render.animation/frame%04d.png.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 24.
Successfully parsed a group of options.
Opening an input file: /tmp/render.animation/frame%04d.png.
[image2 @ 0x705be0] Could find no file with path '/tmp/render.animation/frame%04d.png' and index in the range 0-4
/tmp/render.animation/frame%04d.png: No such file or directory"

Hope it helps :)
Comment 4 mvowada 2017-05-02 15:32:00 UTC
(Reopening for now?)
Comment 5 mvowada 2017-05-02 16:00:35 UTC
Created attachment 105312 [details]
(Render Animation - PNG file format settings)

...I can reproduce the issue with "PNG" as file format. No problem with "JPEG".

The Realease Notes for Krita 3.1.3 (not sure it matters):
- Fix for converting floating point channel depth to 8 bit integers with PNG format (BUG 375217)
- Fix memory leak in PNG converter (BUG 378134)
- Set the default PNG compression to 3 instead of 9: this makes saving png’s much faster and the resulting size is the same.
Comment 6 mvowada 2017-11-22 10:33:01 UTC
(Tested with Krita 3.3.2 on Ubuntu 14.04)

I'm not able to reproduce the issue anymore with FFMPEG 3.3.3.
For this reason, I'm going to close this report as "resolved".
Thanks to developers!