In diesen Beitrag wird erklärt wie man mit einer Webcam und der Software FFmpeg & FFserver einen Audio und Video Livestream erstellt.
Ich habe dafür benutzt:
1x Logitech QuickCam für Notebooks
1x Ubuntu Netbook (Ubuntu 8.04 Hard Heron)
1x Ubuntu Server (Ubuntu 8.04 Hard Heron)
Für den Heimgebrauch kann der Stream auch vom selben Rechner aufgezeichnet und gesendet werden.
Installation:
1) Als erstes installieren wir auf beiden Rechnern das FFmpeg packet.
sudo apt-get install ffmpeg |
2) Falls noch nicht vorhanden brauch der Rechner welcher den Stream aufzeichnen soll den LAME Encoder
sudo apt-get install lame |
3) Configuration vom FFserver.
Jetzt müssen auf den Rechner welcher den Stream ins Internet Senden soll die Konfigurationsdatei bearbeiten.
Bevor wir die Konfiguration bearbeiten machen wir ein Backup:
sudo mv /etc/ffserver.conf /etc/ffserver.conf_backup |
Bei einen Rechner mit grafischer Oberfläche bearbeiten wir die Datei mit:
sudo gedit /etc/ffserver.conf |
Bei einem Rechner welcher nur über Terminal bedient wird mit:
sudo vim /etc/ffserver.conf |
Jetzt können wir den gesamten Inhalt der Konfigurationsdatei löschen und durch das ersetzen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | Port 8090 # bind to all IPs aliased or not BindAddress 0.0.0.0 # max number of simultaneous clients MaxClients 1000 # max bandwidth per-client (kb/s) MaxBandwidth 10000 # Suppress that if you want to launch ffserver as a daemon. NoDaemon <feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 5M </feed> <stream test.swf> Feed feed1.ffm Format swf VideoCodec flv VideoFrameRate 2 VideoBufferSize 80000 VideoBitRate 100 VideoQMin 1 VideoQMax 5 VideoSize 352x288 PreRoll 0 #Noaudio AudioCodec mp3 AudioBitRate 32 AudioChannels 1 AudioSampleRate 44100 </stream> |
Jetzt nur noch speichern und den Server starten
ffserver |
4) Mit FFmpeg den Stream an den Streamingserver senden.
ffmpeg -s 352×288 -f video4linux -i /dev/video1 -f audio_device -i /
dev/dsp1 http://<ip vom server>:8090/feed1.ffm
hierbei ist /dev/video1 die Webcam. Bei Rechnern ohne eingebaute Webcam wird das wahrscheinlich /dev/video0 sein.
/dev/dsp1 ist in meinen fall das Mikrofon der Webcam.
Jetzt nur noch die IP vom Streamserver eintragen und schon sollte das ganze laufen.
Den Stream erreicht man jetzt unter: http://<ip vom server>:8090/test.swf
Gibt es auch die Möglichkeit H.264 Videos mit ffserver in Flash-Player livestreamen zu lassen?
MF Sen
07/16/2009 @ 15:14
Hi Sen, Ja das sollte auch funktionieren. Du musst als quelle anstelle vom Device die H.264 Videodatei angeben.
07/18/2009 @ 14:20
Moin,
dein beispiel funktioniert so nicht, da die Paketversionen kein mp3 unterstützen, das kann man ihnen beibringen (lame ftw.), aber nur wenn man ffmpeg dann selbst kompiliert
(zumindest bei mir nicht)
MfG
dispy
07/20/2009 @ 00:10
Hi dispy,
MP3 Sollte funktionieren wenn lame da ist. Notfalls kannst du ja noch probieren ein Codec Bundle zu installieren bei mir war es bei 2 Rechnern unterschiedlich mal brauchte ich es mal nicht. Übrigens funktioniert das ganze scheinbar nur mit der für Ubuntu 8.04 verfügbaren Version von FFmpeg bei neueren Ubuntu Distributionen scheint es sich um eine neuere FFmpeg Version zu handeln die andere und mehr Parameter erwartet.
07/20/2009 @ 09:58
Bei den neueren Versionen von Ubuntu und FFmpeg einfach den Audiocodec von „mp3“ zu „libmp3lame“ ändern. Lame natürlich vorausgesetzt…
Zitat:
Q: I get “Unknown AudioCodec: mp3″ error when starting ffserver.
A: You’ve got an mp3 stream configured in your ffservcer.conf but your ffmpeg/ffserver version has changed names for mp3. Try setting AudioCodec to “libmp3lame”.
MfG multimediatechniker
12/08/2009 @ 15:49
Hi,
I am getting the data on the fly in the form of RGB888 format from LAN. I want to stream this encode and stream this data. Is this possible ?
10/04/2011 @ 12:18
moin …
ich habe eine „Creative LIVE CAM CHAT HD“
wenn ich das nach deinen angaben mache … scalliert er das bild IMMER auf 160 x 120 auch wenn in der ffserver.conf was gant anderes steht …
hast du ggf. eine Idee ?
LG
Marco
12/14/2012 @ 14:20
Heya i’m for the first time here. I found this board and I find It truly
useful & it helped me out much. I hope to give something back and aid others like you
helped me.
12/26/2021 @ 05:20
Hello there! Would you mind if I share your blog with my myspace
group? There’s a lot of people that I think would really
enjoy your content. Please let me know. Many thanks
12/29/2021 @ 00:01
I’ve been browsing online more than 2 hours today, yet I never
found any interesting article like yours. It’s pretty
worth enough for me. Personally, if all webmasters and bloggers made good content as you did,
the web will be a lot more useful than ever before.
02/05/2022 @ 05:32
I want to to thank you for this fantastic read!! I definitely enjoyed every bit of it.
I have you book marked to check out new stuff
you post…
07/24/2022 @ 11:01
It includes school, household secrets and techniques, relationships, and
different real-life problems, that often have an unexpected twist
to them. In addition to animation, some videos include real-life kids actors which
might be dancing while singing the songs. Being an animated real-life stories channel, most
of its subscribers can relate to it. The fascinating story backed by
cartoon-type animation makes this channel value being on the radar.
Since most of them are created without voice-over, background music is being emphasized
to create an atmosphere. And there’s just a plain white background.
Super Simple Songs function kids‘ songs and nursery rhymes made easy for younger learners.
In true kind, MrBeast pulled out all of the stops:
he recorded a 12-hour video saying „PewDiePie“ 100,000 times,
and turned up on the Super Bowl in „Sub 2 PewDiePie“ shirts.
We see a brand new pewdiepie video, we watch it.
09/06/2022 @ 05:49
Good day! This is kind of off topic but I need some advice from an established blog.
Is it very hard to set up your own blog? I’m not very techincal but I can figure things
out pretty fast. I’m thinking about setting up my own but I’m not sure where to start.
Do you have any points or suggestions? Cheers
09/08/2022 @ 03:22
Hello There. I found your blog using msn. This is a really well written article.
I will make sure to bookmark it and return to read more of
your useful information. Thanks for the post. I’ll definitely comeback.
09/08/2022 @ 23:14
T-Series is a YouTube channel with most subscribers on the earth.
The YouTube channel has rendered critique for unusual and conceivably perilous
life hacks and its dependence on clickbait. YouTube permits people to be taught and
discover their hidden talent. Up to 6.97 million folks are actually subscribed to his channel.
It is the most subscribed YouTube channel in the world. Exciting Wrestling has a fan base around the world.
In these competitions, which happen both online and in person, you might begin to increase your fan base and fame as a
player. As of May 2019, more than 500 hours of video were uploaded to
YouTube each minute, up from a mere 24 hours of content
material uploads per minute in 2010. People & blogs adopted by gaming were the preferred content material classes for video uploads,
accounting for roughly a 3rd of total YouTube content
each. He gained his recognition mostly out of his gaming movies.
Toby has different thriving YouTube channels however on his TobyGames channel, he primarily puts out movies about gaming.
WiederDude is a popular American gaming YouTuber.
09/09/2022 @ 04:26
When you’ve gotten one on your website, Google can remove your site from its search results.
What drives results for a manufacturing firm won’t ship something substantial to your ecommerce retailer.
Myths about Seo are everywhere and could cause your organization to
associate with the fallacious type of Website positioning agency,
like these selling „cheap“ Search engine optimisation companies.
Whenever you associate with one of those agencies, you obtain a personalized strategy.
Including tons of keywords to a page might have labored for Search engine optimisation at one point, but not
anymore. Get 50% Discount on Search engine marketing Our Specialty : Quick Service,
Skilled Wanting, Google 1st Web page Search engine optimization. For
extra particulars on what we are able to offer, head over to
our Services page for an entire listing of our presents.
You may even accomplice with an inexpensive Website positioning agency that offers marketing technology for
this function.
09/09/2022 @ 06:34
Laina: Yeah, we we began dating six months earlier than I
made that video the primary video, so. Amory: In her goodbye
video, Laina opened up about her struggles with psychological well being.
Amory: Do you look again on this with no regrets or do
you feel like, I do not know? If you wish to know what classes these YouTubers excel
in, have a look on the article below. Laina: As a lot as I don’t need to admit it,
I do know that this a part of my life is done.
And that is that’s my life. I don’t have any answer to that question as a result of I can not even imagine attempting to like date
and then know that I’m one Google search away
from scaring off anyone. And i didn’t know the answer to any of these questions that I felt like
I was being requested on a regular basis.
09/10/2022 @ 02:57
Cohen, Joshua (January 9, 2014). „PewDiePie Breaks 20 Million Subscribers“.
Cohen, Joshua (January 9, 2014). „PewDiePie Breaks 20 Million YouTube Subscribers“.
Cohen, Joshua (November 4, 2013). „YouTube Is Now The most Subscribed Channel On YouTube“.
Marc Hustvedt (November 15, 2011). „Ray William Johnson is First to 5 Million YouTube Subscribers“.
Gutelle, Sam (March 15, 2017). „The History Of YouTube’s Most-Subscribed Channels Is A Fun Nostalgia Trip“.
Sam Gutelle (May 25, 2013). „YouTube History: Smosh Is First Channel Past Ten Million Subs“.
Ray William Johnson (January 16, 2013). „RWJ vs SMOSH“.
Since then, at least ten other YouTube channels have possessed the platform’s largest
subscriber rely; these embrace Judson Laipply, Brookers, geriatric1927, lonelygirl15,
Ryan Higa, Fred, Ray William Johnson and PewDiePie.
Following the third time that Smosh became the most-subscribed YouTube
channel, Ray William Johnson collaborated with the duo.
A flurry of top YouTubers together with Ryan Higa, Shane Dawson,
Felix Kjellberg, Michael Buckley, Kassem Gharaibeh,
the Fine Brothers, and Johnson himself, congratulated the duo shortly after they surpassed Johnson as essentially the most-subscribed channel.
T-Series finally permanently surpassed PewDiePie, and on May 29, it grew to become the first channel to realize
a hundred million subscribers. In mid-2018, the subscriber count of
the Indian music video channel T-Series quickly approached that of Swedish
web comedian and Let’s Player PewDiePie, who was essentially
the most-subscribed consumer on YouTube on the time.
09/15/2022 @ 01:20
Throughout the three past a long time, T-Series has owned and operated one in every
of the most important music and movie studios in India.
T-Series is India’s largest Music Label & Movie Studio.
Canal „KondZilla“ is a Brazilian music video producer, screenwriter, and director.
He was dethroned by Canal KondZilla in February 2018 and at the moment
sits on the tenth most subscribed to channel on YouTube.
Despite the controversy surrounding Logan Paul’s ‘suicide forest‘ controversy, the YouTube star continues to skyrocket in the quantity of subscribers.
Currently Logan Paul Vlogs sits at roughly 16.9 million subscribers.
Nicki Minaj singing „Super Bass“ presently has 127 million views, while Adam Levine’s new girlfriend has over 74 million. After singing in church in her
early childhood, Katy Perry has exploded to turn out to
be on the most popular musicians and YouTubers
as properly. Of all the YouTubers on this checklist, Justin Bieber reigns
at the number one most subscribed to musicians on YouTube.
One Direction’s YouTube web page has more than a hundred uploads,
however „What Makes You Beautiful“ is closing in on one billion views, whereas „Drag Me Down“ has
688 million.
09/16/2022 @ 02:11
I have been exploring for a bit for any high-quality articles or weblog posts on this sort of space .
Exploring in Yahoo I ultimately stumbled upon this web site.
Reading this information So i am satisfied to show that I’ve
a very just right uncanny feeling I found out just what I needed.
I such a lot indisputably will make sure to do not omit this website and provides it a glance on a relentless basis.
09/18/2022 @ 19:49
Greate pieces. Keep writing such kind of information on your blog.
Im really impressed by your site.
Hello there, You’ve performed an incredible job. I’ll definitely digg
it and individually suggest to my friends. I am sure they will be benefited from this
site.
09/19/2022 @ 08:42
I am really impressed along with your writing skills and also with the layout in your blog.
Is this a paid subject or did you customize it yourself? Anyway stay
up the excellent high quality writing, it’s rare
to see a nice weblog like this one these days..
10/04/2022 @ 05:20
My brother recommended I would possibly like this web site.
He was once entirely right. This publish actually
made my day. You cann’t consider simply how a lot time I had spent for this info!
Thanks!
10/04/2022 @ 12:52
Hello! I know this is kinda off topic but I was wondering if
you knew where I could locate a captcha plugin for my comment form?
I’m using the same blog platform as yours and I’m having difficulty
finding one? Thanks a lot!
10/05/2022 @ 10:17
ラブドール 通販 経験を増やしたい場合は、引き続きこのWebサイトにアクセスして、ここに投稿された最新のニュース更新について学習してください。
12/12/2022 @ 20:36
It’s actually a great and helpful piece of info. I am satisfied that you simply shared this helpful info with us. keep going.
01/24/2023 @ 13:16
Enjoyed reading your post keep sharing such amazing post will come back to read more.
01/24/2023 @ 14:25
This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information.
01/25/2023 @ 08:27
I know this if off topic but I’m looking into starting my own blog and was wondering what all
is needed to get set up? I’m assuming having a blog like yours
would cost a pretty penny? I’m not very web smart so I’m not 100% certain. Any
suggestions or advice would be greatly appreciated. Cheers
02/02/2023 @ 13:00
top online sites local singles share dating best dating apps
02/07/2023 @ 13:54
I liked the way; please continue to share such wonderful posts. I’ll be back to read more. You may also check out my website to learn more
ij.start canon
02/08/2023 @ 12:50
Enjoyed reading your post keep sharing such amazing post will come back to read more. and you can also visit my site
Disneyplus.com/begin
Disneyplus.com/begin
02/13/2023 @ 08:48
I like reading an article that will make people think. Also, thank you for permitting me to comment!
02/18/2023 @ 13:39
リアルラブドール 長期的な拘束、体が悪化していることに注意してください
02/24/2023 @ 21:21
Hey There. I found your blog. This is a really well written article.
03/02/2023 @ 14:48
Because it is a love doll that 女性 用 ラブドールtranscends the concept of a doll and grows into a real girl, it has the cuteness and kindness that will feel when together.
03/17/2023 @ 07:50
„Great post! I love how you’ve broken down the benefits of meditation and provided practistarted. cal tips for getting I’ve been thinking about starting a meditation practice for a while now and this post has given me the motivation to finally give it a try. Thanks for sharing!“
04/21/2023 @ 11:43
Very descriptive post, I enjoyed that a lot. Will there be a part 2?
04/26/2023 @ 07:28
Today, I went to the beach front with my children. I found a sea shell and gave it to my 4 year old daughter and said „You can hear the ocean if you put this to your ear.“ She
put the shell to her ear and screamed. There
was a hermit crab inside and it pinched her ear. She never wants to go back!
LoL I know this is totally off topic but I had to tell someone!
04/29/2023 @ 09:34
Playing NYT Wordle stimulates cognitive abilities such as critical thinking, problem-solving, and pattern recognition. The game challenges your mind and encourages you to think strategically, fostering mental agility and sharpening your cognitive skills.
05/27/2023 @ 08:32
Playing NYT Wordle stimulates cognitive abilities such as critical thinking, problem-solving, and pattern recognition. The game challenges your mind and encourages you to think strategically, fostering mental agility and sharpening your cognitive skills.
05/27/2023 @ 08:33
Improve your World Wordle game by starting with common vowels. Look for patterns in letter placement and adjust your guesses accordingly. Take calculated risks to eliminate multiple possibilities. Learn from each guess and adjust your strategy accordingly. It is a game of logic and deduction, so practice, observe, and think carefully to enhance your performance.
05/30/2023 @ 10:46
Ready to activate your Spectrum watch? Look no further than watch.spectrum.net/activate! This user-friendly portal allows you to easily activate your watch device on your Spectrum account, so you can start streaming your favorite shows and movies right away. Just follow the simple instructions provided and begin enjoying all the content you love on your wrist.
06/05/2023 @ 09:08
What i do not realize is in reality how you’re not really a lot more smartly-liked than you may be right now. You are so intelligent. You recognize therefore significantly relating to this matter, produced me individually believe it from numerous numerous angles. Its like men and women aren’t interested unless it’s something to accomplish with Lady gaga! Your own stuffs great. All the time care for it up!
06/24/2023 @ 04:37
Neat blog! Is your theme custom made or did you download
it from somewhere? A design like yours with a few simple adjustements would really make my blog stand out.
Please let me know where you got your design. Thanks
06/28/2023 @ 03:53
Hi there to every one, it’s truly a nice for me to pay a visit this web site, it consists of important Information.
06/28/2023 @ 21:59
Thanks For Sharing These Information Please visit here on my website:
https://sites.google.com/wellsusafargologin.com/wellsfargologin/home
https://sites.google.com/usbanklogin.net/bankofamericalogin/home
https://sites.google.com/uspal.net/paypal-login/home
https://sites.google.com/capitalonelogi.com/capitalonelogin/home
https://sites.google.com/walletslogi.com/cashapp-login/home
https://sites.google.com/view/abundant-advanced-hair-treat/home
https://sites.google.com/view/tea-for-weight-loss-2023/home
https://sites.google.com/view/prostafix/home
https://sites.google.com/view/joint-pain-killer-capsules/home
https://sites.google.com/view/folifort-hair-growth-updated/home
https://sites.google.com/learn-to-activate.com/aolmail/home
https://sites.google.com/learn-to-activate.com/disneyplus/home
https://sites.google.com/learn-to-activate.com/paypallogin/home
https://sites.google.com/trezor-log.com/trezoriostart/home
07/01/2023 @ 10:30
Great article, just what I wanted to find.
07/07/2023 @ 16:38
https://sites.google.com/view/paypalemailloginus/
https://sites.google.com/view/paypalemaillogin/home/
https://sites.google.com/view/paypalloginius/
https://sites.google.com/view/paypallogina/home/
https://sites.google.com/view/payinusa/home/
https://sites.google.com/view/paypallogiinus/home/
https://sites.google.com/view/paypallogin-iusa/
https://www.mykashipur.com/
https://paypallogin.papyi.com/
https://web.papyi.com/
https://sites.google.com/papyi.com/paypallogin/
https://sites.google.com/papyi.com/paypal-login/home/
https://sites.google.com/pypyi.com/paypallogin/home/
07/10/2023 @ 12:38
It’s an amazing paragraph designed for all the web visitors; they
will take advantage from it I am sure.
07/10/2023 @ 14:08