I had a problem with encoding one of my videos earlier with NEAV1E and found out that there was a bug with getting the aspect ratio variable.
On a couple of videos I've been trying to encode the aspect ratio was identified as "2.4.0:1" and when it's eventually passed to ffmpeg for muxing, NEAV1E errors out with the following:
I put the same ffmpeg arguments used by the program in a terminal and shows the following error:
The fix I originally thought of was to replace the "DisplayAspectRatio/String" with "DisplayAspectRatio" but that caused some differences ("2.4.0:1" -> "2.375"). A better way I found was to just remove the ":1" but that would cause problems with 16:10 so adding a check for the last 2 characters to be ":1" and for the 3:1 and 1:1 ratios was a good fit.
After changing the code I was able to successfully encode the video.
Additional Info: The ffmpeg used was the one found in "Apps/FFmpeg" and not the one installed on system. Here's the NEAV1E log file
I had a problem with encoding one of my videos earlier with NEAV1E and found out that there was a bug with getting the aspect ratio variable.
On a couple of videos I've been trying to encode the aspect ratio was identified as "2.4.0:1" and when it's eventually passed to ffmpeg for muxing, NEAV1E errors out with the following:
I put the same ffmpeg arguments used by the program in a terminal and shows the following error:
The fix I originally thought of was to replace the "DisplayAspectRatio/String" with "DisplayAspectRatio" but that caused some differences ("2.4.0:1" -> "2.375"). A better way I found was to just remove the ":1" but that would cause problems with 16:10 so adding a check for the last 2 characters to be ":1" and for the 3:1 and 1:1 ratios was a good fit.
After changing the code I was able to successfully encode the video.
Additional Info: The ffmpeg used was the one found in "Apps/FFmpeg" and not the one installed on system. Here's the NEAV1E log file