“Linux teilen MP4 nach Zeit in 2 Teile auf” Code-Antworten

Holen Sie sich in FFMPEG ein MP4 -Teile

ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment -reset_timestamps 1 output%03d.mp4
Wild Willet

ffmpeg teilen Video in Teile ein

ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment output%03d.mp4
Scary Shrike

Linux teilen MP4 nach Zeit in 2 Teile auf

#!/bin/bash

# Split Video Script
# Usage: script_name file_name split-point
# Example: split_video_script bugs_bunny.mp4 31:23
# Instructions:     
# 1. Type the name of your script (if it is already added to ~/bin and marked as executable). 
# 2. Type the file name including path to it if necessary. 
# 3. Type the time where you want to split the video. It goes in minutes:seconds

# Get length in seconds
length=$(echo "$2" | awk -F: '{print ($1 * 60) + $2}')

# Get filename without extension
fname="${1%.*}"

# First half
ffmpeg -i "${fname}.mp4" -c copy -t "$length" "${fname}1.mp4"

# Second half
ffmpeg -i "${fname}.mp4" -c copy -ss "$length" "${fname}2.mp4"
Panicky Pollan

Ähnliche Antworten wie “Linux teilen MP4 nach Zeit in 2 Teile auf”

Fragen ähnlich wie “Linux teilen MP4 nach Zeit in 2 Teile auf”

Weitere verwandte Antworten zu “Linux teilen MP4 nach Zeit in 2 Teile auf” auf TypeScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen