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

Could not find codec parameters for stream 0

When I run this command: ffmpeg -y -i ./in.mp4 -c:v png -f image2pipe -thread_queue_size 1024 -r 25 -t 186.75 -i - -filter_complex overlay=0:0 -c:v libx264 -pix_fmt yuv420p -movflags +faststart...

linux: m3u8: how to manually download and create an mp4 from segments listed in .m3u8

I have an .m3u8 url i.e http://example.com/test.m3u8 I can download it by ffmpeg command: ffmpeg -y -loglevel verbose -i "http://example.com/test.m3u8" -c copy -f mpegts test.mp4 But i am trying...

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

error: opus in MP4 support is experimental, add '-strict -2' if you want to use it

I am trying to convert some MKV to MP4 with ffmpeg, and I keep getting the error below. Any thoughts? I have installed ffmpeg and installed: sudo apt install -y libopus-dev libmp3lame-dev...

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

Problem using FFmpeg to convert MKV with A/52 B audio (aka E-AC3) to AAC

I've got a number of MKV files which are (per VLC) encoded with A/52 B (aka E-AC3) audio codecs. I would like to convert these to AAC, but I'm having trouble doing this with FFmpeg. The command...

FFMPEG sync video from image2pipe with audio from RTMP

I have an rtmp url, and i need to put overlay using opencv and keeping audio. It works well, exept for syncronization between audio and video. with this command ffmpeg -re -y -f image2pipe -i - -i...

ffmpeg "Manifest too large" when downloading youtube video

TL;DR I'm trying to programmatically download a part of a YouTube video. The widely known procedure doesn't work for some videos and I'd like to overcome this situation. Context I'm trying to...

How to check if a video has sound in Python?

I would just like a True if a video has audio or False if it does not have audio. I feel like I'm almost there using subprocess. I get info about the video file running ffprobe and splitting the...

Using ffmpeg to livestream webcam video over UDP from Pocketbeagle running linux, what is missing?

I've been reading up on a lot of questions pertaining to ffmpeg and streaming a live feed from a webcam, and have gotten pretty close but I am just missing something small. I have a Pocketbeagle...

ffmpeg: consider increasing probesize error, but it is never satisfied

I was trying to use an Arch solution for streaming to twitch today through FFMPEG, but all of my attempts were in vain because of one simple thing on FFMPEG. it says that the probesize is not...

FFMPEG - Multi Track, Multi Channel file to discrete mono files

I have files which are multi track, and multi channel (ie, track 1 may be 5.1, track 2 may be stereo, track 3 may be stereo etc) I am looking to output every channel from every track into its own...

ffmpeg error MPEG-1/2 does not support 3/1 fps

Im trying to broadcast my desktop to web page via ffserver but Im getting this error MPEG-1/2 does not support 3/1 fps Error initializing output stream 0:1 -- Error while opening encoder for...

How to: stream with ffmpeg and nginx rtmp, Ubuntu

nginx installed with https://nginx.org/en/linux_packages.html in Ubuntu 18.04 sudo apt -y install curl gnupg2 ca-certificates lsb-release ; echo "deb http://nginx.org/packages/ubuntu `lsb_release...

How can I capture simple video input with audio from a capture device

I'm using ffmpeg on Arch linux and trying to convert some old video to digital. The setup is pretty straightforward and if I connect to the capture device with VLC I get the video and audio just...

FFMPEG keeping quality when reducing FPS and streaming over RTSP with rtsp-simple-server

I'm using the rtsp-simple-server (https://github.com/aler9/rtsp-simple-server) and feed the RTSP Server with a FFMPEG stream. I use a docker compose file to start the stream: version:...

how to add timeout of connection to ffmpeg command when retriving rtsp?

I used the following command to transfer a rtsp stream to a .mp4 file: ffmpeg -rtsp_transport tcp -timeout 5000000 -i...

FFMpeg returns error: Unrecognized option 'master_pl_name'

I used this command (described at the processing message bellow) on my application several times before and always worked well. Now returns that error. '/usr/bin/ffmpeg' '-y' '-threads' '12' '-i'...

FFMPEG Stream to Instagram Via instafeed.me OR YellowDuck

I'm trying to do video stream via RTMP to Instagram with FFMPEG I'm able to do it to facebook and twitter, but instagram is an other beast... when I create a live broadcast in instafeed or...

I want to merge mp3 files on ubuntu

I want to merge mp3 files into one file using this command : ffmpeg -i "concat:file_1.mp3|file_2.mp3|file_3.mp3|file_4.mp3" -c copy test.mp3 But i get this error : [mp3 @ 0x5629416b4880] Invalid...

ffmpeg x11grab to streamable format

2 FFMPEG process (1) generating a ffmpeg x11grab to a .mp4 (2) take the .mp4 and restream it simultaneously to multiple rtmp endpoints *ISSUE* the generated file in (1) have this error "moov atom...

external-downloader option not working as expected in youtube-dl

I was trying to download specific timestamps from youtube using youtube-dl as mentioned as mentioned here in the comments youtube-dl -v "https://www.youtube.com/watch?v=1I-3vJSC-Vo" -x -k...

FFMPEG loudnorm filter does not work in combination with silenceremove filter

I want to consistently normalize audio files for TTS model training. The output audio files should meet the following criteria: mono channel sample rate of 22050 Hz wav format no silence at...

ffmpeg: create .mp4 from .mp3 and .jpg

I've searched for the best way to do this and nothing seems to work. I'm using Ubuntu 20.04. ffmpeg -version: ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built...

Can not download a streamable m3u8 link with IDM and ffmpeg

This is the link: https://v13.phephim.xyz/vod/v2/packaged:mp4/6005b3591918ee01c9ef67e4/playlist.m3u8 It's ok to play the link with play-hls-m3u8 chrome extension or by the site...

Why can't I duplicate an MJPEG stream from a webcam to a V4L2 Loopback Device on Linux?

I'm trying to duplicate a USB webcam device V4L2 stream (/dev/video0) to a V4L2 Loopback Device (/dev/video99) at the highest resolution and framerate possible with the hardware available on a...

How to make ffmpeg re-encode an vp9 webm with alpha into a vp9 webm with alpha

I am trying to find optimal parameters for encoding a transparent video using ffmpeg in my scenario, and as a test, I have been re-encoding a pre-made transparent .webm (vp9 with alpha channel,...

bad ffmpeg performace compared to ffplay and VLC

I've been having bad performance with ffmpeg that I don't see with ffplay and VLC. I find this strange since ffplay uses ffmpeg under the hood. Simply if I stream an HEVC/h265 stream with ffmpeg...