video-processing

display video on python without opencv?

天涯浪子 提交于 2021-01-28 05:42:28
问题 I am using openCv for making video processing. What I do is reading a video frame by frame, then applying some processing on each frame and then displaying the new modified frame. My code looks like that : video_capture = cv2.VideoCapture('video.mp4') while True: # Capture frame-by-frame ret, frame = video_capture.read() # Applying some processing to frame . . . # Displaying the new frame with processing img=cv2.imshow('title', frame) if cv2.waitKey(1) & 0xFF == ord('q'): break This way I can

How to drop P-Frames for Datamosh effect using FFMpeg

依然范特西╮ 提交于 2021-01-21 11:44:00
问题 I'm trying to achieve the Datamosh effect on video. (source: ilovenewwork.com) I know that in general what I need to the video is to delete all i-Frames but I have no idea how to achieve that using ffmpeg. 回答1: if you are just looking for an easy command line solution! install the following ruby script https://github.com/ucnv/aviglitch [nodejs version https://github.com/fand/node-aviglitch] convert your video to AVI ffmpeg -i input.mp4 output1.avi datamosh it with the ruby script "aviglitch"

How to drop P-Frames for Datamosh effect using FFMpeg

蹲街弑〆低调 提交于 2021-01-21 11:42:23
问题 I'm trying to achieve the Datamosh effect on video. (source: ilovenewwork.com) I know that in general what I need to the video is to delete all i-Frames but I have no idea how to achieve that using ffmpeg. 回答1: if you are just looking for an easy command line solution! install the following ruby script https://github.com/ucnv/aviglitch [nodejs version https://github.com/fand/node-aviglitch] convert your video to AVI ffmpeg -i input.mp4 output1.avi datamosh it with the ruby script "aviglitch"

FFMPEG : Extract Audio with exact Timing despite corrupted intermediate audio chunks

谁说胖子不能爱 提交于 2021-01-07 02:49:59
问题 I have a full automated tool chain which first concatenate video chunks and adjusts user events to it. This first step uses 3rd party software, I am not able to fix the problem there. Later in the process I extract the audio from the video. Sometimes there are corrupted audio chunks inbetween. FFMPEG ignores the corrupted parts on extraction. So I got a mutch shorter audio (the linked events rely on the exact length of the org A/V). It wouldnt be a big issue if it would only happen at the end

Crop video into a 4x4 grid/tiles/matrix efficiently via command-line ffmpeg?

余生长醉 提交于 2021-01-01 06:39:55
问题 Hello Stackoverflow community! I dread having to ask questions, but there seems to be no efficient way to take a single input video and apply a matrix transformation/split the video into equal sized pieces, preferably 4x4=16 segments per input. I tried using all the libraries such as ffmpeg and mencoder, but having 16 outputs can be as slow as 0.15x. The goal of my project is the split the video into 16 segments, rearrange those segments and combine back into a final video; later reversing

Crop video into a 4x4 grid/tiles/matrix efficiently via command-line ffmpeg?

余生长醉 提交于 2021-01-01 06:37:47
问题 Hello Stackoverflow community! I dread having to ask questions, but there seems to be no efficient way to take a single input video and apply a matrix transformation/split the video into equal sized pieces, preferably 4x4=16 segments per input. I tried using all the libraries such as ffmpeg and mencoder, but having 16 outputs can be as slow as 0.15x. The goal of my project is the split the video into 16 segments, rearrange those segments and combine back into a final video; later reversing

Crop video into a 4x4 grid/tiles/matrix efficiently via command-line ffmpeg?

大城市里の小女人 提交于 2021-01-01 06:37:05
问题 Hello Stackoverflow community! I dread having to ask questions, but there seems to be no efficient way to take a single input video and apply a matrix transformation/split the video into equal sized pieces, preferably 4x4=16 segments per input. I tried using all the libraries such as ffmpeg and mencoder, but having 16 outputs can be as slow as 0.15x. The goal of my project is the split the video into 16 segments, rearrange those segments and combine back into a final video; later reversing