21:53
I've been toying around with MoviePy, and recently switched a project to a new computer at home to continue messing around with it. However, I tried running what I had previously written (which ran perfectly fine on the other computer) and I get this:
OSError: MoviePy error: failed to read the first frame of video file ./Gameplay/minecraft-
gameplay2.mp4. That might mean that the file is corrupted. That may also mean that you are using
a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is
deprecated. Please update to a recent (...)
13:26
I am using the following ffmpeg command to trim and select certain portions of the video.
ffmpeg -v verbose -i test.mp4 -filter_complex \\
"[0:v]trim=start=5:end=40,setpts=PTS-STARTPTS[v_trimmed]; \\
[v_trimmed]select='between(t,10,20)',setpts=N/FRAME_RATE/TB[v]; \\
[0:a]atrim=start=5:end=40,asetpts=PTS-STARTPTS[a_trimmed]; \\
[a_trimmed]aselect='between(t,10,20)',asetpts=N/SR/TB[a]" \\
-map "[v]" -map "[a]" -y -r 30 output_video.mp4
The above command errors out with the following trace
[h264 ⓐ 0x12570a0e0] Reinit context to (...)
13:26
I'm trying to create a video from a single image with a very specific duration of 0.09375 seconds using FFmpeg. I've tried various commands, but I can't seem to get the exact duration I need. The closest I've gotten is 0.080000 seconds. It doesn't always have to be something like 0.09375, but I wanted to have an example for it.
I've also tried trimming a video, but from what I've read so far, the encoding of the video can be a problem. Even after trying different FFmpeg commands or using MoviePy directly, I've never arrived at the desired (...)
15:10
Hello I am trying to get Ass (Advanced SubStation Alpha) code to animate (highlight in green) each word as it is spoken and then have it revert back to white afterwards. What happens with my code is very odd. At first I cannot even see any text. It then appears with multiple lines overlapped, partially hanging off the screen. From this point it "kind of" works. I can see the desired highlighting happening but because the text is all jumbled and overlapping it can hardly be called a success.
In case it is relevant I am using ffmeg to burn in the subtitles. I am using the following (...)
13:47
Is there anyway (besides the documented slow method) to get access to the texture pixels from an SDL2 texture? SDL_RenderReadPixels says Warning: this is a very slow method and should not be used frequently.
I want to point an ffmpeg AVFrame->data over to the texture pixels and have it encode what's in the texture. Basically, screen grab a texture after rendering and blending several textures together.
SDL_LockTexture() gives write-only access to the pixels. The docs also say not to expect pixel data to be present in the pointer returned to you.
Is it possible with (...)