Skip to main content
20 votes
Accepted

RTMP server using ffmpeg

You can use FFmpeg as an RTMP server as following ffmpeg -f flv -listen 1 -i rtmp://localhost:1935/live/app -c copy rtsp://YOUR_RTSP_HOST Notes: -listen 1 makes FFmpeg act as a RTMP server when used ...
Marware's user avatar
  • 316
10 votes

How to display static image if the input stream ends using ffmpeg?

TL;DR : Nothing simple. Both solutions use a relay, and it's not suitable for real production. Actually, you only have two possibilities, and both are ugly. There is absolutely no open-source ...
Moff Tigriss's user avatar
7 votes
Accepted

Can continuous video capture damage my DSLR?

It depends on the camera. Digital sensors such as those used in DSLRs produce heat as they capture images. The main issue with extended video capture is the accumulation of heat in the sensor. If ...
AJ Henderson's user avatar
  • 19.4k
7 votes

Use Streaming Online Video/Live As Source In OBS Studio

This would be possible using OBS's BrowserSource. First, find the embed code for the stream (in YouTube you can click "Share" and then "Embed"). Find the src="" and copy the URL that's inside the ...
Caleb Denio's user avatar
6 votes
Accepted

It is better to have more B-frames or more P-frame for video streaming?

"Q: Is it better to have more B-frames or more P-frame for video streaming?". From: https://en.wikipedia.org/wiki/Video_compression_picture_types The three major picture types used in the ...
Rob's user avatar
  • 867
5 votes

Can continuous video capture damage my DSLR?

With the Sony alpha 5000 camera specifically, you will run into trouble trying to do continuous video capture (10 hours or more). It will stop recording after 29min and 50seconds and then you will ...
MrCodeWeaver's user avatar
5 votes
Accepted

RTSP to RTMP converting fails after specific time only when IP camera enters night mode

I've solved the issue by rebuilding the timestamps from scratch with -use_wallclock_as_timestamps 1 and -fflags +genpts. /usr/bin/ffmpeg -use_wallclock_as_timestamps 1 -i "rtsp://${source}" -fflags +...
mjktfw's user avatar
  • 191
4 votes
Accepted

Proper command to remux mpeg-ts to mp4 with FFmpeg?

Unless you know you have a specific need to preserve timestamps, there's no need to use -copyts. MPEG-TS, being a format, used for remote viewing, will have some start time offset, by default, to ...
Gyan's user avatar
  • 33.4k
4 votes
Accepted

Questions on workflow: 12G-SDI to 500Mbps to RTSP stream

I've worked through a similar project over the last 6 months, and performed more tests than I can keep track of now. So this is a little fresh for me. With your questions: 4K camera -> capture ...
hmedia1's user avatar
  • 172
4 votes

How to set up a Livestream from SJ4000 Wifi?

You have two choices... The wireless way: SJ4000 WiFi has a built-in RTSP streaming server, supporting one client at a time with a limited resolution at 640x360. This can be viewed locally by ...
xwindows -on strike-'s user avatar
4 votes

Digital TV SCTE 35 signal

To determine if a channel has SCTE-35, you will need to have the Program Map Table (PMT) recorded. From the PMT, you should be able to find the Packet Identifiers (PIDs) of all of the streams ...
Michael Liebman's user avatar
3 votes
Accepted

OBS Studio: desktop audio falls out of sync

So with everything I've tried I'm not sure if I messed anything up, but.... Turning off "Use device timestamps" in the properties of "desktop audio" fixed the problem.
xyious's user avatar
  • 141
3 votes

stream with ffserver without encode-decode

FFmpeg, by default, uses ffserver's conf file to set encoding parameters. Add -override_ffserver to the ffmpeg command to prevent that.
Gyan's user avatar
  • 33.4k
3 votes

ffmpeg - live stream into a browser video tag (localhost only)

I think that the issue is the video tag. The video tag does not support live streaming directly, see this question on SO. Specifically: A. This answer for a technical description of what you want ...
Gordon's user avatar
  • 106
3 votes
Accepted

ffmpeg: keyframe extraction with pts

Use ffmpeg -copyts -skip_frame nokey -i {0} -vsync 0 -r 1000 -f image2 -frame_pts 1 keyframe-%09d.jpeg This will print the pts as milliseconds in the filename.
Gyan's user avatar
  • 33.4k
