Chapter 2.28 uses filter_complex without white spaces or colons?

$ ffmpeg -i 20220421_163910-meet.mp4 -i image_with_clut-meet-edited-clut.png 
-filter_complex [0]eq=brightness=0.06[a];[a][1]haldclut -y 
20220421_163910-meet-edited.mp4

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20220421_163910-meet.mp4':             
                                                                                
                                   
...
Filter eq has an unconnected output                                             
                                                                                
                                   
bash: [a][1]haldclut: command not found



Notice, "haldclut command not found"

Including white space for filter_complex:

$ ffmpeg -i 20220421_163910-meet.mp4 -i image_with_clut-meet-edited-clut.png 
-filter_complex '[0]eq=brightness=0.06 [a];[a] [1] haldclut' -y 20220421_1
63910-meet-edited.mp4

man ffmpeg-filters

Looks like you syntax omits the single quotes around the filter_complex option 
AND has missing white spaces and/or colons.

Not sure if "[a];[a]" should have white spaces.



For sake of simplicity, here's what I have:

/* OWN MODIFIED LUT OR WHITE BALANCE FILTER */

Snip or extract portion of video requiring white balance, color or brightness 
corrections.
$ ffmpeg -ss 590 -i 20220421_163910.mp4 -t 867 -codec copy 
20220421_163910-meet.mp4

Frame of (VHS) video requiring white balance or color/brightness correction, 
creating a CLUT embedded extracted image:
This is frame at "11:00" for this specific video

$ ffmpeg -ss 11:00 -i 20220421_163910.mp4 -f lavfi -i haldclutsrc=8 
-filter_complex 
"[1]format=pix_fmts=rgb48be[a];[a][0]xstack=inputs=2:layout=0_0|w0_0" -frames 1 
-y image_with_clut-meet.png

Open image_with_clut-meet.png within Gimp, edit Color > Color Temperature 
and/or Color > Levels > Output Levels, export as "16bpc RGB" 
image_with_clut-meet-edited.png.

Crop the CLUT (512:512) from the Gimp exported image.
$ ffmpeg -i image_with_clut-meet-edited.png -vf crop=512:512:0:0 -y 
image_with_clut-meet-edited-clut.png

Apply the resulting CLUT using FFmpeg's filter_complex.
TIP: Use acodec copy as this is only modifying the video stream.
TODO: Brightness reduction for color retention?
TODO: Added white space to filter_complex, likely could also use colons, but 
white spacing is better for readability.

$ ffmpeg -i 20220421_163910-meet.mp4 -i image_with_clut-meet-edited-clut.png 
-filter_complex '[0]eq=brightness=0.06 [a];[a] [1] haldclut' -y 
20220421_163910-meet-edited.mp4

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to