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
17 views

FFMPEG & YouTube Live - “Bad Video Settings” - Please use a keyframe frequency of four seconds or less

Trying to live stream to YouTube and from my perspective, everything seems to be working fine. However YouTube keeps giving me the following message: Bad Video Settings Please use a keyframe ...
0
votes
1answer
13 views

FFMPEG remux sample without writing to file

Let's consider this very nice and easy to use remux sample by horgh. I'd like to achieve the same task: convert an RTSP H264 encoded stream to a fragmented MP4 stream. This code does exactly this ...
-1
votes
1answer
13 views

Video - Could not find tag for codec wavpack in stream #1, codec not currently supported in container Could not write file MKV to MP4 with FFmpeg

Trying to convert an hour long MKV file into an MP4 using FFmpeg, but during the conversion process it keeps giving me this error: Could not find tag for codec wavpack in stream #1, codec not ...
0
votes
0answers
15 views

Reduce CPU when utilizing GPU to decode RTMP streams to still frames

I'm trying to connect to a RTMP stream (streaming at 30 FPS) and filter the input to 1 FPS and output it as rawvideo. I'm running the current ffmpeg -surfaces 8 -vcodec h264_cuvid -vsync 0 -i rtmp://...
0
votes
0answers
13 views

Can i change audio/video sync in a stream generated by ffmpeg, while it runs?

i am trying this: ffmpeg -v verbose -re -y -i syncTest.mp4 -af azmq,volume=1 \ -c:v copy -c:a aac ./output.mp4 then invoke echo 'Parsed_volume_1 volume 0' | ./zmqsend it works, audio is muted ...
1
vote
0answers
6 views

The ffmpeg webm_dash_manifest demuxer fails with webvtt subtitles

