Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Live/FFmpeg/ffmpeg_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ A basic live stream using the front camera and built in microphone on a laptop.
Note that for RTMP streaming you have to add a unique "Stream Key" to the end of the RTMP ingest URL provided by Azure Media Services. This can be any custom value, or match the access token value provided to the API on creation of the live event.

```bash
fmpeg -f dshow -fflags nobuffer -rtbufsize 2000M -i video="Microsoft Camera Front":audio="Microphone Array (Realtek High Definition Audio(SST))" -f flv "rtmp://<<YOUR_CHANNEL>>.channel.media.azure.net:1935/live/<<LIVE EVENT ID>>/<<STREAM KEY>>"`
ffmpeg -f dshow -fflags nobuffer -rtbufsize 2000M -i video="Microsoft Camera Front":audio="Microphone Array (Realtek High Definition Audio(SST))" -f flv "rtmp://<<YOUR_CHANNEL>>.channel.media.azure.net:1935/live/<<LIVE EVENT ID>>/<<STREAM KEY>>"`
```

### Multiple Bitrate RTMP broadcast to a pass-through live event
Expand Down Expand Up @@ -173,4 +173,4 @@ This shows how to use the "gdigrab" device on Windows desktops to capture a sect

```bash
ffmpeg -y -hide_banner -f dshow -fflags nobuffer -i audio="Headset Microphone (Logitech Stereo H650e)" -itsoffset 1.00 -f gdigrab -framerate 10 -offset_x 0 -offset_y 0 -video_size 1920x1080 -show_region 1 -i desktop -map 0:0 -map 1:0 -c:a:0 aac -b:a:0 128k -c:v:1 libx264 -preset ultrafast -tune zerolatency -s:v:0 1280x720 -r 30 -g 48 -keyint_min 48 -sc_threshold 0 -minrate:v:0 3000k -maxrate:v:0 3000k -b:v:0 3000k -avoid_negative_ts 1 -f ismv -movflags isml+frag_keyframe -frag_duration 1600000 "http://<<YOUR_CHANNEL>>.channel.mediaservices.windows.net/<<LIVE EVENT ID>>/ingest.isml/Streams(video)"
```
```