Tumgik
#I keep meaning to make a full 8 gif gifset for this video
dingyuxi · 3 years
Text
Tumblr media
COMPREHENSIVE GIFFING TUTORIAL (vapoursynth + ps cc 2018) + some tips and tricks on color correction, blending and subtitles
You guys asked for it, so here we are! This is by no means the gold standard to giffing. Rather, this is simply my process and my own preferences. Take it as you will. Additionally since I use a mac some of my controls/panels may look different than what you would see for windows users.
DOWNLOADING YOUR SOURCE
This step is extremely important to the quality of your gifset. If you want high-quality gifs I would recommend giffing sources in 1080p whenever possible (especially if you’re going for larger dimensions). You may get away with 720p for smaller gifs. For kdramas, your go-to source would be dr*maday or torrents. (you can search my faq tag if you’d like to know specifics on finding and downloading torrents).
IMPORTING + PROCESSING YOUR FILES WITH VAPOURSYNTH (VS)
Please note that this tutorial does not cover basic installation and set-up of vs. If you would like to know how to download and set-up vapoursynth (it works for both mac and pc) along with some of it’s basics you can find more information at: https://hackmd.io/@nibreon/vapoursynth-book/%2F%40nibreon%2Fvapoursynth-book
Once you’ve identified what portion of your video you’d like to gif, simply drag your video file into VS. Specify the start time and duration of the clip you’d like to import. Typically you’ll be aiming for ~3-8 second clip depending on how big your gifs will be. I am very lazy when it comes to importing. The less of it I have to do, the better. Therefore, I often import clips that are 10-15 seconds long, sometimes even up to 20 seconds. I wouldn’t recommend going over 15 seconds most of the time though, because this will usually bring you over the 500 frames photoshop allows you to import at once. (when I do go over, I will sometimes import the processed VS file into PS in segments). You can also choose to import the VS output as segments if you want all your gifs on separate canvases. (I'll go into more detail on this later)
Once you’ve imported the clip into VS your screen should roughly look like this once the resizer pops up:
Tumblr media
In the top left is where you will be applying your cropping, sharpening and denoising filters. Cropping: Keep in mind the Tumblr dimensions: 540px for full-width gifs and 268px for half size gifs, 177/178/177px for 3 gifs across. The height is completely up to your own preference. Usually I work in 540x300px. Once you edit those parameters you can drag/resize your video file to fit your new canvas. Sharpening + Denoising: You can choose to skip this if you would rather sharpen in ps. I personally do all my cropping, denoising and sharpening in vs. I use finesharp and KNML for sharpening and denoising respectively. Once you select those two filters from their drop down menus, be sure the select the checkbox as well. You should now notice 2 additional lines of code in the top right box. The line that reads: video = core.knlm.KNLMeansCL(video, 0, 6, 4, 1.2, channels="YUV") is where you will adjust your denoising parameters. You will only be adjusting those 4 numbers. I usually use: 0, 1, 0, 1.2. Now find the line that reads: video = hnw.FineSharp(video, sstr=0.22). These are your sharpening parameters. once again we’re only adjusting the number at the end. I typically use somewhere between 0.33-0.55. Depending on the quality of your source and preferences these parameters may change. 
Here is a breakdown of the KNML parameters (source: @/nibreon HackMD):
Tumblr media
Once you have finalized your parameters, copy all the code in that top right box and paste it into your vapoursynth editor. Note: you can ‘inactivate’ certain lines of code by adding the # symbol at the start the line. That line of code will then be greyed-out. This is what your code should now look like (the highlighted section is the part I just copy and pasted):
Tumblr media
If you would like to preview your filters and see if you need to make any adjustments, simply navigate to the top bar and select script > preview. If you like what you see, great! If not, you can adjust the parameters directly in the editor until you see a result you’re happy with. Once you’re happy you can move onto the final step in vs: processing. 
Processing: Once again, navigate to the top bar and select script > encode video. Another window should pop up. Make sure you set ‘header’ to ‘Y4M’ then click ‘start’. Patiently wait for that to finish processing. The longer your clip is and the more filters you add, the longer it will take. 
IMPORTING YOUR CLIP INTO PHOTOSHOP (PS)
Now you’re done with the vapoursynth section! Not too hard, right? I use the timeline method when I gif. To import your video file into ps navigate to file > import > video frames to layers. Here you can use the sliders to further specify what range you would like to import. Make sure the ‘make frame animation’ box is checked. To optimize smoothness of your gif, avoid checking the ‘limit to every _ frames’ box. Hit ‘OK’ and wait for the frames to import. Depending on the size of your clip, ps may notify you that you are importing a large file and it may take a long time to process, simply say ‘ok’ to this. UNLESS you get a message saying it will limit to 500 frames. This means your clips contained more than 500 frames and you should select a smaller section to avoid cutting out any critical parts. (Note: you can always go back and repeat this process to select a smaller range of frames from the same video clip until you’ve imported all the frames you need).
Timing: You can adjust the timing of your gifs before converting to timeline. Select all the frames (Navigate to the icon with the 4 bars at the bottom right of you screen. Select “select all frames”). Click the drop down next to the timing of any of the frames. Select ‘other’ and input a your preferred timing. I personally use ‘0.04′ but I've seen people use anywhere from 0.4-0.8ms. Also as a note: when you convert your gif to timeline it has a tendency to mess up your timing so even if you input 0.04 or 0.05 it won’t actually be that timing later. If you want the true frame rate you can set your timing right before saving. You can also adjust timing at the end. (see export/saving gif section for more info)
Now the next part can be tedious and for that reason I’ve created numerous actions to speed up this process. But for the sake of this tutorial I will walk you through the steps. At the bottom of your screen is your timeline. As you can see, it defaults to frames, but we want to convert this into a smart object so that all your coloring/edits are made to all of the layers. To do this: 1) Navigate to the icon with the 4 bars at the bottom right of you screen. Select “select all frames” 2) Now select all your layers in your layer panel. On mac you can use cmd + option + A as a shortcut. 3) Back to the icon with the 4 bars, select “convert to video timeline” 4) Right click on all layers (which should still all be selected) and find “convert to smart object”
(Aside: Actions) actions are SUPER helpful to streamlining your giffing process. you can find actions people have made available on resource blogs like itsphotoshop OR you can choose to make your own custom actions. To do this, all you need to do is locate your action panel. Then from the controls at the bottom of the panel select the one that looks like a sheet of paper to “create a new action” Once you’ve named it and hit ‘ok’ the record icon should now be red. PS will now basically ‘record’ whatever you do. To stop recording hit the square icon. Now whenever you want ps to execute the same set of steps you just did, you can locate the action you just made and ‘play’ it by selecting the triangle icon. I highly recommend making an action for the steps I just outlined above to convert your gif into a smart object timeline. It will make your process much faster and more painless. 
COLORING
Now the fun part! I focus on emphasizing the colors already present in the video source or getting rid of some less-than desirable overtones when I color. It gives the gif a natural look, but makes everything pop a little more. We will be working with selective color, curves, levels, and brightness/contrast mostly. This is the original gif I will be using to demonstrate coloring:
Tumblr media
Curves: I always start with curves. The first curve layer I use to set a desirable black point. To do this, locate the top dropper icon from the curves panel and select the darkest point of your image. This will set that section to “true black” Feel free to play around with this until you find a desirable outcome. Now add another curves layer. This one we will be using to adjust the brightness/contrast. First, I always start off with ‘auto’ and see where that takes me. If you like the outcome, great! If you don’t play around with the different curve points until you get an outcome you like. 
Tumblr media
Selective Color: This adjustment layer will be your best friend. For me, I will typically work with reds, yellows, and black. If the source has a lot of blue/cyan I will use those too. Basically look at your source and determine which base colors you’d like to emphasize/alter. For blacks I usually up the black by +1-5 depending on the source. For reds, it also depends on the source. But I will typically either decrease cyan (to make red stand out more) or increase cyan (to make the red not look so overexposed). You want to be careful here. Overexposing the red can make your skin tones look like red tomatoes! And for my content base, where most of the actors are of asian descent, we should be emphasizing the yellows and NOT the reds (see aside on color correction + skin tones for more info). After altering the reds to my liking, I do the same process for the yellows. To bring back natural skin tones and color, you will likely want to darken the yellows, expose them a bit more and maybe even  up the yellow slider. A common rule of thumb: if you want to make any of the colors less exposed, increase the cyan. If you want to increase exposure on any of the colors, decrease the cyan. If you want a color to appear more strongly or prominently, increase the black. The magentas and yellows I use more to adjust hues. You can add multiple selective color layers to further emphasize your changes. 
Tumblr media
Levels: Now we will work on the lighting some more. This creates more contrast and depth to your gif, often making them look ‘crisper’ To emphasize the bright parts, move the right-hand slider to the left. The emphasize the dark parts, move the left-hand slider to the right. You may also choose to move the middle slider to adjust more neutral lighting. Do so until you find a setting to your liking. 
Tumblr media
Miscellaneous: Depending on your gif you may need to play with other adjustment layers. Some other ones I often use are the brightness/contrast and exposure to adjust lighting and add more dimension to the gif. For additional color correction I use color balance and to a lesser extent hue/saturation and vibrance. 
Tumblr media
(Aside: Color correction + skin tones): We are anti-whitewashing and anti-redwashing when it comes to asian media. Like I mentioned earlier, natural asian skin tones have yellow undertones, not red/pink. Therefore when you’re bringing in color you should be mindful of this delicate balance. Adding more red does NOT equal un-whiteashing. Be VERY careful how you balance the yellows with selective color/hues/color balance.
Tumblr media
^^ Here is an example of what I mean by overexposing the reds. Poor seungho is looking as sunburnt as a cherry tomato. Note: if your original source is already overexposed with red, fix it! You can do this by applying the same basic principles I explained earlier. Try upping the cyan on the reds in selective color, or shifting the color balance to favor cyan over red with the color balance adjustment layer. You may also choose to favor the yellow over blue.
Tumblr media
^^ Now this is straight-up whitewashing. This is what happens when you are not careful with your correction of yellow. I’m not saying you can’t touch the yellow slider or get rid of some yellow form the overall image (because sometimes it is very much needed), but you should be very mindful how your corrections can affect skin tones. If you decide to decrease saturation of yellows, or decrease yellow in the selective color section of the reds, do so with caution. If your reds are looking too pink, add some yellow in the red selective color, up the yellow and black of the yellow selective color.
Tumblr media
^^ If you hit that happy medium, you can emphasize the natural skin tones without overexposure. Here the underlying tones are very much still in the yellow range. 
(Aside: Blending): I will very briefly talk about how to blend two gifs together. First make sure you’ve imported both your gifs into ps and converted them into the timeline format. On one of the gifs, right click the gif layer in the layer panel > duplicate layer > select the canvas of the gif you’d like to blend the gif with. On the canvas you just copied your second gif to, you can now drag the two layers around the on the canvas to get your desired positioning. On the top gif apply a layer mask. This can be found in your layers panel at the bottom, and is indicated by the white rectangle with the circle. Next, make sure you select the mask in the layer panel (it will show up as a white rectangle on the layer you applied the mask). Grab your paintbrush tool and make sure your color is set to black. Now you can effectively ‘erase’ the part of the top gif you don’t want to show anymore. I recommend setting your brush hardness to 0% to get a smoother transition. You can also play with the opacity settings. If you want to add back in a part you erased, just switch to a white paintbrush and you will be able to undo what you had just ‘erased’ with the black. When you merge the gifs, they will play the same number of frames. This means your blended gif length is limited by the gif with the fewer number of frames. You can move around your timeline layer and shorten the included portion by dragging either end of the timeline layer in until you get both gifs to play the parts you want.
Tumblr media
CAPTIONS/SUBTITLES
I often get asked about my subtitle font/styling settings. Personally I find the best fonts for subtitles are calibri and arial. I use calibri with the following settings: 12-14px, bold italic plus faux bold, 1px black stroke (optional: drop shadow set to ‘multiply’ at around 85% opacity), and tracking (VA) set to 75. If you would like your subtitles to fade-in or fade-out you can apply the ‘fade effect’. Locate the b/w square icon in your timeline panel. Select fade and drag it onto your text layer in your timeline. You can then right click on the wedge shape to adjust your fade duration. I usually use 0.35s. If you drag and drop the effect towards the beginning of your text you can get the fade-in effect. To get the fade-out, simply drag and drop your fade towards the end of your text layer.
Tumblr media
SAVING/EXPORTING YOUR GIF
We’ve reached the final stretch! If you need to adjust your frame rate timing: you will need to revert your timeline to frames. To do this: 1) Navigate to the icon of 4 bars at the right of your timeline panel. Select convert frames > flatten frames into clips. 2) Navigate to the icon of 4 bars at the right of your timeline panel. Select convert frames > convert to frame animation > when promoted hit ’ok’. If at this point you see more than one frame in your timeline panel, delete the frames until only one is left. In the example below I would delete the first frame by hitting the trash icon from the timeline panel.
Tumblr media
If there is only one frame, leave it as is. 3) Navigate to the icon of 4 bars at the right of your timeline panel. Select ‘make frames from layers’ You will most likely need to delete the first frame in your timeline panel (it won’t have your coloring). Sometimes ps adds in some ‘blank’ frames as well, delete those too. Now you can adjust your timing. 
Once your timing is set: When you’re saving your gif, just keep in mind it must be under 10mb. Navigate to file > export > save for web. When it comes to your save settings I typically use either selective diffusion or adaptive diffusion. I also also occasionally use adaptive pattern (I find this is best for dark scenes without a lot of contrast). Set colors to 256, quality to bicubic and looping options to forever. If you want to preview your gif, hit the preview button in the bottom left. Otherwise, go ahead a hit ‘save’ and you’re DONE!
Tumblr media Tumblr media
ADDITIONAL RESOURCES
Feel free to check out my ‘ps things’ tag for more photoshop stuff/mini tutorials. Additionally @/nibreon and the hackmd site I linked previously are your best resources for vs questions. If you would like to see my giffing process in motion feel free to check out this video. It’s sped up but you can slow down the playback. Additionally be sure to check out resource blogs like itsphotoshop for more helpful tutorials and resources.
If you reached the end of this beast, kudos to you! I hope this helps and never be afraid to reach out with any questions.
521 notes · View notes
noir-blackout · 5 years
Text
Soft Bias Challenge
Admin Inky here! @yunsungsredhoodie said in the tags that others should do this so, here ya go~ (Onyx I'm excited for you to do this)
1. Who's your bias?
신승훈
2.  What made you notice them?
I mean, he's one of the four members in my personal acceptable age range (not that that's always contained me before...), so I guess he was a little bit on my radar from the start, but I was all enamoured with Yunsung and then... Sunghoon was just there. In my face. In my brain.
In particular, in the instagram video of them goofing around/practicing Beautiful when it pans over to him I remember thinking something along the lines of "wow, I'm ruined.", though less coherent than that.
Tumblr media Tumblr media
Also, in the gifset of them being cute where there's the "Bonus" at the end of him being embarrassed. Those two things flipped the already-teetering Inky off the fine-with-Seunghoon cliff.
3. What’s your favourite thing about them?  
He has this casual power to him. He radiates it. He's confident, but not in an arrogant/cocky way. Not obnoxiously. He knows himself and what he's capable of and wears it proudly, but he's still humble.
He's a good leader and takes it seriously, but he doesn't take himself too seriously.
He just feels stable. He feels reliable.
(Bet you all expected it to be his tongue...)
4. Who would initiate skinship more?
Probably him - he's actually very skinshippy, which I love. He's so soft and gentle when it comes to skinship.
Tumblr media
5. Who would hog all the blankets?
Me. Without a doubt. He can solve this by being near me and keeping me warm~
6. Who would be more clingy?
Emotionally, or? Emotionally I'm not very clingy, but if you're trying to leave the house and I don't want you to then I can be clingy. I feel like we would be similar? Neither of us very clingy.
7. Who would say ‘I love you’ first?
I have no qualms about saying it first, but TECHNICALLY he's already told me he loves me. Through vlive. Soooo.
I'm sure he didn't mean everyone watching.
8. Who would get more flustered?
That would be me. He's dealing with fans telling him sweet things all the time, and I'm sure that doesn't make him find those things less sweet, but it probably means he's adjusted and isn't flustered all the time.
I, on the other hand, felt my heart drop out of my body when he smiled and waved at me. I flustered myself/was flustered by his stupid incredible smile when I told him he was handsome.
9. What cuddling position would you two have?
Him sitting reclined on the couch or in bed. Me sort of half-beside half-on-top of him with my head tilted back against his chest and his arms wrapped around me. He can lean forward gently and kiss my head, if he feels so inclined.
10.  What colours remind you of them and why?
Yellow because of the instagram video where the GIFs above are from where he's wearing the yellow shirt with the sleeves rolled up because I've watched that video more than probably anything else... Also, there's something else where he's wearing yellow that I'm going to share soon... (호랑이~)
The dark blue/black of his hair.
The deep red of his stupid velour tracksuit. I hate how much I find it endearing ugh.
Tumblr media
11. What season would you like to spend with them?
Fall because have you seen him in the turtlenecks and long coats? And he can also wear hoodies because Seunghoon in a black hoodie (+ a baseball cap) looks like such a boyfriend it makes my heart ache.
Tumblr media Tumblr media
I hate winter but I just imagined him brushing the snow out of his hair and then smiling why did I do that no.
12. Who would bake the cookie and who would steal the batter?
I feel like we're both batter stealers and Minhyuk would come back to the kitchen not-even-surprised to find he can now only make 50% of the anticipated cookies...
13. Who would make bad puns and how would the other react?
Despite him being a grandpa, I feel like I would be the one making the puns.
He'd react with this look...
Tumblr media
... and then by walking over, wrapping his arms around my shoulders in a hug, and murmuring "You're so lame" against my hair.
14. Who would want to adopt 50 dogs and cats?
I would want to adopt 50 cats because yes please thank you. He would tell me I could only choose one cat. We would compromise and go home with two cats so they could have each other as friends.
15.  Which one of you would nearly burn down the kitchen trying to microwave a pop tart and who would come to rescue?
I wouldn't because YOU DON'T MICROWAVE POPTARTS?? You toast them in a toaster...
Moving beyond this, I'm not actually sure cause I feel like he's been taking care of himself for a long time so he should be able to use a kitchen at a basic level, but then I realize I have also been "taking care of myself" *shamefully thinks about the recycling bin full of pizza boxes I put out yesterday* for a long time, and I'm not so kitchen-adept, so...
16. Who likes to lean over trail railings and who pulls them back?
I would probably lean over and Seunghoon would either pull me back or (preferably) stand behind me with his arms around my waist to keep me from leaning too far.
17. What would watching a horror film with them be like?
My face would be in his chest the entire time. Occasionally he'd gently scratch my head and ask "Want a dorito?" and I would nod, pull back slightly and allow myself to be fed a dorito. When something scary/startling happened on screen he would jolt slightly and I would chuckle into his chest and he would feign outrage at my laughing at him cause I'm not even watching the movie.
Okay:
a) writing this killed me I am dead now.
b) I want to write this as a drabble but I basically just wrote it... I could expand it?
18.  Who would be the cheesy flirt and who would be the smooth flirt?
Onyx said he was flirting with me at Simply Kpop and he seemed pretty smooth then so
I am a ball of cheese.
19.  Who is more competitive?
He wasn't the most competitive in Action Noir, so it might be me.
20. Who would be given constant reminders?  (Don’t forget your keys, things like that)
Me because I need them. And because he would give them. And this fact makes me feel very warm inside. He would take care of me. Writing that sentence made my heart melty.
21.  Who sends memes and who sends cute ‘I miss you’ texts at 3am?
I would send memes and he would send cute 'I miss you' texts at 3am...
9 notes · View notes