sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 347 forks source link

How to record stream from webrtccapturer in webrtcrecoreder example? #245

Open traw opened 6 years ago

traw commented 6 years ago

How to record stream from webrtccapturer in webrtcrecoreder samples? I see both the samples work with respective javascripts clients, but c++ samples doesn't work with each other. Why is it incompatible? I'm trying to capture stream from webrtccapturer sample into webrtcrecorder sample.

ludothetester commented 5 years ago

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

auscaster commented 5 years ago

Hi guys, sorry for the confusion. The samples are not intended to interact, they are individual solutions to different issues.

Check the README files for each: https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md

webrtccapturer demonstrates how to stream audio and video capture devices from a native app to the browser. webrtcrecorder demonstrates how to record WebRTC video stream from the browser on the server side using FFmpeg.

On Mon, 10 Jun 2019 at 13:03, ludothetester notifications@github.com wrote:

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ .

ludothetester commented 5 years ago

So for the webrecoder how should we generate the stream to be recorded ? This is something I don’t get.

Le lun. 10 juin 2019 à 13:15, Kam Low notifications@github.com a écrit :

Hi guys, sorry for the confusion. The samples are not intended to interact, they are individual solutions to different issues.

Check the README files for each:

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md

webrtccapturer demonstrates how to stream audio and video capture devices from a native app to the browser. webrtcrecorder demonstrates how to record WebRTC video stream from the browser on the server side using FFmpeg.

On Mon, 10 Jun 2019 at 13:03, ludothetester notifications@github.com wrote:

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQYJSNJOZERZRM3CLWLPZYZWRA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTKOQ#issuecomment-500380986, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIGQQZZGFN52B2EJ3DRCZTPZYZWRANCNFSM4FG3YYJQ .

auscaster commented 5 years ago

It comes from the browser client, so the demo is recording a stream from the browser in C++.

On Mon, 10 Jun 2019 at 13:20, ludothetester notifications@github.com wrote:

So for the webrecoder how should we generate the stream to be recorded ? This is something I don’t get.

Le lun. 10 juin 2019 à 13:15, Kam Low notifications@github.com a écrit :

Hi guys, sorry for the confusion. The samples are not intended to interact, they are individual solutions to different issues.

Check the README files for each:

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md

webrtccapturer demonstrates how to stream audio and video capture devices from a native app to the browser. webrtcrecorder demonstrates how to record WebRTC video stream from the browser on the server side using FFmpeg.

On Mon, 10 Jun 2019 at 13:03, ludothetester notifications@github.com wrote:

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQYJSNJOZERZRM3CLWLPZYZWRA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTKOQ#issuecomment-500380986 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AMIGQQZZGFN52B2EJ3DRCZTPZYZWRANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDDRRPATFHWTRENBRFLPZY2JFA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTUVA#issuecomment-500382292, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAYUDEZJ7ESMVZYF7YAKXDPZY2JFANCNFSM4FG3YYJQ .

ludothetester commented 5 years ago

Let’s take an example. I got this page ==> https://www.velu.net/events2U/capture/capture.html Is there a way for me to record the video stream generated ?

Thanks a lot for your precious help, I’m a bit lost.

Ludo

Le lun. 10 juin 2019 à 13:31, Kam Low notifications@github.com a écrit :

It comes from the browser client, so the demo is recording a stream from the browser in C++.

On Mon, 10 Jun 2019 at 13:20, ludothetester notifications@github.com wrote:

So for the webrecoder how should we generate the stream to be recorded ? This is something I don’t get.

Le lun. 10 juin 2019 à 13:15, Kam Low notifications@github.com a écrit :

Hi guys, sorry for the confusion. The samples are not intended to interact, they are individual solutions to different issues.

Check the README files for each:

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md

webrtccapturer demonstrates how to stream audio and video capture devices from a native app to the browser. webrtcrecorder demonstrates how to record WebRTC video stream from the browser on the server side using FFmpeg.

