Questions tagged [ffmpeg]

Only questions about programmatic use of the FFmpeg libraries, API, or tools are on topic. Questions about interactive use of the command line tool should be asked on Super User or Video Production. FFmpeg is a free, open source project that produces libraries and programs for handling multimedia data.

0
votes
0answers
2 views

record webrtc steam from mediasoup v3 with ffmpeg

I am using mediasoup v3 and wants to record the webrtc video stream on the server. I created a plain transport and then a consumer. The following is the debug log from my mediasoup server: created ...
1
vote
0answers
7 views

How To combining multiple filters in working ffmpeg code

For a project I'm using FFmpeg to edit a short video. At the moment I'm applying four different lines to accomplice what is want. 1:slow mo > input.mp4 - output1.mp4 2:overlay ...
1
vote
1answer
22 views

Using DirectX from subprocess executed by windows service

I need to execute ffmpeg process from windows service and capture it's standard output. It works fine until I use hardware acceleration. Because accessing DirectX from windows service is restricted, ...
0
votes
0answers
11 views

Best way to convert webm to mp4 using ffmpeg

Having problems converting webm to mp4 using ffmpeg. I have tried moving ffmpeg to the src folder and using exec($cmd,$out,$ret) on a php code i wrote. when i run the same cmd line on windows using ...
0
votes
1answer
8 views

How to combine two ffmpeg commands - adding blur bar and adding logo and subtitle?

I run the following two ffmpeg command lines to create videos with blur bar, logo and subtitle. Adding blur bars ffmpeg -i input.mkv -lavfi "[0:v]scale=iw:iw*3/4,boxblur=luma_radius=min(h\,w)/40:...
0
votes
1answer
12 views

FFMPEG | m3u8 playlist and ts chunks with current time

I want to create a m3u8 file named out.m3u8. It will create chunks ts files with the name: %H%M%S.ts. I tried this code and it creates ts files according to the current time, but I do not know how to ...
0
votes
0answers
8 views

Changing ffpmeg options while processing a stream?

I'm making a discord bot for my discord server, and one feature request I keep getting is the ability to toggle audio effects in the middle of a song. The code I have right now is saved along with the ...
-1
votes
0answers
16 views

Removing audio from video using ffmpeg is reducing the duration

I am using ffmpeg to remove audio from a video and to my surprise after removing the audio the duration of the newly created file is less than the original file. Below are the commands i used, ...
0
votes
0answers
20 views

how to make videothumbnail from the middle of the video?

I am using ffmpeg as my module in Node js app for making video thumbnails.the thing is , it makes it from the beginning of the Video. and some of them begins with a black frame so the thumbnail will ...
-1
votes
1answer
16 views

FFMPEG Steam Stream stop after a few min

I try set a video stream to STREAM via FFMPEG so far everything works fine but after a few min it just seem to timeout (at last the stream stops but ffmpeg still send everything) Here is the ffmpeg ...
0
votes
0answers
19 views

FFMPEG caching how to configure and get cache file names

I am using a c# WPF video player wrapper that uses FFMPEG. It is called FFME MediaElement. Using this i have been able to activate caching in FFMPEG using the "cache" https://www.ffmpeg.org/ffmpeg-...
0
votes
0answers
16 views

How to trim single ts file and concat with everything after with ffmpeg

I have a number of ts files (h264, AAC) and I want to quickly cut out a portion without re-encoding more than the first chunk and last chunk. Then I want to concat them back together and make an mp4. ...
0
votes
1answer
25 views

FFmpeg HLS single file extension and format by byte ranges

I'm attempting to take a 5-minute video file and produce a single-file HLS playlist with this command ffmpeg -i video.mp4 -codec copy -bsf:v h264_mp4toannexb -hls_time 4 -hls_flags single_file -...
0
votes
0answers
22 views

FFMEG Unable to find a suitable output format for '' (Convert Image To Video )

