Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
six's user avatar
  • 23
-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 ...
Discombobulous's user avatar
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: ...
r_b's user avatar
  • 1
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:/...
Дмитрий Кравчук's user avatar
-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 ...
John Thesaurus's user avatar
-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 ...
Basj's user avatar
  • 44.9k
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. ...
Bruno Hawkins's user avatar
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 ...
Selmanc's user avatar
  • 56
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 ...
Kaesebrotus Anonymous's user avatar
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;.&...
das saew's user avatar
-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("...
Jatin Parmar's user avatar
  • 2,855
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 ...
nish's user avatar
  • 21
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 ...
JanSkn's user avatar
  • 33
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 ...
Kaj Ervo's user avatar
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 ...
yternal's user avatar

15 30 50 per page
1
2 3 4 5
149