Two-Pass: Requires a bitrate. This defines the quality of the video. Youtube and Vimeo usually reduce your bitrate to 25mbs. So if it is higher, it will be compressed by these websites.
Lower bitrate means lower files size.
| def calculate_aspect(width: int, height: int) -> str: | |
| def gcd(a, b): | |
| """The GCD (greatest common divisor) is the highest number that evenly divides both width and height.""" | |
| return a if b == 0 else gcd(b, a % b) | |
| r = gcd(width, height) | |
| x = int(width / r) | |
| y = int(height / r) | |
| return f"{x}:{y}" |
[13:58:28] Starting 'watch'...
[13:58:28] 'watch' errored after 22 ms
[13:58:28] Error: watch /.../resources/assets/images/ ENOSPC
at exports._errnoException (util.js:1023:11)
at FSWatcher.start (fs.js:1306:19)
at Object.fs.watch (fs.js:1331:11)| <?php | |
| namespace Spatie\Permission; | |
| use Blade; | |
| use Illuminate\Support\ServiceProvider; | |
| use Spatie\Permission\Contracts\Permission as PermissionContract; | |
| use Spatie\Permission\Contracts\Role as RoleContract; | |
| class PermissionServiceProvider extends ServiceProvider |
| /** | |
| * How to link into the WordPress Customizer | |
| */ | |
| Simple Link: | |
| <a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>">Link to Customizer</a> | |
| Link to Panel: | |
| $query['autofocus[panel]'] = 'nav_menus'; |
| #!/bin/bash | |
| sudo mount -o remount,size=10G,noatime /tmp | |
| echo "Done. Please use 'df -h' to make sure folder size is increased." |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.pm.ResolveInfo; | |
| import android.content.res.AssetFileDescriptor; | |
| import android.database.Cursor; | |
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.Matrix; | |
| import android.media.ExifInterface; |
| <?php | |
| namespace App\Http; | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
| */ |
| function getQueryStringValue (key) { | |
| return unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1")); | |
| } | |
| var utm_source = getQueryStringValue("utm_source"); |
| app.factory('BearerAuthInterceptor', function ($window, $q) { | |
| return { | |
| request: function(config) { | |
| config.headers = config.headers || {}; | |
| if ($window.localStorage.getItem('token')) { | |
| // may also use sessionStorage | |
| config.headers.Authorization = 'Bearer ' + $window.localStorage.getItem('token'); | |
| } | |
| return config || $q.when(config); | |
| }, |