• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Error rendering 4K videos

Offline
#1 AdamParent
Hello,

I don't seem to be able to render 4K videos now.  I upgraded to version 4.7.3 and began working on a new video.  I can render it in 1080 and 3K, but I get an error when rendering 4K.  Changing quality, sharpening or motion blur don't seem to fix the problem.  The render begins, but quickly give me an error: "The external encoder returned an error.  Please check the log file (info/log) for details."

I read the FAQ and suspected that perhaps the TIFF files I generated had different crop sizes and maybe that was causing the problem.  I then tried re-rendering an old project that had worked, and that project now also suffers the same problem.  My new project returns the error after 28 frames.  The old project returns the error after 43 frames.

Here is the log file contents:

[2016-11-24 18:37:06] DEBUG: Launching mpeg converter: C:\Program Files (x86)\LRTimelapse 4\ffmpeg64.exe
[2016-11-24 18:37:06] DEBUG: Writing aspect ratio 16:9 to metadata of video file.
[2016-11-24 18:37:06] DEBUG: Launched encoder.
[2016-11-24 18:37:06] DEBUG:   Speed 1.0
[2016-11-24 18:37:06] DEBUG:   Quality 3
[2016-11-24 18:37:06] DEBUG:   Frame rate 29.97
[2016-11-24 18:37:06] DEBUG:   Output cs 420
[2016-11-24 18:37:06] DEBUG:   Width 3840
[2016-11-24 18:37:06] DEBUG:   Height 2160
[2016-11-24 18:37:07] DEBUG: ffmpeg version N-80335-gcb46b78 Copyright © 2000-2016 the FFmpeg developers
[2016-11-24 18:37:07] DEBUG:   built with gcc 5.4.0 (GCC)
[2016-11-24 18:37:07] DEBUG:   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
[2016-11-24 18:37:07] DEBUG:   libavutil      55. 24.100 / 55. 24.100
[2016-11-24 18:37:07] DEBUG:   libavcodec     57. 46.100 / 57. 46.100
[2016-11-24 18:37:07] DEBUG:   libavformat    57. 38.100 / 57. 38.100
[2016-11-24 18:37:07] DEBUG:   libavdevice    57.  0.101 / 57.  0.101
[2016-11-24 18:37:07] DEBUG:   libavfilter     6. 46.101 /  6. 46.101
[2016-11-24 18:37:07] DEBUG:   libswscale      4.  1.100 /  4.  1.100
[2016-11-24 18:37:07] DEBUG:   libswresample   2.  1.100 /  2.  1.100
[2016-11-24 18:37:07] DEBUG:   libpostproc    54.  0.100 / 54.  0.100
[2016-11-24 18:37:08] DEBUG: Input #0, image2, from 'G:\General photographs\2016\2016-05-06 Nubble Time lapse\tiffs deflickered\LRT_2016-05-06_Nubble_Time_lapse\LRT_%05d.tif':
[2016-11-24 18:37:08] DEBUG:   Duration: 00:00:30.80, start: 0.000000, bitrate: N/A
[2016-11-24 18:37:08] DEBUG:     Stream #0:0: Video: tiff, rgb48le, 5472x3078 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[2016-11-24 18:37:08] DEBUG: [swscaler @ 05042f40] deprecated pixel format used, make sure you did set range correctly
[2016-11-24 18:37:08] DEBUG: [libx264 @ 05031be0] using SAR=1/1
[2016-11-24 18:37:08] DEBUG: [libx264 @ 05031be0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[2016-11-24 18:37:08] DEBUG: [libx264 @ 05031be0] profile High, level 5.1
[2016-11-24 18:37:08] DEBUG: [libx264 @ 05031be0] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=10.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[2016-11-24 18:37:08] DEBUG: [mp4 @ 0390e6a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[2016-11-24 18:37:08] DEBUG: Output #0, mp4, to 'C:\Users\ADAM~1.ORI\AppData\Local\Temp\LRT_Render_2137292520228066684.mp4':
[2016-11-24 18:37:08] DEBUG:   Metadata:
[2016-11-24 18:37:08] DEBUG:     creation_time   : 2016-11-24T18:37:06
[2016-11-24 18:37:08] DEBUG:     encoder         : Lavf57.38.100
[2016-11-24 18:37:08] DEBUG:     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc, bt2020c/bt2020/bt2020-10), 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
[2016-11-24 18:37:08] DEBUG:     Metadata:
[2016-11-24 18:37:08] DEBUG:       encoder         : Lavc57.46.100 libx264
[2016-11-24 18:37:08] DEBUG:     Side data:
[2016-11-24 18:37:08] DEBUG:       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[2016-11-24 18:37:08] DEBUG: Stream mapping:
[2016-11-24 18:37:08] DEBUG:   Stream #0:0 (tiff) -> scale
[2016-11-24 18:37:08] DEBUG:   scale -> Stream #0:0 (libx264)
[2016-11-24 18:37:08] DEBUG: Press [q] to stop, [?] for help
[2016-11-24 18:37:31] DEBUG: G:\General photographs\2016\2016-05-06 Nubble Time lapse\tiffs deflickered\LRT_2016-05-06_Nubble_Time_lapse\LRT_%05d.tif: Cannot allocate memory
[2016-11-24 18:37:32] DEBUG: G:\General photographs\2016\2016-05-06 Nubble Time lapse\tiffs deflickered\LRT_2016-05-06_Nubble_Time_lapse\LRT_%05d.tif: Cannot allocate memory
[2016-11-24 18:37:33] DEBUG:     Last message repeated 1 times
[2016-11-24 18:37:33] DEBUG: G:\General photographs\2016\2016-05-06 Nubble Time lapse\tiffs deflickered\LRT_2016-05-06_Nubble_Time_lapse\LRT_%05d.tif: Cannot allocate memory
[2016-11-24 18:37:33] DEBUG: x264 [error]: malloc of size 26199520 failed
[2016-11-24 18:37:33] DEBUG: Video encoding failed
[2016-11-24 18:37:36] DEBUG: Conversion failed!
[2016-11-24 18:37:36] ERROR: External encoder exited with error 1
[2016-11-24 18:43:55] INFO: Deleted incomplete file.

I see the errors showing that it "Cannot allocate memory."  I don't understand these errors as my system has 16 Gig.  I've monitored memory usage using task manager and memory utilization never goes above 43%.  Similarly, I have plenty of room on my hard drive.

Other render settings:
MP4
4K UHD
Frame Rate 29.97
Speed 1:1
Quality: Very High
Color Sampling 420
No motion blur
No sharpen
No copyright overlay

Can you help?

VR
Adam
Offline
#2 gwegner
I've just released LRTimelapse 4.7.4 where this is fixed.
http://lrtimelapse.com/news/lrtimelapse-...-download/
Check out my e-book Time Lapse Shooting and Processing!
Subscribe to the LRTimelapse Newsletter!

lrtimelapse.com - advanced Time Lapse Photography made easy!
gwegner.de - Fotografie, Zeitraffer, Video, Reisen.
facebook · Google+ · twitter · vimeo
Offline
#3 AdamParent
WOW! Fast turnaround! Thanks for all the help!

VR
Adam
Offline
#4 dklmaui
OK, here it is three years later and I'm getting the same error with 5.09 in the same situation. Can you look at my logfile and help?

Also, 2nd question: presuming we fix the problem, how do I instruct LRTimelapse to try again without having to go back to Lightroom and spend 2 hours rendering the whole video again when the images it needs exist?

Thanks Gunther!

Here's the log:

Support request from Douglas Levin, Wailuku, EMail: dklmaui@yahoo.com
License for: LRTimelapse 5, License type: private, Payment reference: 6T1957993M163930J, Valid until: Unlimited for LRT 5.x

[2018-11-22 10:54:43] DEBUG: JPG sequence, ICC-Profile: Adobe RGB (1998), 8 bits per sample.
[2018-11-22 11:14:15] DEBUG: Saving settings for intermediary sequence to C:\Users\doug.LH\Dropbox\1LIBRARIES\Desktop\LRTimelapse Rendering Folder\LRT_Timelapse_18\.lrt\.lrtexport
[2018-11-22 11:14:15] DEBUG: Wrote ccdemux file with 304 entries to C:\Users\doug.LH\AppData\Local\Temp\lrt_5785886188025575819\ccdemux1667255647.txt
[2018-11-22 11:14:15] DEBUG: Launching mpeg converter: C:\Program Files\LRTimelapse 5\ffmpeg64.exe
[2018-11-22 11:14:15] DEBUG: Writing aspect ratio 16:9 to metadata of video file.
[2018-11-22 11:14:18] DEBUG: Launched encoder.
[2018-11-22 11:14:18] DEBUG: Frames: 304
[2018-11-22 11:14:18] DEBUG: Encoder: h264
[2018-11-22 11:14:18] DEBUG: Quality: 1
[2018-11-22 11:14:18] DEBUG: Gamut: BT709
[2018-11-22 11:14:18] DEBUG: Frame rate: 29.97
[2018-11-22 11:14:18] DEBUG: Speed: 1.0
[2018-11-22 11:14:18] DEBUG: Col. Sampl.: 420
[2018-11-22 11:14:18] DEBUG: 16:9 Forced: true, offset: 50%
[2018-11-22 11:14:18] DEBUG: Size: 3840 x 2160
[2018-11-22 11:14:18] DEBUG: Sharpen: true
[2018-11-22 11:14:18] DEBUG: Motion Blur: true
[2018-11-22 11:14:18] DEBUG: Timestamps: false
[2018-11-22 11:14:18] DEBUG: Copyright: false (LRTimelapse.com)
[2018-11-22 11:14:20] DEBUG: ffmpeg version N-91594-g00ae3498bf Copyright © 2000-2018 the FFmpeg developers
[2018-11-22 11:14:20] DEBUG: built with gcc 7.3.1 (GCC) 20180812
[2018-11-22 11:14:20] DEBUG: configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
[2018-11-22 11:14:20] DEBUG: libavutil 56. 19.100 / 56. 19.100
[2018-11-22 11:14:20] DEBUG: libavcodec 58. 22.101 / 58. 22.101
[2018-11-22 11:14:20] DEBUG: libavformat 58. 17.101 / 58. 17.101
[2018-11-22 11:14:20] DEBUG: libavdevice 58. 4.101 / 58. 4.101
[2018-11-22 11:14:20] DEBUG: libavfilter 7. 26.100 / 7. 26.100
[2018-11-22 11:14:20] DEBUG: libswscale 5. 2.100 / 5. 2.100
[2018-11-22 11:14:20] DEBUG: libswresample 3. 2.100 / 3. 2.100
[2018-11-22 11:14:20] DEBUG: libpostproc 55. 2.100 / 55. 2.100
[2018-11-22 11:14:20] DEBUG: Input #0, concat, from 'C:\Users\doug.LH\AppData\Local\Temp\lrt_5785886188025575819\ccdemux1667255647.txt':
[2018-11-22 11:14:20] DEBUG: Duration: N/A, start: 0.000000, bitrate: N/A
[2018-11-22 11:14:20] DEBUG: Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 3840x2160, 25 tbr, 25 tbn, 25 tbc
[2018-11-22 11:14:20] DEBUG: Stream mapping:
[2018-11-22 11:14:20] DEBUG: Stream #0:0 (mjpeg) -> scale
[2018-11-22 11:14:20] DEBUG: unsharp -> Stream #0:0 (libx264)
[2018-11-22 11:14:20] DEBUG: Press [q] to stop, [?] for help
[2018-11-22 11:14:20] DEBUG: [libx264 @ 000001e68ded9140] using SAR=1/1
[2018-11-22 11:14:20] DEBUG: [libx264 @ 000001e68ded9140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2018-11-22 11:14:20] DEBUG: [libx264 @ 000001e68ded9140] profile High, level 5.1, 4:2:0, 8-bit
[2018-11-22 11:14:20] DEBUG: [libx264 @ 000001e68ded9140] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[2018-11-22 11:14:20] DEBUG: Output #0, mp4, to 'C:\Users\doug.LH\AppData\Local\Temp\LRT_Render_443582950286093258.mp4':
[2018-11-22 11:14:20] DEBUG: Metadata:
[2018-11-22 11:14:20] DEBUG: creation_time : 2018-11-22T11:14:15
[2018-11-22 11:14:20] DEBUG: encoder : Lavf58.17.101
[2018-11-22 11:14:20] DEBUG: Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
[2018-11-22 11:14:20] DEBUG: Metadata:
[2018-11-22 11:14:20] DEBUG: encoder : Lavc58.22.101 libx264
[2018-11-22 11:14:20] DEBUG: Side data:
[2018-11-22 11:14:20] DEBUG: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[2018-11-22 11:14:44] DEBUG: Error while filtering: Cannot allocate memory
[2018-11-22 11:14:44] DEBUG: Failed to inject frame into filter network: Cannot allocate memory
[2018-11-22 11:14:44] DEBUG: Error while processing the decoded data for stream #0:0
[2018-11-22 11:14:48] DEBUG: Conversion failed!
[2018-11-22 11:14:48] ERROR: External encoder exited with error 1
[2018-11-22 11:15:17] INFO: Deleted incomplete file.
Offline
#5 gwegner
Seems like a memory problem. Try rebooting, open only LRTimelapse, go to file/render video, select the exported intermediary sequence and render again.
Check out my e-book Time Lapse Shooting and Processing!
Subscribe to the LRTimelapse Newsletter!

lrtimelapse.com - advanced Time Lapse Photography made easy!
gwegner.de - Fotografie, Zeitraffer, Video, Reisen.
facebook · Google+ · twitter · vimeo
Offline
#6 dklmaui
Update: thanks Gunther, I was able to get this working! I closed anything else on the computer using memory and followed the instructions. Thanks!

...also check out: