All Questions
2,228
questions
0
votes
1
answer
32
views
nvenc for ffmpeg hardware acceleration with moviepy producing corrupted mp4
I've been trying to create a Python app that takes an mp4 file, an mp3 file, and a dictionary of captions to produce an output mp4 file.
I got it to work well but I found the libx264 codec to be quite ...
-1
votes
1
answer
27
views
Scalable video file integrity verification in python [closed]
I have directory with ~1 million video files nested under 100 sub-directories. I want to write a python script that verifies that these files are not corrupted, then delete the files that are ...
0
votes
0
answers
40
views
.exe file, works different than .py file
I've made the YouTube Dowbloader App, and everything is working properly (run in PyCharm), but when I try to make it executable with pyinstaller, it's not working.
This is the link to the repo:
...
0
votes
0
answers
27
views
How to combine many m3u8 hls playlists into one using python
I have several videos of mp4 formats. I created HLS (playlists and segments) from them using this code
import ffmpeg
input_file_path = "D:/Projects/test2.mp4"
output_playlist = "'D:/...
-1
votes
1
answer
23
views
How Do I Get Python To Capture My Screen At The Right Frame Rate
I have this python script that is supposed to record my screen, on mac os.
import cv2
import numpy as np
from PIL import ImageGrab
import subprocess
import time
def record_screen():
# Define the ...
-1
votes
1
answer
31
views
Split a video with ffmpeg, without reencoding, at timestamps given in a txt file
Let's say we have a video input.mp4, and a file split.csv containing:
start;end;name
00:00:27.132;00:07:42:422;"Part A.mp4"
00:07:48.400;00:17:17.921;"Part B.mp4"
(or I could ...
0
votes
1
answer
22
views
Trying to convert code to be compatible with macOS by not using the .exe version of FFmpeg and FFmprobe. Cant open the .mp4 file when i go to run code
I am attempting to edit some code in python for extracting frames from a video (using parallel processing to make it faster) a friend created that works on windows, so that it can be used on macOS. ...
0
votes
0
answers
60
views
Error Running MoviePy in a Frozen Python Application with cx_Freeze
I'm encountering a persistent issue when trying to run a Python application that uses moviepy, which has been frozen using cx_Freeze. The application throws an error related to ffmpeg when I attempt ...
0
votes
0
answers
46
views
While using skvideo.io.FFmpegReader and skvideo.io.FFmpegWriter for video throughput the input video and output video length differ
I have an h264 encoded mp4 video of about 27.5 minutes length and I am trying to create a copy of the video which excludes the first 5 frames. I am using scikit-video and ffmpeg in python for this ...
0
votes
0
answers
31
views
I can't compile Whisper Ai into EXE file with Pyinstaller
i'm not sure if its a ffmpeg issue or a whisper ai issue
but after compiling my .py file with pyinstaller into one exe file using this command
pyinstaller --onefile --add-binary="ffmpeg.exe;.&...
-1
votes
0
answers
63
views
Not able to display first frame of mp4 file
I am learning OpenCV from YouTube, and I just created a very basic program in Python.
import cv2 as cv
sources = cv.VideoCapture("test.mp4");
if not sources.isOpened():
print("...
1
vote
0
answers
59
views
the "non-monotonic DTS in output stream " error while concatenation even after reencoded input files
hi I am trying to write a Python program that is trying to first edit different videos separately under the heading "intro" "story" and "byte" with the help of FFmpeg and ...
0
votes
0
answers
66
views
Previewing mp4 video of cv2s VideoWriter not possible
I am writing a machine learning football analysis system, and I want to store the result video as seen in the code block. I can see the video normally under Windows' media player, but in VSCode and ...
0
votes
0
answers
40
views
How to correctly pass FFMPEG arguments using PYTHON? [duplicate]
I wrote script to create a hardcoded overlay onto a video from a .txt data file using this command syntax:
ffmpeg -i 'input.mp4' -vf "ass='subfile.ass'" -c:v h264_qsv 'output.mp4'
If I do ...
0
votes
0
answers
34
views
Issues Streaming FLV Video from RTSP using FFmpeg and Python to flv.js
I am currently working on a project where I need to stream video from an RTSP source, convert it to FLV format using FFmpeg, and then send the FLV stream to clients upon request. The code I have ...