Tauri invoke 参数名

注意参数名: 在后端 rust 代码中,参数名必须是蛇形命名法,例如 tou_lan。 而在前端通过 invoke 调用时,参数名必须使用驼峰式命名法,例如 touLan 实例: 传递 user

ffprobe 获取视频各项属性源信息

ffprobe -v error -show_format -show_streams -show_programs -show_chapters -show_private_data -print_format json your-video.mp4 简化输出一些常用的信息: ffprobe -v error -select_streams v:0 -show_format -show_entries stream=height,width -of csv=s=x:p=0 -print_format json your-video.mp4 将结果输出到文件,在命令后添加 > meta.json 输出示例: { "programs": [ ], "streams": [ { "width": 1920, "height": 1080 }

ChatGPT提示词-写话剧脚本

Write a Broadway stage play. A normal person named John learns how to use ChatGPT to answer many kinds of questions. 2/3rds of the time he gets real answers. 1/3rd of the time, ChatGPT lectures John on how he is sexist and racist. Provide detailed dialog, including John's inner thoughts. In the end, John breaks down under the mental strain of being called bad and tries to put himself out