Unable to find a suitable output format for '' convertir (){ const video =' file:///storage/emulated/0/128150.jpg' RNFFmpeg.execute('-r:v 30 -i'+video+' -codec:v libx264 veryslow -pix_fmt ...
0
votes
0answers
19 views

ffmpeg very bad quality mp4 conversion

Trying to convert mp4 with ffmpeg, two passes, with -crf 50 and seems like it doen't impact on video quality. It's always very poor. '/usr/bin/ffmpeg' '-y' '-i' '/app/storage/7/02/f47a2133-d0fe-6e7f-...
0
votes
2answers
26 views

ffmpeg output Filename from multiple source

I want to have the output file to have same name from source ( for eg first filename from list.txt), how can I do it? This is the code I have which converts the all the .avi in folder to a single ...
0
votes
0answers
9 views

How to combine two .mka recording files to one stereo(dual channel) .wav file using FFMPEG

I have two .mka recording files both have Date Time Original and Channel Layout : stereo in their metadata. I need to mix this two stereo type files to a single stereo file of type .wav. The timing ...
0
votes
0answers
18 views

how to put php variable to convert to mp3

I am trying to convert mp4 to mp3 using ffmpeg. I want to upload the mp4 file from user then convert the same to mp3 if(isset($_POST['uploadimage'])){ $file_name = $_FILES['image']['name']; $...
-1
votes
1answer
23 views

Can i add solid background with center text in video as ending screen using ffmpeg?

I would like to create a video consisting of some text. The background should just be some color, I have already one video, In that i want to add solid background with text as just ending screen, but ...
0
votes
0answers
12 views

How to programmatically read an audio RTP stream using javacv and ffmpeg?

I am trying to read an audio RTP stream coming from ffmpeg in command line using javaCV. I create a DatagramSocket that listens to a specified port but can't get the audio frames. I have tried with ...
0
votes
1answer
10 views

How to synchronize HLS and/or MPEG-DASH videos on multiple clients using ExoPlayer?

I'm trying to guarantee synchronization between multiple clients using DASH and/or HLS. Synchronization between each client must fall within 40 milliseconds. Live streaming seems to be an obvious ...
0
votes
1answer
20 views

How to tag metadata m4v files using FFmpeg

So I'm trying to tag metadata to a video file m4v from the filename. However, I can't seem to find the answer in the man -h page and everything online shows how to pull the metadata from m4v. I've ...
0
votes
0answers
13 views

Advice on how to specify length of animated GPX video with ffmpeg/image2pipe

I'm working on a personal project involving an action camera that records GPS data alongside video from an image sensor. I found an open source projected on GitHub called 'trackanimation' that uses a ...
0
votes
1answer
32 views

Mix additional audio file with video(+audio) in ffmpeg

I'm trying to mix additional audio file with video which has also audio within. But the problem is that I already have complex ffmpeg command and don't know how to combine them together. This is my ...
0
votes
0answers
33 views

Running ffmpeg on command line not working

I would like to run a command over command line in Python. When I open cmd and issue the following command it works: ffmpeg -f concat -safe 0 -i C:\test\test.txt -c copy C:\test\out.MP4 Now I try to ...
0
votes
0answers
12 views

automatic generate list ffmpeg trimming video files [duplicate]

May I ask if there is an automatic way to input all the mp4 file names in the ffmpge code ? I have about 60 small video files that I need to trim, it is a pain if I have to keep entering individual ...
0
votes
0answers
20 views

Get motion vectors coordinates from next and previous frames durring transcoding in FFMPEG

Can someone tells me how can I get values of motion vectors for next and previous frames in FFMPEG during transcoding, please? I can use MpegEncContext* s->mv_table to have values of motions vectors ...
0
votes
0answers
20 views

ffmpeg Invalid data found when processing input

I'm trying to download a specific part of a youtube video with this code: step=`youtube-dl -g -f 'bestvideo[ext=mp4]' https://www.youtube.com/watch?v=pMntMsHTDZ0` ffmpeg -nostdin -i "$step" -ss 00:...
0
votes
0answers
16 views

I have created video using several images .. how to add fadein effect while every frame changing in video? [duplicate]

I am running this code for creating video. How to add fadein effect for every frame in the video? ffmpeg -r 2 -t 9 -pattern_type glob -i '*.png' single_video.mp4
0
votes
1answer
13 views

ffmpeg feeding mp4 file to rtsp stream

I am trying to feed a mp4 file from ffmpeg to rtsp stream using the command on centos 7: from console 1: ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 http://localhost:8050/feed1.ffm ...
0
votes
1answer
25 views

I am building ffmpeg now, but I always get an error after executing make

Configure parameter /-- ./configure --prefix=/usr/workspace/android --disable-static --enable-shared --disable-ffplay --disable-ffprobe --disable-htmlpages --disable-manpages --disable-...
0
votes
1answer
16 views

How to add audio to specific time [ffmpeg]

So far, I've manage to add audio to the video in ffmpeg but it is playing all along. The enable='between(t,start,end)' option is not working I have tried googling for possible answers but my approach ...
0
votes
0answers
20 views

How can I separate audio channels using libav C API?

I have some stereo audio files, and I wanna separate the left channel from the right channel and output the two channels into two different files/streams/containers using libav C API, how can I do ...
-2
votes
0answers
21 views

Dynamic/Moving crop on cameraview on Android? [on hold]

I use MLkit to get the position and bounding box size of the persons head in the cameraview, what is the next step to crop the video frame by frame?
0
votes
1answer
14 views

Although ffmpeg installed, unable to save mp4 file on disk

Although I have installed ffmpeg, matplotlib reports that MovieWriter ffmpeg is unavailable and the MP4 file created is empty. import numpy as np from matplotlib import pyplot as plt from matplotlib ...
0
votes
1answer
23 views

FFMPEG shows bitrate=N/A and doesn't send anything

I am trying to relay an stream from one rtsp url to another without recoding using this command: ffmpeg -rtsp_transport tcp -fflags nobuffer -re -i rtsp://xxx.xxx.xxx.xxx:554/[...
0
votes
0answers
15 views

Nginx rtmp exec command not working in macOS

The nginx rtmp exec command not working on my macOS. I checked the error log file and saw this error. 2019/05/19 19:45:24 [alert] 32986#0: kevent() error on 13 filter:-1 flags:4002 (2: No such file ...
0
votes
1answer
32 views

How to create m3u8 playlist from mp4 video url ( stored in amazon S3 ) and store the video chunks ( .ts files) and .m3u8 file back to another S3?

I am building an application where user can upload video and others can watch them later. I am aiming for HLS streaming of the video on the client side, for which the video format should be .m3u8. I ...
0
votes
0answers
33 views

PHP/FFmpeg can not save video

The error is: [Sun May 19 11:41:03.158185 2019] [php7:error] [pid 32405] [client 85.133.232.4:35172] PHP Fatal error: Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException: ffmpeg ...
0
votes
0answers
17 views

ffmpeg how to automatically detect video format

I am trying to download a bunch of videos from youtube: while read url channel do step=`youtube-dl -f 'bestvideo' -g $url` ffmpeg -i "$step" -ss 00:00:10.00 -t 00:00:01.00 -c copy frames/"...
0
votes
0answers
24 views

FFmpeg with libx264 skipped many frames during re-encoding

I found a strange problem with FFmpeg 4.1.3 when I re-encode this video file with libx264 and I use bitrate 8000k mode. ffmpeg -y -i src.mp4 -c:v libx264 -preset slow -b:v 8000k dst.mp4 Source video ...
0
votes
1answer
18 views

Trancsode and generate waveform data file in ffmpeg with a single command

I am trying to transcode and generate a waveform data file in the same command. I cannot figure out how to generate 2 output files from a single input. I want an mp4 file, and the waveform data file. ...
-1
votes
0answers
21 views

ffmpeg - remove sequentially duplicate frames and write removed frames with frame number to log file

I want to upscale an anime with waifu2x. But it would take multiple days. So to cut down the time required, I'd like to remove some duplicated frames first. I need some help in figuring out how to ...
1
vote
1answer
26 views

What does “has_b_frames” mean in FFprobe output?

I am checking a video file using ffprobe to findout if a video file has any b_frames or not, i can see ffprobe output shows “has_b_frames=0" , “has_b_frames=1" and “has_b_frames=2" when i check for ...
1
vote
1answer
16 views

Combine Two Commands (Get Video from Images)

I have 300 images and i wants to generate video from these images. i am new to FFMPEG so now i am using two commands to generate video from images. Command to generate video from images which also ...
0
votes
1answer
29 views

why zoom effects only applies to first image?

why zoom effects only applies to first image ? ffmpeg -i img%03d.jpeg -i 1.mp3 -vf zoompan=z='zoom+0.002':d=25*5:s=1280x800 -pix_fmt yuv420p -c:v libx264 -t 01:05:00 out12345.mp4 I have 3 ...
0
votes
0answers
22 views

Reason for write EPIPE error in my implentation?

So I currently have a small node.js express application for uploading images using sharp & thumbnails created from .mp4 videos using simple-thumbnail package/ffmpeg. The app works perfectly when ...
-1
votes
0answers
17 views

ffmpeg - How to auto crop Harry Potter moving newspaper style video?

The Harry Potter moving newspaper is like a video overlay on a static background. Here is an example youtube video: https://youtu.be/qQUUNmd3aco?t=1m17s the video starting from 1min, 17sec. HOWTO ...
0
votes
0answers
8 views

ffmpeg.autogen ffmpeg.avformat_write_header(ofmt_ctx, null) error -22

Error when writing the file header, when copying a video streaming to an mp4 file, when the source is a file it executes without errors, but when it is a url type rtmp: // it gives error -22 C# ...
0
votes
0answers
15 views

An error occured 'maybe incorrect parameters such as bit_rate, rate, width or height' when I encode my video

I always use this source code when I encode my videos. they are almost 1920x1080 videos. but An error occured when I tried to encode a 7680x3840 video. ffmpeg version 3.2.2 Copyright (c) 2000-...

http://mssss.yulina-kosm.ru