Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
51 views

Using ffmpeg, how can I split an incoming stream, one live web streaming, the other mp4 but in timed chunks?

I have a single mpeg-ts input stream, http://192.168.1.100/stream0, and I wish to do two things with this stream. One output is to be a hls multipart stream with m3u8 so apache can serve to local ...
Jon37's user avatar
  • 21
0 votes
0 answers
41 views

decreasing probesize on FFMPEG stops audio

I'm trying to setup an encode/decode pair across our corporate wan with the least amount of delay as possible. So far I've been able to get the delay down using -probesize but we've found any value ...
John Munoz's user avatar
1 vote
0 answers
98 views

Encode and Decode Decklink SDI with FFMPEG

Has anyone ever setup a encode/decode pair using FFMPEG and Decklink SDI Cards? (or any other capture cards). The end goal is to bring in a remote camera feed into the studio switcher so quality and ...
John Munoz's user avatar
0 votes
0 answers
19 views

FFmpeg fps detection bug?

I have ffmpeg setup which produces rtmp stream from remote rtsp stream. The rtsp stream comes from ip camera which support multiple profiles. Each profile has 1080p 30 fps, 1080p 15 fps. The weird ...
I have 10 fingers's user avatar
0 votes
0 answers
61 views

Can't stream two rtmp streams simultaneously on nginx server

I'm having a problem streaming two streams at the same time using nginx/1.22.1 and ffmpeg on raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux nginx....
Dinamo's user avatar
  • 1
0 votes
0 answers
47 views

How to stream integrated camera to Facebook using FFMpeg

I'm currently using this command to stream to Facebook: ffmpeg -f dshow -i video="HD User Facing":audio="Varios micrófonos (Realtek(R) Audio)" -c:v h264 -pix_fmt yuv420p -r 30 -g ...
Cesar LI's user avatar
0 votes
1 answer
153 views

ffmpeg fetching PTS/DTS for data packets incorrectly

I have captured a transport stream through TSP command Command: tsp -I ip port --source ip -O file stream_capture1.ts then using ffprobe, below is the output which is capturing correct stream Input #0,...
Parmesh Kumawat's user avatar
0 votes
0 answers
89 views

Streaming Dynamically Created .ts Files to RTMP Without Concatenation Corruption using ffmpeg

I'm working on a project where .ts video files are generated in real-time, and I need to stream these to an RTMP server without pre-concatenating them. Initially, I attempted using a named pipe and ...
Dhairya Verma's user avatar
0 votes
1 answer
148 views

Complex ffmpeg multi-encode/streamcopy/muxing scenario: is this actually doable?

I'm trying to do multiple muxing/re-encode/copy operations on an input video with ffmpeg and have run into roadblocks with the methods I've tried; before I continue testing, I want to confirm whether ...
rudds's user avatar
  • 3
0 votes
0 answers
46 views

FFMPEG Webcam YouTube stream configuration

I was hoping someone could take a look at this code and offer suggestions. BACKGROUND: I'm using a Raspberry Pi 4 & Logitech 1080p/30fps webcam to stream directly to YouTube. ISSUE: No matter how ...
Andrew Victor's user avatar
1 vote
0 answers
455 views

FFmpeg HLS conversion with HEVC and fmp4

I've tried everything but I can't get this to work: I'm trying to convert a .mkv AVC video to HLS with HEVC codec, also creating two streams for 1080p and 720p quality, and the command I came out with ...
mrpino's user avatar
  • 11
0 votes
0 answers
570 views

Transcode h264/mjpeg with new resolution as rtsp mjpeg

I have the problem that my IP cam (Dahua) cannot stream 640x480 as sub-stream to feed my 2N Verso as external camera. It only supports 1280x720 or a 704x?? and 320x288. I played around with FFmpeg and ...
Martin's user avatar
  • 1
0 votes
0 answers
58 views

How do create a dynamic delay fix with MPEG-TS?

