amiaopensource / ffmpeg-artschool

FFmpeg Artschool: An AMIA Workshop
https://amiaopensource.github.io/ffmpeg-artschool/
GNU General Public License v3.0
53 stars 14 forks source link

add bitplane #1

Closed bturkus closed 4 years ago

bturkus commented 4 years ago

Hi,

I started work on a bitplane script; it's super hacky but it does seem to work. Sending in a PR now, as I could use some help with the bash and misc other weird things that I'm struggling with. It's very much a WIP, but right now it's hard-coded for FFplay (wanted to demo this for you) and it takes Y, U, and V arguments (tho if none are provided, it chooses random numbers bet 1-8, which I think is kinda fun).

Few notes: 1) I really like the START FFMPEG/END FFMPEG COMMANDS echo statements that you used in one script. I think we should make this consistent across the full set of scripts, as I personally love to see how to do these things outside of the ready made code. 2) Something about the lutyuv filter seems to require a 10-bit input or something. When using the Cat video as an input, and saving to a Prores file, I was getting this error: [prores @ 0x7fd4f08be800] encoding with ProRes Proxy/LT/422/422 HQ (apco, apcs, apcn, ap4h) profile, need YUV422P10 input 3) I think we should be able to use GETOPTS to allow users to toggle between FFmpeg and FFplay, but I haven't had a chance to play around with this, and GETOPTS is fairly confusing to me. 4) From a readability perspective, I'd love to cut this long long filter chain onto multiple lines, but everything I tried seemed to mess up FFmpeg.