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.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

split quadri audio file into 4 monos

I have a quadri audio file (one stream of 4tracks) and I would like to make 4 monos track from that stream/ ffmpeg -i TRACK-026.wav -filter_complex "channelsplit=channel_layout=4[Perche][MixHf][hf1][...
0
votes
0answers
10 views

Getting media duration with ffprobe after decoding with FFmpeg

With ffprobe, it's possible to get the duration of a media file: ffprobe -show_format 1064428_cityLights_HD_BG.mp4 [FORMAT] duration=10.010000 However, ffprobe only digs into the ...
0
votes
0answers
16 views

Having trouble obtaining the time from RTP Timestamps obtained through OpenCV

I am finding it a bit difficult trying to understand whether or not the hack around with FFmpeg and OpenCV really provided a RTP timestamp. My last post helped a little bit but got me stuck in trying ...
-2
votes
0answers
22 views

Streaming a video with serial port [on hold]

I need an application which is streaming an video recorded by an webcam over the serial port in c# I opened an port and can send some data over the port. I have access to the webcam and have an ...
-1
votes
0answers
9 views

How to give direct video and audio link in FFMPEG

I have a server B where am storing audio and video. I want to mux that audio and video in server A using FFmpeg. I tried below but it gives error. Any solution for this or should we copy the videos ...
1
vote
0answers
16 views

ffmpeg encode single input to multiple outputs simultaneously

Suppose I have a single input file that I would like to transcode into two different formats (ProRes and Mp4). Individually, the two commands I would use look like this: To convert it to mp4, I ...
-1
votes
0answers
19 views

ffmpeg 4.1.4 wav to mp3 error who can help me

[swscaler @ 0xc946d000] deprecated pixel format used, make sure you did set range correctly [mp3 @ 0xc9621600] Frame rate very high for a muxer not efficiently supporting it. Please consider ...
0
votes
1answer
19 views

ffmpeg concat video size smaller than original videos

I'm trying to merge multiple videos using ffmpeg but the output of concat is half the size of original videos. Below is the ffmpeg command, ffmpeg -f concat -safe 0 -i input.txt -c copy video.mp4 ...
1
vote
0answers
20 views

Convert audio from old video game

I have some audiofiles from an old video game in a very rare format, 22050 hz, 2 channel, 4 bit, PCM (not ADPCM). Is there any tool around to convert that in any modern format? I tried ffplay -ac 2 -...
0
votes
0answers
14 views

Using ffmpeg to split video files by size and by name and by name

Im trying to split a video by size but I dont know which code I have to use. And I want it listing output mp4 files as sorting for example name: Video 1 - Part(2).mp4, Video 2 - Part(2).mp4, Video 3 ...
-2
votes
0answers
10 views

Restoring corrupted video after recovery

I have recently recovered the content of an old drive of mine using photorec. To my surprise, photorec recovered a lot of files with non-video extensions (.sqlite, .apple, .pdf, .torrent...) that ...
0
votes
0answers
11 views

Subprocess not working when called in atom

I am running python3.6 in Atom using the package 'script' on Ubuntu 18.04. I am trying to cut videos using ffpb (basically ffmpeg with a progress bar instead of verbose). The following code gives ...
0
votes
2answers
29 views

Why process output reader returns null data? When same code in other process works correct

I try to get output from ffmpeg process but cant get output. In another processes and commands it works correctly but output returns immideately when start! using (var process = new Process())...
-1
votes
0answers
17 views

Could not find codec parameters for stream 0 (Video: png, none)

I'm trying to overlap png over jpg but getting bellow error. I've tried in FFMPEG version 3.4.6 and GCC 5.5.0 ffmpeg -i Emily-Bett-Rickards.jpg -i abc.png -filter_complex "[0:v][1:v] overlay=(W-w)/2:(...
-1
votes
0answers
20 views

How to create a video from android programmatically

