Skip to content

Instantly share code, notes, and snippets.

@georgechalhoub
georgechalhoub / ffmpegTrim.py
Created March 16, 2017 08:22
Trimming a video using FFMPEG using Python
import os
def runBash(command):
os.system(command)
def crop(start,end,input,output):
str = "ffmpeg -i " + input + " -ss " + start + " -to " + end + " -c copy " + output
print str
runBash(str)
@georgechalhoub
georgechalhoub / playlistVideoLinks.js
Created June 30, 2017 15:57
Retrieve the url(s) of the currently playing video of a playlist in JWPlayer 7
@georgechalhoub
georgechalhoub / playlistVideoLinks-min.js
Last active June 15, 2019 08:32
Retrieve the url(s) of the currently playing video of a playlist in JWPlayer 7.

Keybase proof

I hereby claim:

  • I am georgechalhoub on github.
  • I am georgechalhoub (https://keybase.io/georgechalhoub) on keybase.
  • I have a public key ASBbpeCjDpn8j3uDjBFbs_i6DVVxFYNS-kDIltHvJRcvSwo

To claim this, I am signing this object:

@georgechalhoub
georgechalhoub / fixwrongutf8encoding.php
Created January 6, 2022 12:36 — forked from kasperkamperman/fixwrongutf8encoding.php
Function to fix ut8 special characters displayed as 2 characters (utf-8 interpreted as ISO-8859-1 or Windows-1252)
<?php header('Content-Type: text/html; charset=utf-8'); ?>
<html>
<head>
<title>Fix wrong encoded UTF8 characters</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
</head>
<body>
<pre>
<?php
/* Problem description: