Loading...
Loading...
Compare original and translation side by side
command -v ffmpeg >/dev/null 2>&1 && ffmpeg -version 2>/dev/null | head -1 || echo "NO_FFMPEG"
command -v whisper >/dev/null 2>&1 || command -v whisper-cpp >/dev/null 2>&1 || echo "NO_WHISPER"brew install ffmpegpip install openai-whisperbrew install whisper-cppcommand -v ffmpeg >/dev/null 2>&1 && ffmpeg -version 2>/dev/null | head -1 || echo "NO_FFMPEG"
command -v whisper >/dev/null 2>&1 || command -v whisper-cpp >/dev/null 2>&1 || echo "NO_WHISPER"brew install ffmpegpip install openai-whisperbrew install whisper-cpp~/Desktop/~/Desktop/WORK_DIR=$(mktemp -d "${TMPDIR:-/tmp}/automate-this-XXXXXX")
chmod 700 "$WORK_DIR"
mkdir -p "$WORK_DIR/frames"
ffmpeg -y -i "<VIDEO_PATH>" -vf "fps=0.5" -q:v 2 -loglevel warning "$WORK_DIR/frames/frame_%04d.jpg"
ls "$WORK_DIR/frames/" | wc -l$WORK_DIRWORK_DIR=$(mktemp -d "${TMPDIR:-/tmp}/automate-this-XXXXXX")
chmod 700 "$WORK_DIR"
mkdir -p "$WORK_DIR/frames"
ffmpeg -y -i "<VIDEO_PATH>" -vf "fps=0.5" -q:v 2 -loglevel warning "$WORK_DIR/frames/frame_%04d.jpg"
ls "$WORK_DIR/frames/" | wc -l$WORK_DIRffprobe -i "<VIDEO_PATH>" -show_streams -select_streams a -loglevel error | head -5ffmpeg -y -i "<VIDEO_PATH>" -ac 1 -ar 16000 -loglevel warning "$WORK_DIR/audio.wav"ffprobe -i "<VIDEO_PATH>" -show_streams -select_streams a -loglevel error | head -5ffmpeg -y -i "<VIDEO_PATH>" -ac 1 -ar 16000 -loglevel warning "$WORK_DIR/audio.wav"
If neither whisper binary is available and the recording has audio, inform the user they're missing narration context and ask if they want to install Whisper (`pip install openai-whisper` or `brew install whisper-cpp`) or proceed with visual-only analysis.
如果两种whisper二进制文件都不可用且视频包含音轨,告知用户缺少旁白上下文,并询问他们是否要安装Whisper(`pip install openai-whisper` 或 `brew install whisper-cpp`),还是仅进行视觉分析。Here's what I see you doing in this recording:
1. Open Chrome and navigate to [specific URL]
2. Log in with credentials
3. Click through to the reporting dashboard
4. Download a CSV export
5. Open the CSV in Excel
6. Filter rows where column B is "pending"
7. Copy those rows into a new spreadsheet
8. Email the new spreadsheet to [recipient]
You repeated steps 3-8 three times for different report types.
[If narration was present]: You mentioned that the export step is the slowest
part and that you do this every Monday morning.
Does this match what you were doing? Anything I got wrong or missed?根据录制视频,我梳理出你的操作如下:
1. 打开Chrome并导航到[具体URL]
2. 使用凭据登录
3. 点击进入报告仪表板
4. 下载CSV导出文件
5. 在Excel中打开该CSV文件
6. 筛选B列为“pending”的行
7. 将这些行复制到新的电子表格中
8. 将新电子表格通过邮件发送给[收件人]
你针对不同的报告类型,重复执行了步骤3-8三次。
[如果有旁白]:你提到导出步骤是最慢的部分,而且你每周一早上都要做这件事。
这与你的实际操作是否一致?有没有我理解错或遗漏的地方?echo "=== OS ===" && uname -a
echo "=== Shell ===" && echo $SHELL
echo "=== Python ===" && { command -v python3 && python3 --version 2>&1; } || echo "not installed"
echo "=== Node ===" && { command -v node && node --version 2>&1; } || echo "not installed"
echo "=== Homebrew ===" && { command -v brew && echo "installed"; } || echo "not installed"
echo "=== Common Tools ===" && for cmd in curl jq playwright selenium osascript automator crontab; do command -v $cmd >/dev/null 2>&1 && echo "$cmd: yes" || echo "$cmd: no"; doneecho "=== 操作系统 ===" && uname -a
echo "=== Shell ===" && echo $SHELL
echo "=== Python ===" && { command -v python3 && python3 --version 2>&1; } || echo "未安装"
echo "=== Node ===" && { command -v node && node --version 2>&1; } || echo "未安装"
echo "=== Homebrew ===" && { command -v brew && echo "已安装"; } || echo "未安装"
echo "=== 常用工具 ===" && for cmd in curl jq playwright selenium osascript automator crontab; do command -v $cmd >/dev/null 2>&1 && echo "$cmd: 是" || echo "$cmd: 否"; doneundefinedundefinedundefinedundefinedcurlwgetcsvkitosascriptsmtplibimaplibfindxargsfswatchwatchmanautomatorlaunchdcurlwgetcsvkitosascriptsmtplibimaplibfindxargsfswatchwatchmanautomatorlaunchd--dry-runsecurity--dry-runsecurity~/Desktop/~/Desktop/rm -rf "$WORK_DIR"rm -rf "$WORK_DIR"