I want to create a video from my Android UiAutomator2 code, to test video editor. The image part is easily implemented using Bitmap: fun createDummyImageInMediaStore(): Boolean { // ...
-1
votes
0answers
19 views

Why we get co located POCs unavailable while encoding a video using ffmpeg?

I am trying to encode a video to m3u8 file. I am inserting blackframes when the video has no source in between. I used the following command to encode the video. I found the options in ffmpeg website ...
0
votes
0answers
18 views

merge multiple videos to a single .mp4

I am using fluent-ffmpeg in nodejs to merge multiple videos in one single file but while executing I am getting an Error: cannot find ffprobe var fluent_ffmpeg = require("fluent-ffmpeg"); var ...
0
votes
0answers
30 views

TS file not playing hls.js

Need some help. Video loads in browser but never starts playing. I'm using hls.js to stream m3u8 playlist to the browser. And I use FFmpeg to create ts and m3u8 files. For FFmpeg : ./ffmpeg -...
-1
votes
0answers
10 views

ffmpg full album video - multiple audio files one after another

I am trying to write an ffmpeg command which will take an image (jpg) and multiple audio files (in this case, lets say 3 mp3 files) and create an mp4 video where each audio file comes one after ...
0
votes
1answer
18 views

ffmpeg - How do I capture AND rotate a video at the same time?

I need to record video from a USB camera using ffmpeg. The issue is that the camera is upside down and can't be repositioned, so I have to rotate 180. So far I'm using this command to capture: ...
-1
votes
0answers
15 views

How to demux an MP4 video and get its segments? [on hold]

I have an MP4 video. I want to demux it and then get its segments to have an mpd file like this. How to do it with MP4Box or ffmpeg?
1
vote
1answer
38 views

Modifying FFmpeg and OpenCV source code to capture the RTP timestamp for each packet in NTP format

I was trying a little experiment in order to get the timestamps of the RTP packets using the VideoCapture class from Opencv's source code in python, also had to modify FFmpeg to accommodate the ...
-3
votes
0answers
19 views

How to secure HLS video file for offline playback in react native

Hey currently I want to try to make an application to store our video and download it. I already encrypt the HSL Video file but to support full offline playback I would have to give the key along with ...
0
votes
1answer
24 views

Android NDK Cross Compile FFmpeg, dlopen failed: cannot locate symbol

Android NDK-r20 cross compile FFmpeg4.2 success, but my app crash with UnsatisfiedLinkError: dlopen failed: cannot locate symbol __aeabi_idiv This is the ffmpeg4.2 source code with my "...
-1
votes
1answer
25 views

Trying to combine 2 FFmpeg commands

I have 2 FFmpeg commands which I need t combine, for the sake of speed. This one builds a simple slideshow using a list of images located on my remote server. ffmpeg -y -f concat -safe 0 -...
-2
votes
0answers
12 views

ffmpeg Video progressive automatic zoom in and out [on hold]

I need to implement the effect of zooming in and out for video. Two operations are needed. The first operation is to set the zoom to zero at the beginning of the clip, and by the end of the clip ...
-1
votes
0answers
18 views

ffmpeg How to record video without interruptions

Recording http streams video y audio and through ffmpeg using this code ffmpeg -i "url" abc.mp4 But after a few minutes it interrupts Could it be caused that the http flow loses signal for a few ...
0
votes
1answer
23 views

Accidentally overwrote dylib files to usr/local/lib by copying lib from application bundle

I overwrote some of my dylib files in /usr/local/bin/ and now I'm having issues running a program. Is there a way of restoring these files back? The program ffmpeg was running fine for me. Then I ...
-2
votes
0answers
17 views

FFMPEG color to transparencyq

I am trying to convert a mp4 video with a completely uniform pink color to a mov file seuch that the pink color is transparent. I have run: ffmpeg -i input.mp4 -vf "chromakey=0xf25b98:0.01:0" -c ...
0
votes
0answers
22 views

How to import .pc from a pkgconfig folder using cmake?

I am currently building FFmpeg as an external project. FFmpeg builds correctly and the library is stuck inside an appropriate lib folder. And inside that lib folder a pkgconfig folder is placed inside ...
0
votes
0answers
19 views

Can only save animation in matplotlib with default parameters

I keep getting this error when trying to save my animations in matplotlib: import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation plt.rcParams['animation....
0
votes
0answers
16 views

How to create a random video from a random picture annd random audio file

I am working on a batch conversion process where I need to add a random picture (a .jpg) on a random .mp3 and make an .mp4. This is the code I am using in terminal Mac OS X putting all the .mp3 and ...
0
votes
0answers
14 views

Use lutyuv to calculate u component from y component

In FFMpeg I use as filter lutyuv="y=0.000018712*val*val+0.0027334*val+1.3141:u=gammaval(1.09)" This works well. Now I want to calculate u value as a function of calculated y, something like u=1....
-1
votes
0answers
36 views

Issue in installing ffmpeg on macOS 10.11

I am installing ffmpeg on macOS 10.11. using following command, brew install ffmpeg but always getting following error. Error: An exception occurred within a child process: ChecksumMismatchError:...
-2
votes
0answers
14 views

How to zoom in and out of a video using ffmpeg

I want to zoom in for x amount of time then zoom out back to the original scale using FFmpeg is this possible I want to zoom in 150% for 5 seconds then zoom out to 100% for another 5 seconds
0
votes
0answers
11 views

I want to convert relay server nodejs http->websocket code version to java netty to spring-websocket

I want to rewrite this example(https://github.com/phoboslab/jsmpeg/blob/master/websocket-relay.js) to java using netty and spring-WebSocket. This nodejs example's HTTP server get the media data from ...
-2
votes
0answers
17 views

FFmpeg “Illegal instruction” Raspberry Pi Zero W

I've been struggling with having FFmpeg run on Pi Zero W, as a newbie I can't say where the root of the problem whether its the compilation configuration of the FFmpeg or maybe the syntax of the ...
0
votes
0answers
23 views

How to link libav* libraries of FFmpeg in my own program?

I am new to FFmpeg, now I want to use the FFmpeg codec compenet in my own program. I've followed the guide on FFmpeg wiki to complie the libraries the FFmpeg and get them done. But when I compile my ...
0
votes
0answers
18 views

Is there a way to reduce cpu usage when using colormatrix filter in ffmpeg

I am making a recording program using ffmpeg. I had a problem that a recording video's color is incorrect, and I found an option -vf colormatrix=bt601:bt709. This option work nicely, but has cpu usage ...
0
votes
1answer
49 views

FFMPEG HLS streaming and transcoding on the fly to HTML player - video duration changes while transcoding

I am trying to make a video streaming server and watch videos directly from web browser. The idea is to make the server to stream video from remote server, transcode with different audio format in ...
-1
votes
1answer
20 views

ffmpeg for windows: error when concatenating videos

i have extracted a few clips from a video file of resolution 1920x816 called ca0.mp4...ca9.mp4 using the command ffmpeg -i ./ca.mkv -ss 00:53:24 -t 00:01:30 ca0.mp4 Then i created a black video ...
-1
votes
0answers
20 views

How to remove or attenuate background noise in videos

Tried removing typical background noise (low volume TV, indoor and outdoor air-conditioner/fan) from videos using following code. Didn't work. Would appreciate advice on how to do this. ffmpeg -...
0
votes
0answers
25 views

Sync a video stream at two separate receivers

I want to use two separate receivers which both are receiving the same video stream. One of the receivers does some processing tasks and pass the results to the other receiver (using web-socket or a ...
-1
votes
0answers
13 views

ffmpeg - How to antialias webp/gif

I am trying to use ffmpeg to produce an animated GIF/WEBP from a set of pngs. However, the output images have jagged edges that I would like to smooth out somehow. The set of PNGs are of a rotating ...
-1
votes
0answers
12 views

How do I draw a line over a video whose width equals the current timeframe using FFMPEG

I am trying to draw a line across a video to show the progress of the video. Using FFMPEG I am able to draw a line using this code ffmpeg -i video.mp4 -vf drawbox=w=10:h=10:color=pink:t=fill ...
0
votes
0answers
18 views

Why motion vector extracted from b frames are unchange?

I am writing c codes to extract motion vectors from b frame in MPEG4(Part2) compressed video format. But some motion vector seems wrong. I use a raw video clips, using the extract_mvs.c from ffmpeg 4....
0
votes
1answer
21 views

Python: How to use ffmpeg to read videos(video file or rtsp) and display them using OpenCV?

I know that if we want to read video file or USB camera or rtsp stream, we can use cv2.VideoCapture. But for some reason, I want to use ffmpeg to do the thing and process obtained images using opencv. ...
0
votes
1answer
15 views

Extract the English audio of video file using ffmpeg

I like to extract the English audio stream of a video file using ffmpeg. Also, if the file doesnt have an English audio stream, I want to extract all audio streams. Preferably with a language suffix ...
-1
votes
0answers
40 views

How can I apply more than one colorkey filter, in an additive way?

In my video there's an object that has shades of yellow (more orange-like) and a solid yellow as background. I need to output all frames into a png sequence, using many colorkey filters to replace 4 (...
-1
votes
1answer
25 views

How can I overlay a video ontop of background image?

I have a command which creates waves ontop of a background image: ffmpeg -y -i "Assets/Screens/new.png" -i "Temp/video.mp4" -i "Temp/audio.mp3" -filter_complex "[2:a]showwaves=mode=cline:s=255x81:...