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 ...

1
vote
1answer
24 views

Eliminate slow speed factor in ffmpeg and image-magic commands

The basic idea of these commands is to create a compare, (A compare has defined a jpeg from past and one from the present, combine such as they will slide on each other and show before after images.) ...
1
vote
2answers
25 views

Reduce file size of ffmpeg converted video

I have a .mp4 video with a file size of 540kb and a duration of 30 seconds before it was converted, but when I use ffmpeg to convert it to the file size became 21mb. What options do I need to add ...
0
votes
1answer
35 views

How to rotate mp4 files?

I have a mp4 file(already recorded) and want to change the rotation(including meta data) of the video. There is a way to do this using Hex Editor where in you find the track header(tkhdr) and replace ...
0
votes
1answer
14 views

ffmpeg slide transition from right to left

I am using this script as a reference: ffmpeg -loop 1 -i 1.jpg -loop 1 -i 2.jpg -loop 1 -i 3.jpg -filter_complex "nullsrc=size=480x600[v0];[0:v]trim=duration=5,scale=480x600,setpts=PTS-STARTPTS,split[...
0
votes
0answers
10 views

ffmpeg/mkvtoolnix - Remuxing new audio track to a specific 'track' position?

I'm currently working on using this 'nightmode downmix' script for ffmpeg which I found here. @echo off set PATH_MKVMERGE=D:\Programs\VideoProcessing\mkvtoolnix set PATH=%PATH%;%PATH_MKVMERGE% @echo ...
0
votes
0answers
9 views

ffmpeg 4.0.2 not stopping when network is down

I'm using ffmpeg 4.0.2 on ArchLinux (installed from Arch repository) I'm simulating a connection loss with rfkill block all while executing ffmpeg -rw_timeout 10M -i https://server.com/path/playlist....
0
votes
1answer
14 views

Python - getting duration of a video with ffprobe and splitting the video into pieces

I am trying to split a video with ffmpeg, implementing a python script. I am getting this error: Command '['ffprobe', '-i', 'path_to_my_video/MVI_0731.MP4', '-hide_banner']' returned non-zero exit ...
1
vote
0answers
11 views

Using FFmpeg to detect silence (but not absolute silence) in audio

I know that you can use silencedetect to get FFmpeg to return the silences in a file, but I want to exclude periods of absolute silence in order to return a silence that has an actual noise profile in ...
0
votes
1answer
12 views

FFmpegInterop.UWP or VLC.MediaElement for UWP apps

Which one is better choice for UWP? VLC is really easy to start to use but FFmpeg more complicated (read: difficult). But if we are thinking for example licenses, support of different format, casting, ...
2
votes
0answers
30 views

FFMpeg: extracting audio frames with avcodec creates noise

