Hi there,
Looking for a hand to help with this issue -
I’ve copied the ffmpeg command line from the doc here and removed the audio part.
So looking like this -
PS D:\Lichfield\_Exports\ExportTest\02> ffmpeg -r 30 -f image2 -start_number 0 -i TAKE_02_28_20_03_35_Export_02_28_20_23_52_%06d.png -map 0:v -c:v libx264 -x264-params mvrange=511 -c:a aac -b:a 320k -shortest -vf scale='min(4096,iw)':'min(ih,4096)':force_divisible_by=2:out_color_matrix=bt709:out_range=full,setsar=1:1 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range pc -b:v 5M -pix_fmt yuv420p C:\Users\Jonathan\Desktop\Lichfield\output.mp4
but I’m getting this error message
[Parsed_scale_0 @ 000001f1437c3bc0] Invalid size 'min(4096'
[AVFilterGraph @ 000001f14376fb00] Error initializing filter 'scale' with args 'min(4096:flags=bicubic'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Any help would be awesome.
Thanks,
Jonathan
CoryAllen
(Cory Allen)
February 28, 2022, 9:15pm
2
Hi, @JonathanForder2 .
Try removing the -map 0:v
and -c:a aac -b:a 320k -shortest
parts as well.
Since there’s only one input (the image sequence itself) to the command, it doesn’t need the -map
or -shortest
options necessary to embed two inputs into one file, and the -c:a
and -b:a
options are trying to set the codec and bitrate of the non-existent audio.
Let us know if this fixes the errors.
Thanks, I’m still getting the same error message though.
[Parsed_scale_0 @ 000001b49a798b40] Invalid size 'min(4096'
[AVFilterGraph @ 000001b49a79e480] Error initializing filter 'scale' with args 'min(4096:flags=bicubic'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
Input line is now this -
ffmpeg -r 30 -f image2 -start_number 0 -i TAKE_02_28_20_03_35_Export_02_28_20_23_52_%06d.png -c:v libx264 -x264-params mvrange=511 -vf scale="min(4096,iw)":"min(ih,4096)":force_divisible_by=2:out_color_matrix=bt709:out_range=full,setsar=1:1 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range pc -b:v 5M -pix_fmt yuv420p C:\Users\Jonathan\Desktop\Lichfield\output.mp4
CoryAllen
(Cory Allen)
February 28, 2022, 9:28pm
4
@JonathanForder2 This might also be your command line tool failing to recognize the scaling formula. Which CLI are you using?
Try hardcoding the scale values to scale=4096:4096
to see if that produces the same error.
That did the trick! I’m using PowerShell, so maybe I should switch back over to Command Prompt.
But the video rendered out. Many thanks!