Skip to content

Instantly share code, notes, and snippets.

View ckarthickit's full-sized avatar

Karthick Chinnathambi ckarthickit

  • India
View GitHub Profile
@ckarthickit
ckarthickit / inspect video file ffprobe ffmpeg.md
Created August 16, 2020 02:36 — forked from ff6347/inspect video file ffprobe ffmpeg.md
Inspect video file using ffprobe (part of ffmpeg)

#Inspecting video files with ffprobe (part of ffmpeg)
Today I needed to inspect a video file. So I thought: "Do it with ffmpeg!". I had a older version of ffmpeg installed via macports. So this is the process i went through.

If you don't have it already:

  1. Install XCode and the XCode command-line tools

  2. Update or install ffmpeg using macports

    This updates the ports tree

    sudo port selfupdate

@ckarthickit
ckarthickit / MainActivity.java
Created July 16, 2020 06:18 — forked from sandeepyohans/MainActivity.java
Adding alert() support to a WebView - Android
/*
Retrieved from https://web.archive.org/web/20160516165158/http://lexandera.com/2009/01/adding-alert-support-to-a-webview/
*/
final WebView browser = (WebView)findViewById(R.id.browser);
/* JavaScript must be enabled if you want it to work, obviously */
browser.getSettings().setJavaScriptEnabled(true);
final Context myApp = this;