Skip to content

Instantly share code, notes, and snippets.

View f1ames's full-sized avatar
🧠

Krzysztof Krztoń f1ames

🧠
View GitHub Profile
@f1ames
f1ames / urlreader.js
Created November 29, 2018 08:29
UrlReader CKEditor5
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* @module upload/urlreader
*/
/* globals window */
@f1ames
f1ames / uploadadapter.js
Last active May 26, 2019 11:45
Base64UploadAdapter CKEditor5
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/* globals window */
/**
* @module adapter-base64/uploadadapter
*/
@f1ames
f1ames / gist:03eeab0f52a17f9dda20
Last active September 28, 2015 11:46
ffmpeg/mp4box
ffmpeg -y -i input.mp4
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset slow -b:v 3000k -maxrate 3000k -bufsize 3000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720high.mp4
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset medium -b:v 2000k -maxrate 2000k -bufsize 2000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720low.mp4
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset slow -b:v 1500k -maxrate 1500k -bufsize 1500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576high.mp4
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset fast -b:v 500k -maxrate 500k -bufsize 500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576low.mp4
-c:a libfaac -ac 2 -ab 128k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset slow -b:v 800k -maxrate 800k -bufsize 800k -filter:v scale=-1:288 -f
@f1ames
f1ames / manifest.mpd
Last active September 28, 2015 11:42
dash.js manifest.mpd
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 0.5.1-DEV-rev4065 on 2015-09-28T10:43:47Z-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500000S" type="static" mediaPresentationDuration="PT0H10M34.60S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
<ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
<Title>http://www.gazeta.pl/</Title>
</ProgramInformation>
<Period duration="PT0H10M34.60S">
<AdaptationSet segmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="30" par="16:9" lang="und" subsegmentStartsWithSAP="1">
<Representation id="1" mimeType="video/mp4" codecs="avc1.640028" width="1280" height="720" frameRate="30" sar="1:1" startWithSAP="1" bandwidth="2451295">
{
company_id: "501",
trade_name: null,
name: "12345",
created_at: "2014-04-23 13:20:14",
updated_at: null,
attributes: [
{
company_attribute_id: "2614",
attribute_definition_id: "1",