Lens Correction Causes Failed Exports

Regardless if I add the lens correction filter to several clips or to the entire video track, Shotcut will fail to export my project. This renders the filter useless for my needs so I’m not sure if this is isolated to my project or if other users are experiencing failed exports when the project includes this filter.

-----Job log----

[h264 @ 000000002aa10760] Reinit context to 3840x2160, pix_fmt: yuvj420p
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_130952.mp4
    checking VFR: pkt.duration 4308
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_130952.mp4
    checking VFR: pkt.duration 2999
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_130952.mp4
    checking VFR: pkt.duration 2998
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_130952.mp4
    checking VFR: pkt.duration 3000
[h264 @ 00000000277993a0] Reinit context to 3840x2160, pix_fmt: yuvj420p
Current Frame:        381, percentage:          1
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_125934.mp4
    checking VFR: pkt.duration 3910
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_125934.mp4
    checking VFR: pkt.duration 2998
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_125934.mp4
    checking VFR: pkt.duration 3000
[producer avformat] E:/Southeast Asia Videos/DJI_20180310_125934.mp4
    checking VFR: pkt.duration 2997
[h264 @ 000000002aa0fdc0] Reinit context to 3840x2160, pix_fmt: yuvj420p
Failed with exit code -1073741819

-----Header XML-----

  <profile sample_aspect_num="1" frame_rate_num="20025000" display_aspect_den="720" colorspace="709" progressive="1" description="automatic" display_aspect_num="1280" width="1280" sample_aspect_den="1" frame_rate_den="668423" height="720"/>
  <consumer real_time="-1" height="720" ar="48000" progressive="1" acodec="aac" threads="0" deinterlace_method="yadif" f="mp4" g="15" crf="21" aspect="1.77778" mlt_service="avformat" preset="fast" top_field_first="2" bf="2" frame_rate_den="1001" ab="384k" frame_rate_num="30000" vcodec="libx264" width="1280" movflags="+faststart" target="E:/Southeast Asia Videos/Exported Asia Video/Asia video 8 (Lens Correction).mp4" rescale="bilinear"/>

-----Example failed clip XML-----

 <producer title="Anonymous Submission" out="00:02:44.795" in="00:00:00.000" id="producer13">
    <property name="length">00:02:44.829</property>
    <property name="eof">pause</property>
    <property name="resource">E:/Southeast Asia Videos/DJI_20180310_125934.mp4</property>
    <property name="audio_index">1</property>
    <property name="video_index">0</property>
    <property name="mute_on_pause">0</property>
    <property name="mlt_service">avformat-novalidate</property>
    <property name="seekable">1</property>
    <property name="aspect_ratio">1</property>
    <property name="shotcut:hash">ac2fbfdd34264fea7e64f476aa7b19eb</property>
    <property name="global_feed">1</property>
    <property name="xml">was here</property>
  </producer>

I tried to replicate this bug but could not do it.

Applied the lens correction filter to an entire video track and exported it 3 times with the H.264 high-profile preset, YouTube preset, and WebM VP9 preset. All the exports worked fine.

Then I applied the lens correction filter to just two clips on the timeline and did the same 3 exports. All worked fine.

1 Like

Sauron,

Would you mind increasing the speed of your clips 2-3x and retesting? It looks like those are the clips causing it to fail for me.

I retested with 2 clips on timeline. One was at 2X and the second at 3X. Applied lens correction to each clip. Used the same 3 exports. All worked.

Then I removed the lens correction from the clips and added it to the video track. Same 3 exports. All worked.

Used defaults for the exports. Don’t know why it’s not working for you.

Thank you for testing. It might be the variable frame rate of all the clips that is impacting this.

Shotcut has a feature to convert variable frame rate clips.

Thanks. I have over 100 files in my playlist so queuing everything up for conversion is crashing the program. Is there another recommended free batch converter program for windows?

Also, could there be an issue with having multiple resolutions of all clips? Here is a sample:

Clip Codec Resolution Frame rate
130952 H.264 3840x2160 29.9961
125934 H.265 3840x2160 29.9973
151231 H.266 1280x720 29.9087
151244 H.267 1280x720 30.0021
141450 H.268 1280x720 30.0013
141612 H.269 1920x1080 30.0018
Rejoice H.270 1920x180 30
113123 H.271 1280x720 30.0042
111458 H.272 1280x720 30.0039
112805 H.273 1280x720 29.9999
111936 H.274 1280x720 30.0113
112133 H.275 1280x720 30.0096
85317 H.276 3840x2160 30.0031
85215 H.277 1920x1080 30.007
94005 H.278 3840x2160 30.0013

I use Handbrake for batch conversion.

Other than changing the frame rate using handbrake, do you recommend any other configurations without changing the quality of the raw file?

Just tried an export with 3 different resolution clips at 2X 3X and 2X speeds and the export worked. I have no idea why it works here.