Skip to content

Instantly share code, notes, and snippets.

@dericed
Created July 30, 2019 14:55
Show Gist options
  • Save dericed/e60ee51d4b2cccf7b3dbe59fbca7ffd0 to your computer and use it in GitHub Desktop.
Save dericed/e60ee51d4b2cccf7b3dbe59fbca7ffd0 to your computer and use it in GitHub Desktop.
play a video in 10 columns to represent the bitplane each of the 10 bit positions (if the video is <10 bit then some columns will be empty)
ffplay bens_first_day_at_nypl.mkv -vf "format=yuv420p10le|yuv422p10le|yuv444p10le|yuv440p10le,split=10[b0][b1][b2][b3][b4][b5][b6][b7][b8][b9];[b0]crop=iw/10:ih:(iw/10)*0:0,lutyuv=y=bitand(val\,pow(2\,10-1))*pow(2\,1):u=512:v=512[b0c];[b1]crop=iw/10:ih:(iw/10)*1:0,lutyuv=y=bitand(val\,pow(2\,10-2))*pow(2\,2):u=512:v=512[b1c];[b2]crop=iw/10:ih:(iw/10)*2:0,lutyuv=y=bitand(val\,pow(2\,10-3))*pow(2\,3):u=512:v=512[b2c];[b3]crop=iw/10:ih:(iw/10)*3:0,lutyuv=y=bitand(val\,pow(2\,10-4))*pow(2\,4):u=512:v=512[b3c];[b4]crop=iw/10:ih:(iw/10)*4:0,lutyuv=y=bitand(val\,pow(2\,10-5))*pow(2\,5):u=512:v=512[b4c];[b5]crop=iw/10:ih:(iw/10)*5:0,lutyuv=y=bitand(val\,pow(2\,10-6))*pow(2\,6):u=512:v=512[b5c];[b6]crop=iw/10:ih:(iw/10)*6:0,lutyuv=y=bitand(val\,pow(2\,10-7))*pow(2\,7):u=512:v=512[b6c];[b7]crop=iw/10:ih:(iw/10)*7:0,lutyuv=y=bitand(val\,pow(2\,10-8))*pow(2\,8):u=512:v=512[b7c];[b8]crop=iw/10:ih:(iw/10)*8:0,lutyuv=y=bitand(val\,pow(2\,10-9))*pow(2\,9):u=512:v=512[b8c];[b9]crop=iw/10:ih:(iw/10)*9:0,lutyuv=y=bitand(val\,pow(2\,10-10))*pow(2\,10):u=512:v=512[b9c];[b0c][b1c][b2c][b3c][b4c][b5c][b6c][b7c][b8c][b9c]hstack=10,format=yuv444p,drawgrid=w=iw/10:h=ih:t=2:c=green@0.5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment