youtube-dl -f bestvideo+bestaudio[ext=m4a] --merge-output-format mp4 [URLまたは動画ID][出力ファイル名]
ffmpegがあればmp4で書き出しされる。
bestvideo+bestaudio
動画音声最高品質
[ext=m4a]
音声はm4a(AAC)で、これがそのあとの結合作業で重要になってくる
import xml.etree.ElementTree as ET | |
class JmaTunamiParse: | |
PATH = 'FilePath' | |
def Main(self): | |
#表示テキスト | |
message = "" | |
try : | |
#津波警報リスト | |
level,msg = self.ParseTsunamiWarning() |
using System; | |
namespace Fibonacci | |
{ | |
class Program | |
{ | |
//フィボナッチ数列を再帰処理 | |
static void Main(string[] args) | |
{ | |
int x = 10; |
ffmpeg.exe -i "in.mp3" -ss -t -acodec copy "out.mp3"
※ 開始時間 0秒なら0 終了時間 -iであらかじめ音声ファイルの長さを取得、計算する必要がある
csc %* | |
Start %~n1.exe | |
@echo off | |
PAUSE |
インデクサについて インデクサを2割ぐらいしか理解してない人が、壁にぶち当たったのでメモします。 (正直言ってあまりインデクサ関係ないかもしれないし、関係あるかもしれない...)
class InfomationCollections { public List Titles { get; set; } public List WeekDays { get; set; } public List StartTime { get; set; }
using System; | |
using System.Runtime.InteropServices; //DllImportで使う | |
class Program | |
{ | |
[DllImport("user32")] | |
private static extern int GetAsyncKeyState(int vKey); //非同期でキーを検出 | |
public static void Main() | |
{ |
平日に限ってツイ禁したい | |
・平日に限りブックマークをブックマークバーから所定のフォルダへ移動させる |