21:43
I am trying to construct python script with ffmpeg command to capture a webcam, decode the text from the camera frame and stream the same through an RTSP stream. I am able to receive the streaming through the player, but text decoding is not happening with the following example code: Help is needed to understand the problem, whether it is a piping problem or any other mistake in the code.
ffmpeg_cmd = (
"ffmpeg -f v4l2 -framerate 30 -video_size 1280x720 -i /dev/video0 -f alsa -i hw:0 -c:v libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv420p -c:a aac -b:a 128k -f rtsp (...)
15:46
I'm building a video caption writer web app, for embedding subtitle in a video I'm using ffmpeg.
But there is a error opening output file, everything is working fine in a cmd, but in VS Code it's not working.
My code:
import ffmpeg from "fluent-ffmpeg";
import NextRequest from "next/server";
ffmpeg.setFfmpegPath('C:\\\\ffmpeg\\\\bin\\\\ffmpeg.exe')
export async function POST(req: NextRequest)
try
const videoWithSubtitlesPath = path.join(
process.cwd(),
"public",
"subtitle_video.mp4"
);
(...)
13:18
I have a react native app much like social media app.Users upload their photos and videos from that app .While uploading I wanna show processing sign with percent and I have RESTful api endpoints written in spring boot and wanna resize media(photos and videos).Is there any easy way to implement it.I have heard of ffmpeg but I don't know how to integrate it with spring boot.
Thanks.
09:28
I've been trying to convert my console command to work with the Laravel FFMpeg package. The issue that I've been running into is that the available Filters are not really well documented.
This is the Laravel code that is not working. The only part that does not work is the last addFilter part with the srt and font file.
FFMpeg::fromDisk('local')
->open([$backgroundImage, $audioFile])
->export()
->toDisk('local')
->addFilter(function (FrameFilters $filters)
$filters->custom('scale=1920:1080');
)
(...)
02:52
I am doing a python script that cuts silence over particular words (whatever the user defines). I'm using Pydub and moviepy (both ffmeg).
The problem is the audio and video don't line up. They are both the same length (a few milliseconds difference sometimes) and the farther into the video you go the more off they become.
Thinking it could be a problem with either the cutting the silence into the audio or the way the video gets put back together, I tried just extracting the audio from the video (without editing the audio) and taking it into a video editing program. I (...)
01:21
After some searching, the following command works to split my input video into shots, and save the first frame from each shot.
ffmpeg -i input_vid.mp4 -filter:v "select='gt(scene,0.1)',showinfo" -vsync 0 frames/%05d.jpg
When run from the terminal, it prints a line to what I think is stderr for each of the extracted frames, like so
Parsed_showinfo_1 ⓐ 0x7f0198003540] n: 884 pts: 132552 pts_time:2209.2 duration: 2 duration_time:0.0333333 fmt:yuv420p cl:left sar:0/1 s:480x360 i:P iskey:0 type:P checksum:F2D8FCAA plane_checksum:[2D2F32C1 6E0164EC 832064FD] mean:[16 (...)