This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # m3u8 to mp4 | |
| ffmpeg -protocol_whitelist file,http,https,tcp,tls -i "input.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 "output.mp4" | |
| # mp4 to aac | |
| ffmpeg -i "input.mp4" -vn -acodec copy "output.aac" | |
| # merge audio video | |
| ffmpeg -i video.mp4 -i audio.mp3 -map 0:v -map 1:a -c:v copy -c:a copy output.mp4 -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Program | |
| { | |
| private static readonly int _photoHeightLimit = 1024 * 5 - 120; | |
| private static readonly int _photoWidthLimit = 1024 * 5 - 120; | |
| static void Main(string[] args) | |
| { | |
| for (int i = 0; i < 10; i++) | |
| { | |
| Resize("input.jpg", new Lanczos3Resampler(), "Lanczos3Resampler.jpg"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "conditionGroup": { | |
| "operator": "or", | |
| "conditionGroups": [ | |
| { | |
| "operator": "and", | |
| "conditionGroups": null, | |
| "conditions":[ | |
| { | |
| "operator": "lower", |