Skip to content

Instantly share code, notes, and snippets.

View MagneticMule's full-sized avatar
🏠
Working from home

Thomas D. Sweeney MagneticMule

🏠
Working from home
  • Seventh Stage
  • Nottingham
View GitHub Profile
@MagneticMule
MagneticMule / ffmpeg_mkv_mp4_conversion.md
Created December 3, 2018 00:23 — forked from jamesmacwhite/ffmpeg_mkv_mp4_conversion.md
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

@MagneticMule
MagneticMule / .gitignore
Created January 31, 2016 14:46 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@MagneticMule
MagneticMule / ironrouter-waiton.js
Created November 5, 2015 17:37 — forked from herrhelms/ironrouter-waiton.js
how to wait on multiple subscriptions with iron:router and make it available as data in your template...
--- <yourproject.js> ---
SubscriptionOne = new Meteor.Collection('subscription1');
SubscriptionTwo = new Meteor.Collection('subscription2');
if(Meteor.isClient) {
// iron:router route
Router.route('/', {
onBeforeAction:function() {
// .. any onBeforeAction