On Mon, 10 Jun 2019 at 13:03, ludothetester notifications@github.com wrote:

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQYJSNJOZERZRM3CLWLPZYZWRA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTKOQ#issuecomment-500380986

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AMIGQQZZGFN52B2EJ3DRCZTPZYZWRANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDDRRPATFHWTRENBRFLPZY2JFA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTUVA#issuecomment-500382292 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AAAYUDEZJ7ESMVZYF7YAKXDPZY2JFANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQ5DVC4GPDJCXI7GIFTPZY3S5A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJUI3Y#issuecomment-500384879, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIGQQZCHX2FF45PMBTRSPLPZY3S5ANCNFSM4FG3YYJQ .

ludothetester commented 5 years ago

I know it’s not easy to answer to everyone, but if you could point me to the right direction it will definitely help, as I’m looking for this kind of solution since ages….

Le 10 juin 2019 à 13:35, Ludovic Velu ludo.velu@gmail.com a écrit :

Let’s take an example. I got this page ==> https://www.velu.net/events2U/capture/capture.html https://www.velu.net/events2U/capture/capture.html Is there a way for me to record the video stream generated ?

Thanks a lot for your precious help, I’m a bit lost.

Ludo

Le lun. 10 juin 2019 à 13:31, Kam Low <notifications@github.com mailto:notifications@github.com> a écrit : It comes from the browser client, so the demo is recording a stream from the browser in C++.

On Mon, 10 Jun 2019 at 13:20, ludothetester <notifications@github.com mailto:notifications@github.com> wrote:

So for the webrecoder how should we generate the stream to be recorded ? This is something I don’t get.

Le lun. 10 juin 2019 à 13:15, Kam Low <notifications@github.com mailto:notifications@github.com> a écrit :

Hi guys, sorry for the confusion. The samples are not intended to interact, they are individual solutions to different issues.

Check the README files for each:

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtccapturer/README.md

https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md https://github.com/sourcey/libsourcey/blob/master/src/webrtc/samples/webrtcrecorder/README.md

webrtccapturer demonstrates how to stream audio and video capture devices from a native app to the browser. webrtcrecorder demonstrates how to record WebRTC video stream from the browser on the server side using FFmpeg.

On Mon, 10 Jun 2019 at 13:03, ludothetester <notifications@github.com mailto:notifications@github.com> wrote:

I have exactly the same question and wasn't able to find any answer....even when writing an email directly to the author. Can anyone help ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <

https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046 https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDGODTWSDQCXOOUCFCLPZYYH3A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJSTPQ#issuecomment-500378046

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ https://github.com/notifications/unsubscribe-auth/AAAYUDDTFENVFUGRA6FTZELPZYYH3ANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQYJSNJOZERZRM3CLWLPZYZWRA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTKOQ#issuecomment-500380986 https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQYJSNJOZERZRM3CLWLPZYZWRA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTKOQ#issuecomment-500380986 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AMIGQQZZGFN52B2EJ3DRCZTPZYZWRANCNFSM4FG3YYJQ https://github.com/notifications/unsubscribe-auth/AMIGQQZZGFN52B2EJ3DRCZTPZYZWRANCNFSM4FG3YYJQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDDRRPATFHWTRENBRFLPZY2JFA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTUVA#issuecomment-500382292 https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AAAYUDDRRPATFHWTRENBRFLPZY2JFA5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJTUVA#issuecomment-500382292>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAAYUDEZJ7ESMVZYF7YAKXDPZY2JFANCNFSM4FG3YYJQ https://github.com/notifications/unsubscribe-auth/AAAYUDEZJ7ESMVZYF7YAKXDPZY2JFANCNFSM4FG3YYJQ> .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/245?email_source=notifications&email_token=AMIGQQ5DVC4GPDJCXI7GIFTPZY3S5A5CNFSM4FG3YYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXJUI3Y#issuecomment-500384879, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIGQQZCHX2FF45PMBTRSPLPZY3S5ANCNFSM4FG3YYJQ.

ludothetester commented 5 years ago

please @auscaster, could you take 5 minutes to answer to this ? I don't want to bother you, It's really important for me.

Let’s take an example. I got this page ==> https://www.velu.net/events2U/capture/capture.html Is there a way for me to record the video stream generated ? Thanks a lot for your precious help, I’m a bit lost.

Thanks !

Ludo