In my Android app, I implemented the FFMpeg library, and try to use it so I can extract audio samples from an audio file on the fly. Here is what I did (I simplified the code here so it's easier to ...
0
votes
0answers
14 views

OpenCV: FFMPEG: tag 0x34363268/'h264' is not supported with codec

After installed opencv like on Mac OS 10.13.6: conda install -c conda-forge ffmpeg conda install -c conda-forge opencv And using fourcc = cv2.VideoWriter_fourcc('h', '2', '6', '4') in videowriter I ...
0
votes
0answers
8 views

Encoding Closed Captions in FFmpeg (in code)

Does FFmpeg support Closed Captions encoding or any other captions within video stream? If yes, how one can achieve that within a code? I'm trying to encode subtitles, but I can't use a separate ...
0
votes
0answers
20 views

many codecs are missing in ffmpeg 4.0.2,what to do about it?

I recently built ffmpeg 4.0.2 as shared libraries for including into android project using tutorial this tutorial:enter link description here build was successful but my libs as missing several ...
-2
votes
0answers
21 views

FFmpeg: Image scrolling vertically?

I want multiple images to move vertically, and need to stop video for 5sec after each slide without bg. How can I change i achieve this? Although i had achieved it for single image. ffmpeg -loop 1 -...
0
votes
1answer
19 views

How can I create a video from a background.png and list of image _*.png (each image_001.png, image_002.png)?

How can i do this with FFMEG? Input : a background image : background.png List of images frames: image_001.png,image_002.png ...(each image is a frame) Out put: video.mp4 with all frames have ...
0
votes
0answers
9 views

Errors in compiling FFmpeg for windows10/aarch64 using Microsoft Visual Studio 2017 Preview edition

I am trying to compile FFmpeg (the Chromium version) for Windows10/Aarch64 configuration using Microsoft Visual Studio 2017 Preview community edition. I am running into errors in the assembly files as ...
0
votes
0answers
11 views

ffmpeg posting to nginx hangs after 90 minutes

I'm using a very simple program to push an ffmpeg stream from my raspberry pi camera to a nginx server. However, it fails after 90 minutes, with almost every single Raspberry Pi I use (I have this ...
0
votes
1answer
22 views

FFMPEG Concat Audio at timestamp

I'm attempting to concat two mp3 audio files (fileA and fileB) at a specific timestamp for a specific duration only. Such that the audio in file A is replaced with that in file B for the ...
-1
votes
0answers
8 views

Nginx RTMP/HLS - stream to ffmpeg and output HLS

At this point my solution is working but only as RTMP, i can watch perfectly my stream using the URL: rtmp://X.X.X.X:1935/show/name But the problem is that my LG Smart Tv which uses WebOS don't ...
0
votes
0answers
13 views

How to resize video file using “ffmpeg_resize” function in python?

I was using the following code for resizing a video. Here I used ffmpeg_resize function. As I run the code I get an error message that says res is not defined. But in the argument list of the function,...
0
votes
1answer
11 views

Calling ffmpeg.c's main twice causes app crash

Using FFmpeg 4.0.2 and call its ffmpeg.c's main function twice causes Android app crash (using FFmpeg shared libs and JNI) A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20153 ...
0
votes
1answer
34 views

Python script doesn't work properly when ran through terminal, but works fine in Jupyter and Visual Studio

I have a script to extract the audio from all video files in a folder. The folder with videos is located at: /Users/MyName/Downloads/Video_Audio_files When I try to run it through terminal and I'm ...
0
votes
1answer
15 views

FFMPEG image overlay zoompan leaving shadow

I have the code for adding many images overlay to a video. It works fine, but since every overlay a white shadow of the image is kept until the end of the video, like this: As you can see, a white ...
0
votes
0answers
9 views

Restart ffmpeg on loss of stream

I record a rtmps stream with ffmpeg, occasionally the stream drops out for various reasons (isp failure, network problems) Ffmpeg stops and I have to manualy restart it. Is there a way to monitor for ...
0
votes
0answers
16 views

How to convert WAV to HLS with php-ffmpeg library?

I started the use of the library php-ffmpeg ( https://github.com/PHP-FFMpeg/PHP-FFMpeg ), but I could not find examples of conversion to HLS with audios (in my case, WAV files). How do I make this ...
-2
votes
0answers
21 views

ffmpeg second text at end of first text [on hold]

In FFMPEG, I want to add two text. Second text starts at end of the first text. I want to add drawtext at the end of another drawtext like below image. But the problem is i can't find width of first ...
-1
votes
0answers
19 views

How to convert an URL S3 picture to video

I have some pictures stored on an S3 bucket and I need to display them as video streaming on my website. I don't know how to do it and if I have to do it in the backend side or frontend. I hear ...
-1
votes
0answers
11 views

how to check the number of duplicated frame for video 1sec ( about 30frames ) from video start and want to apply this for mpdecimate

How to check the number of duplicated frame for video 1sec ( about 30frames ) from video beginning point? I want to apply this for mpdecimate with audio. Some videos have three duplicated frames, some ...
1
vote
1answer
12 views

how do I only output a single video stream per HLS output

I have successfully output 3 HLS output using -map 360, 720 & 1080p. My source file is 540p. once generated I use ffprobe on the newly created 360.ts, 720.ts, and 1080.ts and notice that there is ...
0
votes
0answers
15 views

How to generate video preview thumbnails for use in VideoJS?

I moved over to VideoJs (html5) and need to figure out how to generate thumbnails for the seekbar. I have tried using videojs-thumbnails, however that requires having a preloaded vtt file with a ...
0
votes
1answer
10 views

FFMPEG not able to listen for rtmp and turn it into HLS

Based on my understanding, this command should work... ffmpeg -listen 1 -i rtmp://my-host-name.com:8000/thing/input.ts -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 30 -profile:v baseline -...
0
votes
0answers
21 views

ffmpeg - HDR to SDR - Unable to find a suitable output format for 'format=gbrpf32le'

I'm on windows 10 using ffmpeg 4.0.2. I found the script for HDR to SDR [here][1], but when I run the script from the bottom of the page: ffmpeg.exe -i input.mkv -vf zscale=t=linear:npl=100,format=...
1
vote
1answer
52 views

Why do I get “error: invalid instruction mnemonic” when compiling FFmpeg for Android?

I'm trying to compile FFmpeg 4.0 for Android using clang from the NDK (r18.1.5063045). My host architecture is Mac OS. Here's my configure command: ./configure \ --target-os=android \ --arch=armv7-...
1
vote
0answers
12 views

Mask an Image over Video in Android

See the Example image shown above. Y is a video having chrome key color inside it(here RED Color). X is an image to be clipped on video chrome key and Output is shown in the image. Now the problem is, ...
0
votes
0answers
13 views

How to concatenate two videos (one without audio, one with audio) with FFMPEG

ffmpeg -i video1.avi -i video2.avi -filter complex “[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]” -map “[v]” -map “[a]” output_video.avi video1.avi ---> this video don't audio stream, ...
0
votes
1answer
36 views

Create Concatenate Text File Using Windows Powershell (FFmpeg)

I'm trying to using Windows Powershell to create a file list to be used for concatenation in FFmpeg, basically just list all avi files in a given directory but formatted correctly. Currently this is ...
0
votes
1answer
23 views

Unable to play webM file on chromium with Media Source Extensions. Works in firefox and vlc

I'm currently trying to implement a video player using Media Source Extensions. Currently just a very simple proof of concept, following a tutorial I found here. I cloned their repo with all source ...
1
vote
0answers
20 views

ffmpeg with a python wrapper— need help avoiding multiple passes on a file

I would like some help refactoring this code to reduce the amount of passes ffmpeg must make on the file. I figure creating a single compounded ffmpeg command would do the trick, but I am kind of ...
0
votes
0answers
14 views

How to convert a 4K ProRes into different formats with FFmpeg?

I have a video which is 3840 × 2160 encoded using Apple ProRes 422. I need to convert it to the following sizes/codecs without losing in quality: ProRes 422 1080p; H264 4K; H264 1080p. I need to do ...
0
votes
0answers
17 views

how to remove duplicated video frame in ffmpeg ? but have to do not all video but some seconds section.

i have MTS(avchd) 2hrs video , but this video have duplicated frames range of between 00:00:00;00 ~ 00:00:00;20 , some time 3frames , sometime 2frames , sometime 9frames and so on ... so i have to ...
0
votes
0answers
30 views

How can I use ffmpeg with youtube-dl?

I have this "setup", but it stopped working (I did not change anything in the code): private Process StartFfmpeg(string URL) { string args = $"/C youtube-dl --ignore-errors -o - {URL} | ...
0
votes
1answer
45 views

How to execute a ffmpeg code on a GPU without using the command line?

We have written a short code in C code to read a video file, using common libraries as libavcodec, libavformat, etc. The code is running smoothly but only using the CPU resources. We'd need to run ...
0
votes
0answers
11 views

ffmpeg alpha and transition leaving a ghosting effect

I have the following ffmpeg command: //video from image and text insertion in one step ffmpeg -framerate 30 -loop 1 -t 5 -i 1.jpg -i 3D_Transition_02.mp4 -filter_complex "[0]format=rgba,scale=1280:...
0
votes
0answers
14 views

FFMPEG no audio / broken audio after concat

First, I'm converting from mp3 to mp4, using a jpg file as background: ffmpeg -loop 1 -i bg.jpg -i song.mp3 -c:a copy -c:v libx264 -shortest output.mp4 Then, I'm trying to concatenate multiple mp4 ...
0
votes
0answers
24 views

FreePascal FFmpeg started by TProcess stops working

I create TPorocess for ffmpeg to stream a video from /dev/video0 in Linux Ububntu 14.04. After 5 minutes of work the stream send stops and on the receiveng side (ffplay) the picture freezes. The ...
0
votes
1answer
68 views

how to remove duplicated frame from 00:00:00,00 to 00:00:00,25 section not overall with mpdecimate filter?

how to remove duplicated frame from 00:00:00,00 to 00:00:00,25 (00frame ~ 25frames)section not overall with mpdecimate filter ?? normally H264 video have some duplicated frames on video start ...
0
votes
0answers
12 views

Record region of screen using FFMPEG?

I am looking to record a defined area of the screen at as high FPS as possible. I then need to extract the milliseconds for each frame. I was looking at FFMPEG and found that it has (or had...) an ...
0
votes
0answers
15 views

How to load a custom java module into Wowza Streaming Engine?

I've followed the tutorial below step by step, however, the module I've created does not appear to load or execute, as I'm not seeing any log entries relating to the getLogger calls in the Wowza ...
0
votes
0answers
15 views

ffmpeg - How to replace a segment of audio in a video with audio from an audio file?

I have video.mp4 of duration 1:25:53. I want to replace the audio from 5:16 - 8:08 with audio from audio.mp3 duration 3:03. (The last part of the audio can be clipped in order to fit into the 5:16 - 8:...
0
votes
0answers
10 views

OpenCV CUDA VideoReader RTSP video play UNSUPPORTED Format Issue

I am trying to play an rtsp stream with OpenCV 3.4 built with CUDA 9.1 in C++. I have enabled FFMPEG flag while building OpenCV, however getting OpenCV error like: OpenCV Error: Unsupported format or ...