Skip to content

Instantly share code, notes, and snippets.

To convert mxf to mp4 .\ffmpeg.exe -i input.mxf -preset ultrafast -codec:v libx264 output.mp4

To convert mxf to mp4 .\ffmpeg.exe -i input.mxf -preset ultrafast -codec:v libx264 -pix_fmt yuv420p -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1500k -vf scale=-1:360 output.mp4

To add watermark .\ffmpeg.exe -i input.mp4 -i logo.png -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -max_muxing_queue_size 1024 output.mp4

@aawaheed
aawaheed / sendtweet.cs
Last active September 15, 2019 12:14
To send tweet using pure HTTP post with OAuth in C#
//To send tweet using OAuth without any library
private void SendTweet(string message)
{
try
{
string _CK = "ConsumerKey"; //YOUR CONSUMER KEY
string _CS = "ConsumerSecret" //YOUR CONSUMER SECRET
string _AT = "AccessToken" //Access Token
string _ATS = "AccessTokenSecret " //Access Token Secret
@aawaheed
aawaheed / docker-compose.yml
Last active October 20, 2016 20:54
Commands to run wordpress docker
version: '2'
services:
wordpress:
image: wordpress:4.6.1-apache
ports:
- 8080:80
volumes:
- ./wp-content:/var/www/html/wp-content