mde.tw

  • Home
    • Site Map
    • reveal
    • blog
  • 程式
    • cp2022
      • cp-syllabus
    • wcm2023
    • cmsimde
      • Portable Python
      • Token and SSH
      • Bootstrap
      • Bugs
      • Frameworks
    • Problem solving
    • Programming
      • Computer
      • Program
      • Python
      • ANSIC
      • Rust
      • Carbon
    • TCExam
      • sendmail
    • Three.js
    • ffmepg
    • Pandoc
    • VSCode
    • Powershell
    • Blockchain
  • Brython
    • Unitconvert
    • Game
    • Simulator
    • Algorithms
  • CPython
    • Pybean
    • PDF
    • RoboDK
    • CAD
      • Python for SW
      • Python for INV
      • Python for NX
    • CAE
    • BS4
    • PostgreSQL
    • PyQt
    • MS Graph
      • MS Teams
  • 設計
    • cad2022
      • cad-syllabus
    • cd2023
    • ME
      • Trends
      • Gears
      • Robots
      • Vehicle
      • Aircraft
      • 3D print
      • Computer Vision
      • Industry 4.0
    • Reference
      • Portable NX1980
      • template and SSH
      • Pull Requests
      • Resolve Conflicts
      • Revealjs
      • Virtualbox
      • cube
    • Solvespace
    • Realizable
    • Bash
    • Leo Editor
    • Fossil SCM
    • Classroom
    • Gazebo
    • Webots
    • Deep RL
  • NX
    • NX1980_setup
    • NX2206
    • NXOpen
    • Mechatronics
  • CoppeliaSim
    • Lua
    • Foosball
    • Examples
      • ZeroMQ
    • Mujoco
    • ROS
  • Projects
    • Wink
    • pjcopsim
      • Copsim Doc
      • Webots Doc
    • pjgazebo
    • pjcontrol
    • pjgithub
    • pjexam
    • pyslvs
    • pjfem
    • pjblender
    • OpenTextbooks
Three.js << Previous Next >> Pandoc

ffmepg

FFmpeg 手冊: http://ffmpeg.org/ffmpeg.html

擷取 mp4 片段檔案

從 origin.mp4 影片中的第一秒開始, 切出 15 分鐘的影片, 存為 new.mp4

ffmpeg -i origin.mp4 -ss 00:00:01 -t 00:15:00 -async 1 new.mp4

刪除影片中的聲音資料

ffmpeg -i origin.mp4 -c copy -an new.mp4

合併 mp4 檔案

建立 allmp4.txt 內容為
file '/path/to/1.mp4'
file '/path/to/2.mp4'
file '/path/to/3.mp4'

將 1.mp4, 2.mp4 與 3.mp4 合併為 new.mp4

ffmpeg -f concat -i allmp4.txt -c copy new.mp4

影片中加入字幕

利用 http://www.aegisub.org/ 可攜版本工具加入字幕

直接將 input.srt 字幕資料 burn 入 input.mp4

ffmpeg -i input.mp4 -vf subtitles=input.srt output.mp4

影片畫面中座標 x=5, y=950 位置中加入圖檔

ffmpeg -i input.mp4 -i kmol_102x30_color.png -filter_complex "overlay=5:950" output.mp4

其他圖形化工具:

http://www.aegisub.org/ (Font: SimSun, Size: 40, Bold, Primary, Color (255, 200, 5))

http://www.avidemux.org/nightly/win64_support/ (建立使用 2.6.21 版本, 可與 aegisub 配合使用)

https://www.openshot.org/ (必須分段輸入字幕, 無法與 aegisub 配合使用)


Three.js << Previous Next >> Pandoc

Copyright © All rights reserved | This template is made with by Colorlib