brew install ffmpeg
ffmpeg -i video-original.mp4 -vcodec h264 -acodec mp2 video.mp4
ffmpeg -i video-original.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus video.webm
brew install ffmpeg
ffmpeg -i video-original.mp4 -vcodec h264 -acodec mp2 video.mp4
ffmpeg -i video-original.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus video.webm
| import { | |
| Inject, | |
| Injectable, | |
| InjectionToken, | |
| Injector, | |
| Optional | |
| } from '@angular/core'; | |
| import { | |
| HttpClient, | |
| HttpEvent, |
| import { Component, OnInit } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-<%= dasherize(name) %>-list', | |
| template: ` | |
| <p> | |
| list works! | |
| </p> | |
| `, | |
| styles: [] |
| import { Component, OnInit } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-<%= dasherize(name) %>-form', | |
| template: ` | |
| <p> | |
| form works! | |
| </p> | |
| `, | |
| styles: [] |
| import { NgModule } from '@angular/core'; | |
| import { CommonModule } from '@angular/common'; | |
| import { <%= classify(name) %>ListComponent } from './<%= name %>-list.component'; | |
| import { <%= classify(name) %>FormComponent } from './<%= name %>-form.component'; | |
| @NgModule({ | |
| imports: [CommonModule], | |
| declarations: [<%= classify(name) %>ListComponent, <%= classify(name) %>FormComponent], | |
| }) |
| import { | |
| apply, | |
| branchAndMerge, | |
| chain, | |
| mergeWith, | |
| move, | |
| renameTemplateFiles, | |
| Rule, | |
| SchematicContext, | |
| template, |
| { | |
| "$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json", | |
| "schematics": { | |
| "my-schematics": { | |
| "description": "A custom module generator.", | |
| "factory": "./my-schematics/index#mySchematics", | |
| "schema": "./my-schematics/schema.json" | |
| } | |
| } | |
| } |