FFmpeg saving rtmp live stream cuts off after 3 minutes

I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is: ffmpeg -re -i "rtmp://<ip addr>/livestream live=1" -f h264 test.flv However, I have tested this...

webm to mp4 conversion using ffmpeg

When I try to convert a webm file to mp4 the output is very very choppy and it appears as if many frames have been dropped by ffmpeg I used the following commands to convert ffmpeg -i movie.webm...

Speed up start of a stream recording with ffmpeg

I try to record a video stream (from the web or a local webcam stream) and save it to a .mp4 / .flv file. I use FFmpeg with the version"N-59696-gc0a33c4". The problem isn't the recording of the...

Android ffmpeg Issue :- <filepath> : No such file or directory

I am using FFMPEG tool to merge IMAGE & AUDIO files. Its working only in SAMSUNG GALAXY TAB II. I had tried in many android devices & emulators but unfortunately it had not worked in any of...

ALSA buffer xrun induced by low quality source in ffmpeg capture

I am attempting to transfer some old Video 8 tapes to my computer, though an EasyCap USB stick and the motherboard's sound line-in, on Ubuntu. I believe the arguments are correctly laid out below...

How can I fix a damaged MP4?

I have a video of just under an hour recorded but it appears to be damaged somehow. The file format is h264 MP4 and the file size is 2.3 GB, so I'm confident that the information is there, just...

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

HTTP Livestreaming with ffmpeg

Some context: I have an MKV file, I am attempting to stream it to http://localhost:8090/test.flv as an flv file. The stream begins and then immediately ends. The command I am using is: sudo ffmpeg...

ffmpeg UDP stream error (subtitles)

I have HTTP stream which I like to convert to UDP: http://192.168.1.44:8001/1:0:1:1F8:1B:2C0:E080000:0:0:0: The Video, Audio and Subtitle work perfectly If I try to open this stream in VLC n...

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

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

Send chunks from MediaRecorder to server and play it back in the browser

With the following code in NodeJS I'm able to play a webm file served from server: app.get('/video', function(req, res){ res.writeHead(200,{ 'Connection': 'close', ...

FFmpeg on aws lambda - Invalid NAL unit size

I am trying to run below: 1- generate mp4 from one png image and a mp3 file 2- overlay another png image on top of the previous video A-On my local environment (mac) things work...

Regular expression to parse ffmpeg info

Here is my code: Input #0, mpegts, from 'tcp://127.0.0.1:3456': Duration: N/A, start: 1809.522000, bitrate: N/A Program 256 Metadata: service_name : AIR_CH_521_6M ...

FFMPEG NVENC HEVC to H264

I try to transcode a HEVC 4k broadcast down to 1080p H264. HEVC 4K to HEVC 1080p works but when I try hevc to h264 i get "No NVENC capable devices found" Now I am wondering is it not possible to...

FFMPEG on PHP could not open file

Currently, I'm running the latest FFMPEG (4.2.1) on MacOS Catalina. I'm trying to join multiple image to become an mp4 video using FFMPEG executed with PHP exec() here is my ffmpeg...

FFMPEG: How to manually select video quality from mpd manifest?

I want to ask what command should I use to select video quality from mpd manifest? mpd manifest...

ffmpeg Merge videos removing audio Error:setsar has a unconnected output

I am using below command to merge videos removing audio- -i /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20200501-WA0000.mp4 -i /storage/emulated/0/Download/g3cm1tt7qtd41.mp4...

ffmpeg: Can't convert file due to missing pixel format info?

I'm new to ffmpeg and i've been having problems converting this kux file to mp4. I've converted other kux files in the same way before without issues but it seems that this one isn't working...

How to stop ffmpeg m3u8 download if not getting any stream update?

I'm making a bash script to download m3u8 stream on particular time using crontab. Sometimes server-sent stream url is invalid or stream stops because server fails to stream. In both cases,...

improve video size ffmpeg webcam stream

I am trying to use a webcam Logitech Quickcam 9000 to do IRL stream from a Raspberry 3 using Raspberry Pi OS current version, I have FFmpeg installed and no matter what I try the video resolution...

FFMPEG php HLS and DASH conversion

I'm using this repo https://github.com/aminyazdanpanah/PHP-FFmpeg-video-streaming to encode video in hls and then reproduce on the front end. After creating all the hls segments correctly the php...

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 command execution never stops

I am trying to concatenate 3 videos of different resolutions and overlaying 2 videos as transition effects(though the chroma key color removal is not yet implemented) between videos using below...

FFMpeg - Overlay not being shown when enable=between parameter is added

I am using below command to add transitions effect between videos using overlays such that when one videos is about to finish, the overlay gets visible. Before showing overlays, I have to add...

How to to burn subtitles based image on video using 'overlay_cuda', ffmpeg video filter

I have to burn subtitles based image on video using ffmpeg(v4.3) and cuda, hardware accelerator. I want to use 'overlay_cuda' in filter complex. It is my command. ./ffmpeg -init_hw_device...

Using ffmpeg results in undesirable motion blur

I am trying to convert a video with the best quality possible. The problem is, no matter which command arguments I use, a motion blur appears (the first image is converted, the second is the...

ffmpeg: video parameters incompatible with DNxHD

I'm trying to convert mp4 to mov, however ffmpeg is having issues with the video conversion: Stream #0:0 -> #0:0 (h264 (native) -> dnxhd (native)) I've tried several of suggested configuration...

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

Problem recording RTP from mediasoup router using ffmpeg

I have a mediasoup server setup where I now need recording feature. To accomplish this I am doing the following - On getting the event to start recording I call this function : async...