Skip to content

Instantly share code, notes, and snippets.

View gigincg's full-sized avatar
:octocat:

Gigin George gigincg

:octocat:
View GitHub Profile
# Convert WMV to MP4 with fixed FPS(30)
ffmpeg -i input_file.wmv -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 -max_muxing_queue_size 9999 -filter:v fps=fps=30 output_file.mp4
# Negate (Invert Colours)
ffmpeg -i input_file.mp4 -vf negate outputfile.mp4
# Add Watermark at bottom right corner | Note: Watermark does not scale, to adjust size of watermark, adjust size of input image
ffmpeg -i negated.mp4 -i tlm.png -filter_complex "[1]format=yuva444p,colorchannelmixer=aa=0.2[tlm.png];[0][tlm.png]overlay=x=(main_w-overlay_w):y=(main_h-overlay_h)" watermarked.mp4
# Combined Commands
# Convert WMV to Inverted MP4
ffmpeg -i inputfile.wmv -c:v libx264 -crf 23 -c:a aac -strict -2 -q:a 100 -max_muxing_queue_size 9999 -filter:v "fps=fps=30, negate=1" output_file.mp4
@gigincg
gigincg / forms.json
Created February 20, 2022 17:34
List of Forms to get started with APIs
[
{
id: 1,
name: "Test Form 1",
},
{
id: 2,
name: "Test Form 2",
},
{
const fs = require("fs");
const jose = require("node-jose");
const jwktopem = require("jwk-to-pem");
const jwt = require("jsonwebtoken");
// Generate a new JWKS
// const keyStore = jose.JWK.createKeyStore();
// keyStore.generate("RSA", 2048, { alg: "RS256", use: "sig" }).then((result) => {
// fs.writeFileSync(

Global Digital Corps - Software Engineering Test Problem | Priority list

Thanks for applying to the Global Digital Corps!

In this step we want to see how you implement a command-line (CLI) program that lets you manage your tasks.

The specification for this problem is written down as tests. Since we haven’t actually implemented anything, the tests are currently failing. You have to solve the problem by implementing the application and getting all the tests to pass.

You can download your starter files here

@gigincg
gigincg / CONTRIBUTORS_GUIDE.md
Last active May 22, 2024 13:17
ohc.network Contributor's Guide

CARE Contributor's Guide

Introduction to CARE

CARE is an open-source EMR system developed using Django Rest Framework for the backend and React TypeScript for the frontend. It aims to provide cost-effective, adaptable, and sustainable healthcare solutions.

Prerequisites

Before you start contributing, it is recommended that you have a basic understanding of:

  • Git and GitHub
  • Web development (HTML, CSS, JavaScript)