[FFmpeg-trac] #7001(undetermined:closed): Cannot allocate memory on a 4 sec video. "Error reinitializing filters!"
FFmpeg
trac at avcodec.org
Fri Jun 15 18:15:33 EEST 2018
#7001: Cannot allocate memory on a 4 sec video. "Error reinitializing filters!"
-------------------------------------+-------------------------------------
Reporter: Shebuka | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution: invalid
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by bolds):
I got similar problem with my build of ffmpeg for android, still didn't
manage to solve it, but a workaround i found (and you can test to detect
if is the same problem) is re-mux the video without the {{{rotate}}}
metadata...
for that you can do:
{{{ffmpeg -i yourinput.mp4 -c copy -metadata:s:v:0 rotate=
temp_output.mp4}}}
then you can do whatever you need with the video and after that
{{{ffmpeg -i handled_video.mp4 -c copy -metadata:s:v:0 rotate=90
output.mp4}}}
This is a terrible workaround I know, but as far as tested ffmpeg fails to
decode h264 with rotate metadata and also encode adding metadata at same
time (so this is why three steps)
my ffmpeg build has:
FFMPEG_VERSION="4.0"
LIBX264_VERSION="snapshot-20180601-2245-stable"
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7001#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list