19
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 ...
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 ...
7
votes
Accepted
Convert mkv to mp4 (or webM) with the output file viewable in the process
This is possible for MP4, with a caveat. The command below will generate a fragmented MP4, which you can view in a browser while the conversion is taking place. However, only the fragments completely ...
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 ...
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 ...
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 ...
5
votes
Accepted
Encoding videos for MPEG-DASH
I would get as far away from EE as possible. Using the x264 tool, and mp4box, you can convert and segment out the files which are ready to be streamed to any dash compatible players. Especially since ...
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 ...
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 +...
4
votes
Accepted
How to prevent users from downloading videos?
Unfortunately, no, that's the entire reason DRM exists. It is a bit like trying to prevent someone from recording an on-air broadcast. When you send video data over the internet to someone's player, ...
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 ...
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 ...
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 ...
3
votes
Accepted
Can video be composited for live streaming?
The answer is yes, video can be composited fast enough to be streamed live. The tool that does this is called a switcher. Typically a switcher introduces a single frame delay from input to ...
3
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 ...
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.
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.
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 ...
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.
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 ...
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 ...
2
votes
Accepted
RED streaming interface
You can tap the SDI output port of any RED camera and feed that to a hardware device that reads 1080p video. Blackmagic make some things that translate SDI -> internal video stream via PCIe card (...
2
votes
Http Live Streaming for beginners
I would suggest you research a bit further and then refine your question. To me it seems that there is a bit of confusion in terms of the software components needed for creating a livestream. First ...
2
votes
Is there a buffering difference between increasing and decreasing stream quality?
1) It depends mainly on the streaming protocol. For HLS and HDS for example, yes because the player will usually download a number of segments before starting playback, and the download time is ...
2
votes
How can I avoid Quicktime Vulnerability with h.264 encoded MP4 files?
You can strip most of the metadata off your files using ffmpeg:
ffmpeg -i oldfile.mp4 -c copy newfile.mp4
This will copy the first audio and video streams to a new mp4.
2
votes
Best Streaming Encoding Software to incorporate a message feed
I not sure if I understood your question correctly, but CasparCG would be a common solution to overlay graphics (or anything else) to a video feed.
http://www.casparcg.com
Or, if you want to do ...
2
votes
Accepted
ffmpeg streaming to rtmp and extracting image periodically
Try
ffmpeg -hide_banner -loglevel info -progress /tmp/ffmpeg.log -i udp://10.0.0.150:8181?listen -filter_complex '[0:v]split=2[in1][in2];[in1]scale=640:-1,format=yuv420p[out1];[in2]fps=1/60[out2]' \
...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
streaming × 259ffmpeg × 79
video × 65
live × 45
rtmp × 19
encoding × 15
broadcasting × 15
codec × 10
youtube × 10
obs × 10
hls × 9
software-recommendation × 8
mp4 × 8
transcoding × 8
video-capture × 8
hdmi × 8
mpeg-dash × 8
audio × 7
h.264 × 7
linux × 6
webvideos × 6
live-recording × 6
video-quality × 5
video-recording × 5
hardware × 5