My media player can display a couple of videos (origin video - Multicast address, video stream is in MPEG-TS) Whenever I play both video streams I see a delay in one of the streams. I would like to ...
david blacheow's user avatar
0 votes
0 answers
376 views

When I attempt to live a video in an infinite loop using the ffmpeg command, it automatically terminates after a few hours

When attempting to continuously loop a video using the ffmpeg command with the following syntax: ffmpeg -re -stream_loop -1 -i abc.mp4 -c copy -f flv rtmps://abc.xyz/..... I encounter an issue where ...
Isteyak Ali's user avatar
0 votes
0 answers
400 views

ffmpeg - Jitter when streaming audio over RTP

So as a disclaimer, i'm trying to do something with ffmpeg that may be at the limit of what can be achieved. However, even though it's not possible, i would like to understand why. What I want to do ...
Nicolas Floquet's user avatar
1 vote
0 answers
158 views

Sending and receiving ffmpeg video stream through USB to TTL converter

I need to transfer video signal through USB to TTL converter from one VM and receive it on other USB to TTL converter then display the received stream on second VM (the bitrate on converters are ...
Tomas Jepimachov's user avatar
0 votes
1 answer
173 views

Multicast from LAN to WAN

I'm trying to transmit a multicast stream over the WAN. I know the NAT cannot allow this. For this purpose, I tried to use one Raspberry with two Ethernet interfaces: The internal one and another one ...
Fabio Antonini's user avatar
1 vote
1 answer
438 views

Streaming to Facebook Live with ffmpeg

I've set up an RTMP/RTSP streaming-service with MediaMTX on my desktop. From OBS Studio, I'm then streaming to: Server: rtmp://localhost/ Stream Key: stream This leaves me with 2 streams: RTMP: rtmp:/...
Daniel Frank's user avatar
1 vote
1 answer
152 views

Encoding multiple live channels

I have a code working that encodes a UDP live channel into an HLS stream using m3u8 container. My question is, is there a way to simplify doing multiple channels, and ensure each is the same quality ...
bv3469's user avatar
  • 11
1 vote
1 answer
474 views

Stream camera video with ffmpeg in Firefox via dash.js

I am trying to stream live video from a camera using ffmpeg to a browser. I have found several questions about this on StackOverflow and here, but they all pertain to creating a video file from a ...
Spencer Williams's user avatar
0 votes
0 answers
85 views

Issues With Combined Audio/Video Capture with FFMPEG

I am making an application where I am using FFMPEG to output a specific window on my computer. The video side works really well but starts struggling severely when I add audio into the mix (no pun ...
Austin Althouse's user avatar
0 votes
0 answers
81 views

How to fix broken mp4 and retain all streams including gyrodata?

I think I have tried just about all open source projects on github but I can not get anyone to do exactly what I want. I have a SMO 4k which is based on Insta360 R camera that suffered batteryloss, ...
Tor Suneson's user avatar
0 votes
0 answers
163 views

h264_qsv is choppy when live streaming

I am trying to do live streaming of video games using h264_qvs, but is choppy when compared to libx264. Here are some variations of the ffmpeg command I am running: Variation 1 ffmpeg.exe -y -hwaccel ...
Devin Dixon's user avatar
1 vote
0 answers
295 views

ffmpeg with libopenh264 Is blurry

I am trying get live streaming using libopenh264 near the quality of libx264, but I am running into the quality issues. Here is a live stream standing still: And here is image when there is fast ...
Devin Dixon's user avatar
0 votes
0 answers
162 views

buffered stream and FFmpeg seek

Due to memory usage, we need to use a buffered solution to load a small chunk of blocks of streams in memory instead of loading the whole stream with: avformat_network_init(); std::uint8_t *...
Baris Unal's user avatar
0 votes
0 answers
545 views

How to convert HLS to UDP on FFmpeg or any other freeware?

What freeware can I use to convert an HLS playlist to a UDP stream? I tried FFmpeg on hls url to udp stream, which worked. I'm trying to find a freeware that can manage to do the same, but with ...
Alex Romero's user avatar
0 votes
1 answer
157 views

FFmpeg: Audio is sped up after compressing AVI video

I have an AVI video and I want to reduce the file size. When I run the FFmpeg command below, the resulting audio in the video is sped up, and the last bit of the video has no audio. I play all my ...
Karen S's user avatar
3 votes
0 answers
2k views

Stream to multiple RTSP from one or more video files

I am not an expert on FFMPEG, I simply found this tool useful for doing some simple things I need to test on clients using RTSP streaming. What I would like to do is to be able to RTSP stream the same ...
Sebastian Vasii's user avatar
1 vote
0 answers
256 views

Stream an MP4 file via HTTP in a QuickTime-compatible format using FFmpeg

QuickTime supports streaming from an HTTP server, for instance try opening https://ia801307.us.archive.org/18/items/kontikipart2/kontikipart2.mp4 via File -> Open Location. However, streaming the ...
yari's user avatar
  • 11
0 votes
0 answers
173 views

FFPLAY DASH error on start

i'll trying to play a DASH streaming on Google Media CDN with ffplay but i have this error: Failed to parse format-tag beginning with %010d$.m4s. Expected either a closing '$' character or a format-...
juniper's user avatar
0 votes
0 answers
774 views

MP4 to HLS stream conversion error after resizing video using FFmpeg

When trying to create HLS stream from original video, FFmpeg creates HLS stream without errors. ~ $ ffmpeg -i test.mp4 -f hls -hls_time 3 -hls_segment_filename seg%02d.ts stream.m3u8 But when I ...
ITeptIcklyTa's user avatar
0 votes
0 answers
2k views

How to detect with ffmpeg if the stream has video or audio or both?

I am listening on rtsp stream. The stream may potentially have only audio, only video, or have both, depending on how the remote side ffmpeg was configured. I want to dump the stream into hls. This is ...
KamilCuk's user avatar
  • 220
0 votes
0 answers
69 views

There is mosaic phenomenon when muxing h264 raw stream to mp4 or flv by using ffmpeg6.0

I am currently using ffmpeg 6.0 to encapsulate h264 raw streams into mp4, flv, or rtmp formats. When the bitrate exceeds 1024kb/s, there is mosaic phenomenon at the bottom of the final picture. I ...
TONY's user avatar
  • 1
0 votes
0 answers
120 views

Add video on the fly in playlist m3u8

How can I change the playlist on the fly with ffmpeg? I tried with a concat but it doesn't work. I then saw that ffmpeg takes into account m3u8 playlists, but while testing I realize that adding a ...
Tchoune's user avatar
0 votes
0 answers
236 views

Recording m3u8 stream stop time do not work when stream is forwarded using socat

I try to record m3u8 stream containing audio only. It is online radio but listening is geographicaly restricted and in my country requests fails with HTTP 403 but on server in (non-restricted) remote ...
Misaz's user avatar
  • 626
-2 votes
1 answer
63 views

Trying to both stream and {segmented} store a camera input with a graphic overlay (which must be scaled down to fit)

I am trying to write a python program using ffmpeg to capture an input video from a USB camera, overlay a brand graphic on it, and then both store the video as it run and also stream it to WOWza. No ...
David Barron's user avatar
1 vote
0 answers
415 views

Use ffmpeg to record from RTSP stream to two outputs at different resolutions while segmenting the video based on time

I need to record from an RTSP at two different resolutions (original and something lower). I also need to have the files broken up according to clock time on every even 30 minutes, ex. 1:00, 1:30, 2:...
Eric Hansen's user avatar
1 vote
0 answers
411 views

ffmpeg not adding correct timestamps in recorded files and producing 76 milliseconds files

I am using ffmpeg to record a camera stream using rtsp protocol. Camera stream is being consumed via rtsp-simple-server. I am creating 10 second files by setting output_ts_offset to epoch realtime. ...
Aman Hanjra's user avatar
2 votes
1 answer
2k views

Trying to stream a video loop using FFMPEG. However, I keep getting the error "Cannot Write the Headers Server returned 400 Bad Request"

I am using mediamtx for starting RTSP server. The command that I am using for ffmpeg is as follows: ffmpeg -re -stream_loop -1 -i ./clouds.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8554 The ...
lokit khemka's user avatar
2 votes
1 answer
905 views

Delay video (and audio) by x seconds in FFMPEG HLS Stream

I have an input HLS stream stream.m3u8 using my macbook camera by running: ffmpeg -f avfoundation ^ -framerate 30 -i 0 ^ -c:v libx264 -c:a aac -b:a 128k ^ -ac 2 -crf 5 -preset veryfast -...
Daniel Schmidt's user avatar
2 votes
0 answers
687 views

Using FFMPEG to record a radio stream, how do I save the metadata into a second file

I'm trying to record a radio station for a bit over four hours with FFMPEG so I can listen to the charts with no cost for mobile data later. Like this, which works fine: ffmpeg -i <STREAM URL ...
576i's user avatar
  • 443
0 votes
1 answer
3k views

Using FFMPEG to stream desktop, screen, and applications over http

As described in this post for Windows, I already know how to stream desktop to a player like ffplay or vlc. To access the stream in any browser, I would like to be able to stream my desktop or a ...
kyrlon's user avatar
  • 107
1 vote
0 answers
454 views

Buffer xrun in Alsa while ffmpeg streaming from certain sources

I am broadcasting the audio of my desktop PC (client here onwards) using the Pulseaudio RTP module: load-module module-null-sink sink_name=rtp_2_camilla channels=2 format=S16BE rate=96000 ...
Kerem Basaran's user avatar
0 votes
1 answer
111 views

Need help fading overlay with image-ads in and out - infitely

Im trying overlay an image-ad every x-seconds, by fading the overlay in and out. It's a stream for our company in Southern Denmark. Should be said im 3 days old in FFMPEG. And that its running on ...
Frederik Krath Nielsen's user avatar
0 votes
0 answers
247 views

ffmpeg auto ended process with output error

How do you make ffmpeg stop during processing if strange words appear which make the live stream error automatically stop? For example, during the process I often get output like this: Non-Monotonous ...
Joe Cola's user avatar
  • 101
0 votes
0 answers
393 views

Using ffmpeg to create mp4 file from video stream

I'm reading data from a video stream and using ffmpeg to create a mp4 file. After writing data for a period of time I always get a file with a shorter duration. For example, if I write data for 10 ...
Claudio Montenegro's user avatar
1 vote
1 answer
63 views

routing rtmp ect streams

Is it possible to solve this problem using ffmpeg+pyhton or in conjunction with another solution. I need a server solution, so Vmix, obs, etc are not suitable. ( eg: I have two (and/or more) streams ...
ilia FILIPPOV 's user avatar
0 votes
0 answers
589 views

Stream Webcam video to a website

I am trying to build a system where I want to stream video from a webcam to a website, I am new to video processing, but so far, I have learned that I need to use FFmpeg lib, an AWS-S3 bucket and hls....
Anoop Yadav's user avatar
1 vote
0 answers
374 views

How to detect in real-time, whether there is an audio video sync or lag using FFMPEG?

I'm not asking about how to fix an audio video sync issue or lag. That I'll figure out, using FFMPEG's timeline editing filter. My question is about whether there is a way to detect if the audio and ...
Nav's user avatar
  • 1,089
0 votes
0 answers
1k views

VLC: network stream over RTSP: can I use more aggressive buffering?

I can watch my RTSP stream with VLC almost perfectly. The stream is live, transcoded from h264 to h265 by ffmpeg. My only concern is that the stream is occasionally (depends on many factors, but at ...
Daniel's user avatar
  • 577

1
2 3 4 5
8