FFMPEG overlay issue for 2 videos, sound missing from second input

I'm trying to achieve an overlay with ffmpeg which take the two flv files as input and make a output and both videos playing simultaneously. things are working fine with below ffmpeg...

How to detect audio sampling rate with avprobe / ffprobe?

I am using libav 9.6, installed via Homebrew. $ avprobe -version avprobe version 9.6, Copyright (c) 2007-2013 the Libav developers built on Jun 8 2013 02:44:19 with Apple LLVM version 4.2...

Remove Rotate metadata from mp4

I'm trying to remove or modify a rotate param from my mp4 file using ffmpeg. Based on some google results, i've ended up with such command (i've tried a few more but none of them worked): $ ffmpeg...

Convert mp3 -> Video with static image ( ffmpeg/libav & BASH )

Some years ago I used the following bash script to get a video out of mp3's and one image (so the image in the video was freezed over the length of the mp3), which worked out fine. i=0; for file...

using FFMPEG with silencedetect to remove audio silence

I am trying to use the following command with the latest ffmpeg build to remove silence from my .mp3 files: ffmpeg -i SILENCE.mp3 -af silencedetect=n=-50dB:d=1 -y -ab 192k ...

Converting DAV to MP4 and OGG

I want to prepare WEB page containing films from security camera recorders. Each recorder transmit video files in DAV format so each film is converted to MP4 format by script, using such...

How to embed subtitles to .mp4 movie using ffmpeg

I'm trying to embed subtitles I wrote to a movie I created. I'm using FFmpeg version: ffmpeg-20150418-git-edbb9b5-win64-static with the command: ffmpeg -i in.mp4 -f srt -i subs.srt -c:v copy -c:a...

Convert yuv video to png frames using ffmpeg

I want to convert a yuv video to png frames using ffmpeg. The command I use is /root/bin/ffmpeg -i pirkagia_max_vid_qual_one.yuv -s 720x576 -r 25 -pix_fmt yuv420p -f image2 one/image-%3d.png I get...

ffmpeg conversion .dav to any video files

I am trying for days to convert .dav file (file generated by dvrs [image recorders]). I have tried several variations with ffmpeg and can not succeed. Command and console output: $ ffmpeg -i...

How to determine webm duration using ffprobe

My goal is simple , I have several webm files need to be concated, but first I need to determine their durations. It seems webm file are played as streams, so there is no way to tell the length of...

Merging two audio files in Android using FFMPEG

I'm working on an application that takes two audio files, and merges them into the respected channels. The way they are being equalized are not as good as I had hoped, So I want to adjust the...

No such filter in ffmpeg

I am trying to create the slideshow with below command. Here is the command I have executed: ffmpeg -loop 1 -t 1 -i /sdcard/input0.png -loop 1 -t 1 -i /sdcard/input1.png -loop 1 -t 1 -i...

Recording desktop with gdigrab ffmeg to mp4 file with too high video_size don't working

I try to recording my desktop with ffmpeg using the command : ffmpeg -f gdigrab -framerate 10 -video_size 1920x1200 -i desktop -pix_fmt yuv420p -vcodec libx264 -preset ultrafast output.mp4 The...

Is ffmpeg running in CPU or GPU?

It has been shown in the link https://dri.freedesktop.org/wiki/IntelPerformanceTuning/ Step 2: CPU vs GPU that if the CPU % is more than 90 then the app is running in CPU. While configuring...

How to save rtsp stream without packet loss by using FFMPEG

I am saving stream of live camera by using FFMPEG. When i am trying to save the video some data packets are loss so the video is not playing properly.I am using following FFMPEG Library The...

Adding 'timeout' flag to ffprobe/ffmpeg causes it to fail immediately

If I run ffprobe -timeout 20 -v trace -print_format json -show_format -show_streams 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4', the command fails immediately with a...

running ffmpeg via nodejs error

I'm trying to run ffmpeg from node, and I'm getting an error. Here is the code var exec = require('child_process').exec; var cmd = '/home/ubuntu/bin/ffmpeg -i /home/ubuntu/input.flv -s 640x480 -y...

After merge videos, the duration is too long - ffmpeg

I have file txt with content file intro.mp4 file video.mp4 file outtro.mp4 with duration by 10s, 178s, 13s. I use ffmpeg to merge 3 files into one with below command: ffmpeg -f concat -i...

Unrecognized option 'c copy'

I have been working on a script as a part of both learning process and creating handy tools. I am trying to loop over a list of video files to extract a certain part of each video on the list. By...

ffmpeg saves only first frame

I generated rotating pictures in Python and now I want to create an animation from it using ffmpeg. But the generated video includes only the first frame (viewed in VLC) and is way to small (half...

Speeding up/slowing down video ffmpeg

I want to change video speed using ffmpeg framework. I used this command for that: ffmpeg -y -i /storage/extSdCard/Video/1.avi -filter_complex [0:v]fps=50.0, setpts=0.5*PTS[v];[0:a]atempo=2.0[a]...

FFMPEG decoding too slow (avcodec_send_packet() / avcodec_receive_frame())

I'm using ffmpeg libraries to decode, scale, and re-encode video within an MPEG transport stream. I've just recompiled from source to v3.3.2 and changed from the old avcodec_decode_video2() API...

How to compress a video in React Native

Tried using react-native-video-processing by Shahen: Below is the code: compressVideo(source) { const options = { width: 800, height: 800, bitrateMultiplier: 3, ...

ffmpeg can't convert mp4 to mp3 Output file #0 does not contain any stream

I can't convert mp4 file to mp3 via ffmpeg. I tried these commands but they are not working and show the same error: Output file #0 does not contain any stream These are the commands: ffmpeg -i...

ffmpeg audio - video sync issue (audio ahead of video) - while screen recording using x11grab

While screen-recording using the below ffmpeg options I consistently get audio ahead of video, delay is in the order of few seconds ffmpeg cmd: ffmpeg -y -f x11grab -thread_queue_size 1024...

How can I convert any random byte string to a playable mp3 file in python3.6?

I have random bytes of data which I need to convert to mp3 format(although it might be noise). And I should be able to play the (noisy) mp3 file. from pydub import AudioSegment from pydub.playback...

How to solve issue with ffmpeg being stuck at 'Opening an input file'

I am using a capture card to capture HDMI audio from another machine. On my host, output of arecord -l is as follow: **** List of CAPTURE Hardware Devices **** Home directory not accessible:...

Have problems using FFMPEG to save RGB image sequence to .mp4

I render some images with OpenGL and need to compose them into a video file. Each of the images is a sequence of uint8_t values representing a sRGB color component (image array looks like...

FFMPEG "Segmentation fault" with network stream source

I use release: 4.2.2 (static) from "https://johnvansickle.com/ffmpeg/" Final code will be on "Amazon AWS lambda" Goal: use a url stream and add watermak Link to video:...

Unknown encoder 'libwebp'

I am FFMPEG installed on Cent Os 7.8. I am trying to convert the video into animation in webp format but It says Unknown encoder 'libwebp' I want to know how can I install libwebp and enable...