16:44
I would like to merge all the *.png* images into a single .mp4 video file. But the file does not read on windows.11 Media Player
I tried this command
ffmpeg -y -i "screenshots/*.png" "screenshots/merged/video.mp4"
21:59
I have a bash script that executes whisper on all sound files in a directory. Whisper uses ffmpeg to decode sound files to a format it can handle. One of the files in the directory was corrupt and caused ffmpeg to fail. The first time I executed my script it returned 1 when it hit that file but when I try to reproduce the error it always returns 0.
Here is the log from the first run when 1 was returned:
Traceback (most recent call last):
File "/Users/db/Library/Python/3.11/lib/python/site-packages/whisper/audio.py", line 48, in load_audio
.run(cmd=["ffmpeg", (...)
19:43
I can successfully transcode videos to multiple resolutions with ffmpeg without using hls commands in .outputOptions. However, an error titled "Error transcoding with FFmpeg: Error: Output format hls is not available" appears when I try to include HLS in that.
I updated to the most recent version of ffmpeg. verified that it possesses hls. ffmpeg static was tried. Not working at all.updated version installed. FFMpeg static was tried.
Why does it say "There is no output format available in hls"?
my ffmpeg installed in C i will provide my full code:
Note:In Mac this code (...)
17:38
I am practicing UDP socket programming. My code's functions are below.
Connect Server-Client and send "hello" message each other (it is working).
Then Server is sending video file to client (problem).
Transfer video file to client is working. But it is written in binary so I can't open the video.
So I try to use ffmpeg to convert the video, but it doesn't work.
Is there something wrong in my code? How can I transfer a received file to a video file?
My environment is MacOs.
Server.c (Server Code):
#include
#include (...)
16:42
I have thousands of videos that are written by a device (RP116) in structured subfolders:
device > date > hour > minute.mp4
Every folder has up to 60 minute-long videos.
I would like to combine them into a single .mp4 file with ffmpeg in windows command prompt.
I can do this within a single folder with the following:
C:\\Users\\mjroa\\Desktop\\RP116\\20220513\\20>(for %i in (*.mp4) do ⓐecho file '%i') > mylist.txt
ffmpeg -acodec aac -hide_banner -f concat -i mylist.txt -c copy test.video.concat.mp4
The text file is in the format:
file (...)
15:47
I have an RTSP server running, and when im calling ffplay and streaming a video from that server, there's a specific title for this window.
i know i have the -window_title param for ffplay, but i want to know if its possible to change that name from the RTSP server side?
when running the RTSP server is there anyway to set the "name" that would be shown whenever someone is streaming using ffmpeg?
15:06
I have a bash script that executes whisper on all sound files in a directory. Whisper uses ffmpeg to decode sound files to a format it can handle. One of the files in the directory was corrupt and caused ffmpeg to fail. The first time I executed my script it returned 1 when it hit that file but when I try to reproduce the error it always returns 0.
Here is the log from the first run when 1 was returned:
Traceback (most recent call last):
File "/Users/db/Library/Python/3.11/lib/python/site-packages/whisper/audio.py", line 48, in load_audio
.run(cmd=["ffmpeg", (...)
11:32
My ffmpeg code produces 0 bytes chunks as well as 0 bytes manifest. can someone tell what may be the cause for that. AVPacket contains the data too. Whether the data is valid or not valid that's off-topic here, right? As it writes any data into the muxer right? But why I am receiving ffmpeg log like:
[hls ⓐ 0x617000084280] write_packet_common size:128 dts:192060 pts:192060
[hls ⓐ 0x617000084280] compute_muxer_pkt_fields: pts:192060 dts:192060 cur_dts:186030 b:0 size:128 st:1
[hls ⓐ 0x617000084280] av_write_frame: pts2:192060 dts2:192060
[hls ⓐ 0x617000084280] Opening (...)
13:36
I am currently using ffmpeg and attempting to convert multiple PNG files to MP4 video.
My command is:
ffmpeg -y -r 10 -i "videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/screenshots/%04d.png" -vcodec libx264 -pix_fmt yuv420p -vf "scale=1200:trunc(ow/a/2)*2","setpts=3.0*PTS" "videos-reporter/MC4xMzg3NDI1MTY2Mjg1MTk=/b8a7ee17d8ecfd199edbc5edc9691698/video.mp4"
Sometimes, I'm unsure when the ffmpeg creates a 1kb empty video file that cannot be played.
[0-1] stderr: ffmpeg version N-47683-g0e8eb07980-static (...)
10:57
I have an HLS stream that seems to have the audio cut out and then return randomly. This only occurs on iOS devices, and Safari on Mac OS. It works fine on Desktop VLC, but not iOS VLC (as in, the audio never cuts out).
More confusing still - if we have multiple developers listening to the same HLS stream on different devices at the same time, we all hear the audio cut out and the return at the same time. So clearly something is wrong with the stream itself.
We create a dash stream from FFMPEG, and then create an HLS manifest in parallel.
transcoder
// Right now this (...)
10:33
ffmpeg -i ./first.mp4 -i ./first.mp4 -filter_complex "xfade=transition=circlecrop:duration=1:offset=4,format=yuv420p" -y output.mp4
FFMPEG version 6.1.1, the video is generated normally without any error prompts, but the generated video does not have any transition effects.
output
ffmpeg version 6.1.1-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig (...)
09:42
I want to create StreamYard clone, I knew till the part where we can start the livestream for multiple platform at once using RTMP links and ffmpeg, but I want to know to receive chats from platform.
I did livestream on YT and Insta but not able to figure out the chats part.
import http from 'http'
import path from 'path'
import spawn from 'child_process'
import express from 'express'
import Server as SocketIO from 'socket.io'
const app = express();
const server = http.createServer(app);
const (...)
07:06
The code works fine, but when using the command in guild the bot enters the voice channel but doesn't play music, immediately console gives: ffmpeg process 56560 successfully terminated with return code of 3199971767.
import discord
import youtube_dl
import ffmpeg
import requests
from discord.ext import commands
class music(commands.Cog, name = 'music'):
def __init__(self, bot):
self.bot = bot
self.is_playing = False
self.is_paused = False
self.music_queue = []
self.YTDL_OPTIONS = 'format': (...)
04:33
I'm trying to record video from my ip camera stream with ffmpeg in command line
fmpeg -rtsp_transport tcp \\
> -i rtsp://192.168.0.250/stream1 \\
> -c copy \\
> -map 0 \\
> -f segment \\
> -segment_time 60 \\
> -segment_format mp4 \\
> "/home/video/stream-%010d.mp4"
and got the next output:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu (...)
04:17
I'm trying to utilize my multiple processors for my webm conversion but no matter what I do the process is single-threaded and takes forever. Is this possible? Any sample conversion strings?
-threads 8
Just gets ignored. Thanks.
03:59
i'm trying to merge video and audio from ytdl-core with ffmpeg and export it to user in mp4. The output video apears without time (inifit duration) and can not seek or navigate to another point of the video.
app.get('/downloadmp4', async (req, res)=>
let url = req.query.url;
if (!ytdl.validateURL(url))
return res.sendStatus(400);
let title = 'video';
let info = await ytdl.getInfo(url);
title = info.videoDetails.title.replace(/[^\\x00-\\x7F]/g, "");
res.header('Content-Disposition', `attachment; (...)
03:42
I'm currently working on a online video website and i need to make a quick preview of videos using random timestamps and duration of the video.
Suppose the video is of 15 min then i want to cut out some parts like ->
1. from 00:00:40 take out next 2s
2. from 00:01:20 take out next 2s
3. ... and so on until the new video becomes 15s
How can i do this with fluent-ffmpeg in the nodejs project
Can i get the most efficient way of doing this without writing many output files and then concating them separately and removing then later
Only concating the (...)