제목대로입니다. 4K 동영상을 분할하기 가장 편한 툴은 뭘까요?
합창단에 소속해 활동을 하다 보니 가끔 IT 업종에 종사한다는 이유로 일거리를 떠안게 됩니다.
동영상 군데군데 페이드 아웃됐다가 페이드 인 되는 부분이 있는데 여기를 기준으로 잘라낼 수만 있으면 됩니다. 물론 화질/음질 열화는 가능한 한 없어야 하구요. 자를 곳을 한 번에 모두 마킹한 다음 잘라낼 수 있으면 좋겠습니다.
유료버전도 좋습니다. 하나쯤 확보해야겠다고 오래 전부터 생각하고 있었습니다.
답변 미리 감사드립니다~!
샤나 인코더도 되니까요
영상과 소리는 DIRECT STREAM COPY로 하고
미리 자를 시간 기억 후에 넣어서 자르면 복사하듯이 파일이 생성 됩니다.
Automatically Finding Fade In/Fade Out Positions
Select a Programming Environment: Choose a programming language and environment that supports video processing. Python is a popular choice due to libraries like OpenCV and moviepy.
Extract Video Frames: Use a library to read the video and extract frames at a certain interval. The interval depends on the video's frame rate and how precise you want to be.
Analyze Brightness: For each frame, calculate an average brightness value. This can be done by converting the frame to grayscale and then calculating the mean of all pixel values.
Detect Transitions: Analyze the brightness values over time to detect gradual changes that signify a fade in or fade out. This might involve setting a threshold for what constitutes a significant change in brightness.
Record Timestamps: Once you've detected the transitions, map them back to their timestamps in the video.
Here's a very basic example of how you might start this process using Python with OpenCV for frame extraction and analysis:
--- example code --
import cv2
import numpy as np
# Load the video
video_path = 'your_video.mp4'
cap = cv2.VideoCapture(video_path)
frame_rate = cap.get(cv2.CAP_PROP_FPS)
frame_count = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
video_duration = frame_count / frame_rate
print(f'Frame Rate: {frame_rate}, Frame Count: {frame_count}, Duration: {video_duration}s')
# Placeholder for your logic to detect fades
# You would typically analyze frame brightness here and look for transitions