using ffmpeg for live streaming MPEG-TS with windows media services - ffmpeg

I'm trying to live stream MPEG-TS source to Windows Media service.
I found how to live stream using RTMP with this code:
ffmpeg -y -f mpegts -i udp://#:1234 -re -vcodec libx264 -maxrate 700k
-r 25 -s 640x360 -deinterlace -acodec libvo_aacenc -ab 64k -ac 1 -ar 44100 -f flv "rtmp://rtmp1.youtube.com/videolive?sparams=<STREAM PARAMETERS HERE>"
How can I convert it to support WM9/VC1 format?
Does ffmpeg support pulling of the stream or only pushing to Windows Media services?

Windows Media Service can receive data only from Windows Media Encoder.
It can't work with RTMP which its flash technology.
if your input stream is a file or a capture device than you can use "Windows Live Media Encoder".

Related

Streaming a stream from website to Twitch with FFMPEG

Is it possible to stream a website with a livestream (i.e. ip-camera) via FFMPEG to Twitch? If yes, does anybody know how to achieve this?
Yes. FFmpeg has a built-in RTMP client (which is the protocol you'll use to send your video data to Twitch), FLV (the wrapper for your audio and video data), H.264 (the video codec), and AAC (the audio codec).
First, find your RTMP ingest URL: https://stream.twitch.tv/ingests/
Now, just run FFmpeg as you normally would to ingest your input, but set some additional parameters for the output:
ffmpeg [your input parameters] -vcodec libx264 -b:v 5M -acodec aac -b:a 256k -f flv [your RTMP URL]

FFMPEG udp stream to VLC

i've been trying to create a transport stream using FFMPEG, when i tried it in VLC it was working immediately, however when i stream from FFMPEG to VLC i can't get it to work, here's my string:
ffmpeg -re -i http://ip-of-shoutcast-stream:port?listen -c:a aac -b:a 128k -ar 44100 -ac 2 -vn -f mpegts udp://ip-of-destination-pc:1234?pkt_size=1316
In VLC i use the same network source i used when VLC was streaming in the main PC:
udp://ip-of-main-pc:1234
But it doesn't play or show any errors, the orange bar only goes back and forth endlessly.
What am i doing wrong in the FFMPEG and/or VLC side? It has to be FFMPEG since it's getting moved to a server.

FFMPEG Preview from Capture device

I am using MacOS with FFMPEG --enabled-decklink installed to capture from BlackMagic Ultrastudio Expressto SDI to Thunderbolt and streams it to youtube, it works perfectly fine, here is my code.
ffmpeg -f decklink -format_code 'Hi50' -i 'UltraStudio Express'
-deinterlace -b:v 1M -vcodec h264 -pix_fmt yuv420p -color_range 1 -acodec aac -f flv rtmp://a.rtmp.youtube.com/live2/*******
but I am kinda blind cuz I cannot see what I am capturing till its live on Youtube, is there away to preview the video locally on my Mac before I start streaming via ffmpeg?

Record F4V in Flash Media Server

I have problem with record live event in F4v through Flash Media Server
I publish my live event on FMS though FFMPEG
FFMPEG Code:
ffmpeg -f dshow -i video="A4TECH USB2.0 PC Camera" -vcodec libx264 -b:v 32k -acodec libmp3lame -b:a 64k -ar 44100 -f flv rtmp://12.11.1.3/livepkgr/liveevent?adbe-live-event=liveevent
FMS Code to record F4V file:
var vodFile = Stream.get("mp4:" + StreamName.name + ".f4v");
vodFile.record();
vodFile.play(streamName,-1,-1);
So when I use -vcodec libx264 in ffmpeg FMS cam't to create F4V file, But when I erase -vcodec libx264 from FFMPEG FMS create F4V file currently.
Please advise me to solve this problem.

FMS FLV to mp3/aac/wav

How can I decode a FLV's audio if it's recorded from a live stream using Flash Media Server and uses NellyMoser codec?
I'm writing a script that process several FLVs, using FFmpeg, so I need a command line solution.
Any ideas?
This should work for you, since NellyMoser is supported by FFmpeg.
1. Using mp3
ffmpeg -i yourinput.flv -vn -acodec libmp3lame output.flv
2. Using AAC (switch aac with libfaac depending on which you have loaded)
ffmpeg -i yourinput.flv -vn -acodec libfaac output.mp4
I'm assuming of course you dont care about video.

Resources