3 votes

How to skip/minimize encoding workload in OBS?

If you're streaming, OBS will re-encode the output each time. You can stream and record to disk at the same time, However, there's no way to "replay" that data directly to YouTube, it must ...
Adam Leyshon's user avatar
2 votes

How to automatically enrich a video stream with dynamic overlay (text, images, ...)

Have a look at CasparCG. It should be able to do what you want. An alternative would be to create something using MLT and, say, Python, but that requires some programming, though it should be mostly ...
odinho - Velmont's user avatar
2 votes

AVCONV to transcode MJPEG to RTSP

The 'copy' codec tells avconv to skip decoding and encoding. It is useful if you are trying to change the container format but in your case, you are changing the format of the stream from MJPEG to ...
Solar.gy's user avatar
  • 121
2 votes
Accepted

h264_omx and non-existing PPS 0 referenced

It turns out it is impossible to live stream with the RPi hardware acceleration using ffmpeg. For ffmpeg to configure the hardware acceleration to issue SPS/PPS frames during the stream and not only ...
Luke Skywalker's user avatar
2 votes

Is failure free streaming possible in todays world?

Streaming video between internally networked systems has become the standard in the Video Production / Post Production professional environment. There is a lot to read about this but the answer to ...
Mastaxx's user avatar
  • 154
2 votes
Accepted

Hardware and internet requirements for 1080/30p streaming, if video source is external

Connection Speed For H.264 1080p30 streaming with typical compression (6 Mbps), I would recommend an Internet upload speed of around 10 Mbps minimum. Hardware OBS Studio suggests the following ...
WarmTaunTaun's user avatar
2 votes
Accepted

MPEGTS & HLS: Only second segment onwards is valid

For non-conventional layouts, the native AAC encoder writes a PCE section in the bitstream header as part of the AudioSpecificConfig. However, it does so only at the beginning, therefore subsequent ...
Gyan's user avatar
  • 33.4k
2 votes
Accepted

Retrieve and decode V-Chip data from an aired digital TV stream

V-Chip is encoded in the Extended Data Services (XDS) that is part EIA-608 captions. How it is actually transported in/with the video depends the signal type and medium. Analog: Encoded with the ...
Michael Liebman's user avatar
2 votes
Accepted

Identify H.265 from the OSX Command Line?

You can use ffprobe for this ffprobe file.mkv -show_entries stream=codec_name -select_streams v:0 -of compact=p=0:nk=1 -v 0 For H.265/HEVC, this will print hevc; for H.264, h264 .
Gyan's user avatar
  • 33.4k
2 votes
Accepted

Resize video while live streaming with ffmpeg

You wanted to resize your video (-vf scale="480:-1"), and at the same time you wanted don't to use a video codec for encoding such resized video (-vcodec copy). It's impssible — video codec copy ...
MarianD's user avatar
  • 1,572
2 votes
Accepted

Video Quality Measurement test tool

There are a number of comparison algorithms available beginning with PSNR through SSIM/SSIMPLUS to VMAF. VMAF is implemented as an ffmpeg filter.
Michael Liebman's user avatar
2 votes

clean HDMI output camera - on start

First: 4k for livestreaming is pretty overkill. Please remember that your streaming device (your computer) and internet upload speed need handle this... AND to top things of not all of your viewers ...
MiTSCHO's user avatar
  • 21
1 vote

If the environment being captured on a video stream becomes less complicated, does the bit rate and latency decrease?

Like much with technology (and life), it depends. You didn't specify what software, protocol, or codec you are streaming with, so there are quite a few variables. Will the bit rate drop? If you are ...
Michael Liebman's user avatar
1 vote

If the environment being captured on a video stream becomes less complicated, does the bit rate and latency decrease?

so all that is captured in the live video stream is a red light bulb and a black background No. You can't get black background. You will get any possible type of noises, many shadows and all kinds ...
bukkojot's user avatar
  • 675
1 vote

Canon XF105 streaming

Looking at the capabilities of the XF105, there is no reason you could not simultaneously record to memory card and use the SDI or HDMI output of the camera. It appears that you can get clean outputs ...
AJ Henderson's user avatar
  • 19.4k

Only top scored, non community-wiki answers of a minimum length are eligible