I am trying to create a DASH manifest using ffmpeg and I encounter some difficulties with the subtitles. I get the error [webm_dash_manifest @ 0x55e19db48180] EBML header parsing failed [...
0
votes
1answer
14 views

FFMPEG:Adding beep sound to another audio file in specific time portions

I've a scenario in which I need to modify certain portions of audio file.Currently,I'm able to add silence to the audio file at specific portions through FFMPEG audio filter -af.But is there something ...
0
votes
0answers
14 views

Screen Recording with FFmpeg-Lib with c++

I'm trying to record the whole desktop stream with FFmpeg on Windows. I found a working example here. The Problem is that some og the functions depricated. So I tried to replace them with the updated ...
-1
votes
0answers
21 views

NameError: global name 'caffe' is not defined [closed]

We have ffmpeg 2.8, opencv 3.1 and caffe in a docker image under the base of ubunutu:xenial. And our goal is to update the ffmpeg version from ffmpeg to ffmpeg 3 or ffmpeg 4. I have updated from ...
2
votes
1answer
67 views

Convert RGB Video to Gray Scale video for file size reduction

I am creating Color Video(RGB) using OpenCV in my application and generated video file needs to be uploaded to server. Color video file size is large enough to create bottleneck while uploading to ...
0
votes
0answers
15 views

MoviePy on EC2 Instance Super Slow

No matter what size EC2 instance I use, MoviePy.write_videofile() takes forever. I ran it on a t2.micro, c5.large, and c4.2xlarge and they all projected to take the same amount of time (~7 hours). I ...
0
votes
1answer
16 views

How to install ffmpeg for android studio?

Hi I'm trying to do a project in video processing. I want to demux and mux the videos from an mp4 container. I did it with MediaMuxer and all but now whenever i search everyone is recommending ffmpeg ...
0
votes
0answers
15 views

FFmpeg filter encodes take unreasonable cpu to decode and playback

I've got a 22 minute video clip that I'm trying to convert from bt2020 to bt709 with ffmpeg. I have a fairly large set of filters to do this: ffmpeg -hwaccel cuda -i "input.mkv" -c:a copy -c:v ...
0
votes
1answer
9 views

How to Stream With FFmpeg and NGINX RTMP

I'm trying to stream from OBS (open broadcast software) on my Windows PC to NGINX+RTMP also installed on the same PC. I have set a bitrate of 20,000Kbps in OBS which will be the foundation bitrate for ...
0
votes
0answers
8 views

How to insert emote-like images among text with ffmpeg?

I am using FFMPEG to recreate a twitch-like video chat for streaming overlay and wanted a way to insert twitch emotes into the chat that I have. The twitch emotes come in small png/jpg files. ...
0
votes
0answers
16 views

mp3/aac trim precision issue

Due to mp3/aac codec doesn't support that level of trim precision so im unable to get rounded container duration (without this 6 ms): ffprobe -v error -show_entries format=duration \ > -of ...
0
votes
0answers
17 views

Video, and image files merge using FFMPEG in android

I want to merge video and images in single video file like following with dynamic. For example: Video-1 + Image-1 (3 sec should be display) + Video-2 + Image-2 (3 sec should be display) ... So, ...
0
votes
0answers
22 views

How to randomize order in ffmpeg concat

I have everything made and everything working but I would like to see if It's possible to randomize the order of the files played in concat.
1
vote
0answers
25 views

discord.js playing audio on multiple servers

I made a test test bot for discord.js using Node.js / ffmpeg, to play a radio station in a channel on discord and there are no problems there, however i was thinking about how it would stream the same ...
1
vote
0answers
34 views

Anyone knows what might be the problem with this video output?

I am seeing the following scrambled output for a live stream when processing an udp input stream. I am using the recently downloaded ffmpeg from GIT. Stop and Start of ffmpeg command resolves the ...
0
votes
0answers
16 views

Convert *.OMG with FFMPEG

I would like to convert my old Atrac Files that I recorded with my Sony MiniDisc (and copied to my PC with the Sony Software SonicStage. I tried with FFMPEG but it seems to fail. [email protected] ~/...
-2
votes
1answer
13 views

when i build ffmpeg with cygwin there is an error occurs. How can i solve this?

build_android.sh file path NDK=C:/Users/asus/AppData/Local/Android/Sdk/android-ndk-r21 How can I solve this?
-1
votes
0answers
20 views

Create audio file from samples at defined positions

Im working on simple sequencer Android app and I want to implement export function for it. User can select delay between beats and select beats that will be played at same time. So for example: 1) 3 ...
-2
votes
0answers
24 views

when i build ffmpeg there is an error in command port. How can I solve this?

How can I solve this? I am new to android NDK.so , I did not know to build this file with command prompt. so, any one answer for this.
0
votes
0answers
19 views

How do I avoid out of memory when using ffmpeg-python?

When executing the following code, process ends up running out of memory. How do I avoid out of memory? import ffmpeg path_to_file = 'my_video.mp4' source = ffmpeg.input(path_to_file) # Memory ...
-1
votes
0answers
13 views

Reduce video processing time using FFMpeg?

Users of my app upload videos to my server and I process them to create different qualities, thumbnails and gifs etc. Which are then useful for mobile and web apps. It takes almost 15-20 minutes for ...
0
votes
0answers
29 views

How to stream an updating images sequence to rtmp server(youtube) with ffmpeg?

Want to stream an image sequence generated by blender to Youtube rtmp server. Currently using the following command to do so: ffmpeg -r 24 -f image2 -s 1080x1920 -i /root/sandbox/new/render%04d.png -...
0
votes
0answers
26 views

batch convert videos to gifs in ffmpeg [duplicate]

I want to batch convert mov to gif using ffmpeg on MacOS. Here is a script I use: for i in *.mov; do ffmpeg -i "$i" -i palette256.png -loop -1 -lavfi paletteuse -r 20 ${i%.*}.gif"; done But it ...
0
votes
0answers
16 views

Combine video segments and stream with ffmpeg

FFmpeg can save a video stream to disc as video segments with the following command (source) ffmpeg -rtsp_transport tcp -reorder_queue_size 8000 -i rtsp://192.168.10.203:554/11 -r 25 -vcodec copy -...
1
vote
0answers
26 views

Generete one second of black video and relative silence audio

How can I generate a black mp4 video with relative silent audio track with ffmpeg, I need the audio and video tracks to correspond to the duration of 1 second ffmpeg -f lavfi -i color=c=black:s=...
0
votes
0answers
24 views

What does 'dash' option in ffmpeg command do?

What is the effect or meaning of the -dash option in a ffmpeg command (extracting a track for DASH streaming) ? E.g this one : ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 audio.webm I ...
1
vote
1answer
24 views

laravel-ffmpeg - fopen(/tmp/laravel-ffmpegi340VY.mkv): failed to open stream: No such file or directory

Using the laravel-ffmpeg librabry to convert video file from .webm to mp4 aws s3 bucket url and using following code. $videoFile = '/courses/images/1579626678msr-2020-01-21T17-11-18-771Z.webm'; //= ...
1
vote
0answers
38 views

imageJpeg and FFMPEG in windows vs linux

I have a working code for converting image to a 5 seconds video using FFMPEG. The problem is, The code only works for downloaded images, FFMPEG doesn't convert image to video when image is generated ...
0
votes
1answer
42 views

FFMPEG cannot encode .MP4 to usable .Y4M RAW video: “Operation not permitted”

I am running ffmpeg version 4.2.2 on macOS Sierra and I cannot decode a RAW video. First I create the .Y4M video: ffmpeg -y -i inputfolder/GH012088.MP4 temp_raw_video.Y4M Then I try to input it to ...
0
votes
0answers
11 views

Unable to load FFMPEG library “java.lang.UnsatisfiedLinkError: dlopen failed:”

I am trying to build and run old ffmpeg project which, it was in eclipse and now i am trying to run it from Android studio, but app crash displaying below error. 2020-01-25 11:57:52.621 26360-26360/...
0
votes
0answers
21 views

Remove black frames and sync audio with ffmpeg

I'm trying to figure out a way to automatically process .mp4 or .mkv videos that have been manually edited to remove a bunch of segments, leaving many blank spaces (black frames with no audio). I want ...
1
vote
1answer
28 views

FFmpeg: Batch convert all audio (mp3) in folder to video (mp4) with album artwork

I'm looking to batch convert all audio (mp3) in folder to video (mp4) with album artwork. This for uploading audios to youtube. I have pretty much a working code but I want to automate the whole thing....
0
votes
1answer
36 views

ffmpeg live preview before saving video

I use mobile-ffmpeg for Android and it works fine, but I have an issue with a live preview before saving the video. For example, I create video with some filters and want to show result fo user before ...
0
votes
0answers
25 views

Trying to stream H264 with Janus Gateway to web browser

I have installed Janus-Gateway using the very comprehensive install instructions on an Ubuntu 18.04LTS machine. I have configured the streaming config file (janus.plugin.streaming.jcfg) with: ...
1
vote
1answer
23 views

FFmpeg : Overlay GIF Rotation and scale

I need to add multiple gif files as overlay to video. Overlay works but Rotating each Gif is not working somehow. command -y -i video.mp4 -ignore_loop 0 -i if4QEgLEtFRcbUBlnL.gif -ignore_loop 0 -i ...
0
votes
0answers
17 views

ffmpeg zoom in for 5 seconds, then zoom out for 15 seconds to repeat the entire video

I have 1 video, I want to watch 15 seconds, I will zoom in to 5 seconds to repeat the whole video Audio and video must be equal ffmpeg -y -i 1.mp4 -vf "scale=2*iw:-1, crop=iw/2:ih/2:enable='lt(mod(t,...
1
vote
1answer
50 views

Python Virtualenv & Youtube_dl: ffprobe or avprobe not found. Please install one

My goal: Download podcast as MP3 Used Python, Flask and Youtube_dl on Ubuntu 18.04 and Nginx I followed this tutorial to set up my server: Flask app with uSWGI and Nginx Point 1: Deployment was ...
0
votes
1answer
21 views

ffmpeg - trying to add a reversed section of original video to the back (boomerang effect)

I have a ffmpeg command as follows which basically scales the video down to 720p. Now i want to add a section to my command which will make a concatination of the video but in reverse. So that the ...
1
vote
1answer
24 views
+200

TCP or UDP? Delays building up on production for video stream

I am creating a video stream from a camera with FFMPEG and nodejs stream Duplex class. this.ffmpegProcess = spawn('"ffmpeg"', [ '-i', '-', '-loglevel', 'info', /** * MJPEG Stream */ '...
0
votes
1answer
22 views

ffmpeg's av_read_frame will block or not?

There is a question posted on StackOverflow that asks if there is any mode to wait until a valid data comes with av_read_frame: link. My question is the opposite: Can I be sure that this method will ...
0
votes
1answer
18 views

Same video Stacked horizontaly 5 times

I have one video and I would like to stack it horizontally 5 times. So output video would be one video file in which i would like to have the same video stacked horizontally for 5 times. Any ideas ...
0
votes
0answers
19 views

DiscordJS Music Bot Connects and Then Immediately Disconnects From Voice Channel

I see that questions similar to this one have been asked, and after following their solutions I still end up the same as I started. Below I have listed my code, a link to test it with a sample bot I ...
0
votes
0answers
21 views

FFmpeg concat demuxer and handling encrypted chunks

I'm trying to process a remote m3u8 playlist containing (a possibly encrypted) HLS stream. The output I'm looking for is a mp4 container with MPEG-4 inside. The playlist is a result of an ended live ...
0
votes
0answers
21 views

How can i capture microphone stream and change with ffmpeg?

I am using ffmpeg for chancing wav file with below code on python; song = subprocess.Popen(["ffmpeg", "-i", sys.argv[1], "-af", "asetrate=22050,aresample=44100,atempo=2", "-f", "wav", "pipe:1"],...
0
votes
0answers
24 views

Grab frame from video using JavaCV

I am using JavaCV to grab frame from Video. I can grab if video is in absolute path. But if video is in HTTP than JavaCV throw error. url = new URL("http://www.sample-videos.com/video/mp4/720/...