Streaming DASH with ffmpeg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming DASH with ffmpeg

Mar Andrés López
Dear All,


I am new in ffmpeg, I was Reading the documentation that ffmpeg has available for dash. The given command example is the following:


ffmpeg -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \
-b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \
-profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \
-b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \
-window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \
-f dash /path/to/out.mpd


In wich the output is the manifest .mpd, that produces the segments for a video input with two encodings and qualities (two representations for the video stream and two representations for the audio stream) but I need to stream the video with dash over UDP. Is posible to do that in just one command? with dash?


Do you have any guideline how to stream with dash?


A lot of thanks,

Regards.

P Please consider the environment before printing this e-mail.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Streaming DASH with ffmpeg

andrei ka
:-) e.g. : https://github.com/leandromoreira/live-stream-from-desktop
&rei

On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López <[hidden email]>
wrote:

> Dear All,
>
>
> I am new in ffmpeg, I was Reading the documentation that ffmpeg has
> available for dash. The given command example is the following:
>
>
> ffmpeg -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \
> -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \
> -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \
> -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \
> -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \
> -f dash /path/to/out.mpd
>
>
> In wich the output is the manifest .mpd, that produces the segments for a
> video input with two encodings and qualities (two representations for the
> video stream and two representations for the audio stream) but I need to
> stream the video with dash over UDP. Is posible to do that in just one
> command? with dash?
>
>
> Do you have any guideline how to stream with dash?
>
>
> A lot of thanks,
>
> Regards.
>
> P Please consider the environment before printing this e-mail.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Streaming DASH with ffmpeg

Mar Andrés López
That seems really Good! A lot of thanks.

________________________________
De: ffmpeg-user <[hidden email]> en nombre de andrei ka <[hidden email]>
Enviado: martes, 6 de octubre de 2020 10:03:53
Para: FFmpeg user questions
Asunto: Re: [FFmpeg-user] Streaming DASH with ffmpeg

:-) e.g. : https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_leandromoreira_live-2Dstream-2Dfrom-2Ddesktop&d=DwIGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY&m=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc&s=IiwxRWv6drFPLoYJXxc7dvh7XyrCEe0-mTfG0e6I2kY&e=
&rei

On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López <[hidden email]>
wrote:

> Dear All,
>
>
> I am new in ffmpeg, I was Reading the documentation that ffmpeg has
> available for dash. The given command example is the following:
>
>
> ffmpeg -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \
> -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline \
> -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 \
> -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1 \
> -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" \
> -f dash /path/to/out.mpd
>
>
> In wich the output is the manifest .mpd, that produces the segments for a
> video input with two encodings and qualities (two representations for the
> video stream and two representations for the audio stream) but I need to
> stream the video with dash over UDP. Is posible to do that in just one
> command? with dash?
>
>
> Do you have any guideline how to stream with dash?
>
>
> A lot of thanks,
>
> Regards.
>
> P Please consider the environment before printing this e-mail.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser&d=DwIGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY&m=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc&s=J27HbIFA4oSjbreWLLLcxHt0Pa4qR8OEYGUbP6OTsqI&e=
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser&d=DwIGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY&m=Id89CH79UYOFLOVFnmMSvXqs7r2CY_kj9Ky03292rLc&s=J27HbIFA4oSjbreWLLLcxHt0Pa4qR8OEYGUbP6OTsqI&e=

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

P Please consider the environment before printing this e-mail.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Streaming DASH with ffmpeg

andrei ka
In reply to this post by Mar Andrés López
On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López <[hidden email]>
wrote:

>  I need to stream the video with dash over UDP. Is posible to do that in
> just one command


afaik you can't, it sends chunks and updates manifests at the same time,
you'd need rewrite ffmpeg to serialise it and encapsulate. and yet, if you
udp looses packets and bad luck it looses manifest transfert you'd be
screwed up. at most, you cand send you encoded live over srt (preferred
protocol for udp in terms of reliability & bw usage) and on the receiving
part repackage it to dash...
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Streaming DASH with ffmpeg

Mar Andrés López
And do you know if it is posible to do something like this:


ffmpeg -re -i http://localhost:5055/dash.mpd dashvideo.mp4


I have set up a webserver into IIS with a dash manifest and the segment chunks so I would like to know to do that?


but it is not working.


A lot of thanks in advance

________________________________
De: ffmpeg-user <[hidden email]> en nombre de andrei ka <[hidden email]>
Enviado: martes, 6 de octubre de 2020 10:09:35
Para: FFmpeg user questions
Asunto: Re: [FFmpeg-user] Streaming DASH with ffmpeg

On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López <[hidden email]>
wrote:

>  I need to stream the video with dash over UDP. Is posible to do that in
> just one command


afaik you can't, it sends chunks and updates manifests at the same time,
you'd need rewrite ffmpeg to serialise it and encapsulate. and yet, if you
udp looses packets and bad luck it looses manifest transfert you'd be
screwed up. at most, you cand send you encoded live over srt (preferred
protocol for udp in terms of reliability & bw usage) and on the receiving
part repackage it to dash...
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser&d=DwIGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY&m=tYiCJ9Ewc_QAlrB2nf_ghYd-EZmG6Ctqp-L70qyMaLM&s=AS4x3DVlixsXoM5fQwHMc0ohzt1nUr9omG7fIVzJxrw&e=

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

P Please consider the environment before printing this e-mail.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Streaming DASH with ffmpeg

andrei ka
dunno what exactly you're trying to do. if you followed something like this
https://www.instructables.com/Making-Your-Own-Simple-DASH-MPEG-Server-Windows-10/
to make a dash vod streaming point with iss on local host on port 5055 at
least ffprobe or vlc should be able to report if
http://localhost:5055/dash.mpd works. after it works, of course you can use
it at ffmpeg http source and transcode it into a mp4 with defaults with
your command.
&rei

On Tue, Oct 6, 2020 at 4:40 PM Mar Andrés López <[hidden email]>
wrote:

> And do you know if it is posible to do something like this:
>
>
> ffmpeg -re -i http://localhost:5055/dash.mpd dashvideo.mp4
>
>
> I have set up a webserver into IIS with a dash manifest and the segment
> chunks so I would like to know to do that?
>
>
> but it is not working.
>
>
> A lot of thanks in advance
>
> ________________________________
> De: ffmpeg-user <[hidden email]> en nombre de andrei ka <
> [hidden email]>
> Enviado: martes, 6 de octubre de 2020 10:09:35
> Para: FFmpeg user questions
> Asunto: Re: [FFmpeg-user] Streaming DASH with ffmpeg
>
> On Tue, Oct 6, 2020 at 8:25 AM Mar Andrés López <[hidden email]>
> wrote:
>
> >  I need to stream the video with dash over UDP. Is posible to do that in
> > just one command
>
>
> afaik you can't, it sends chunks and updates manifests at the same time,
> you'd need rewrite ffmpeg to serialise it and encapsulate. and yet, if you
> udp looses packets and bad luck it looses manifest transfert you'd be
> screwed up. at most, you cand send you encoded live over srt (preferred
> protocol for udp in terms of reliability & bw usage) and on the receiving
> part repackage it to dash...
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__ffmpeg.org_mailman_listinfo_ffmpeg-2Duser&d=DwIGaQ&c=CIoxZ4z5BqFvKvSGFOTo726QZIiNTc_M9CmngT-Pla4&r=6hC3rvTBWUFDzy12mBL-ibcRFc1EHXzwjcFCetQx-fY&m=tYiCJ9Ewc_QAlrB2nf_ghYd-EZmG6Ctqp-L70qyMaLM&s=AS4x3DVlixsXoM5fQwHMc0ohzt1nUr9omG7fIVzJxrw&e=
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>
> P Please consider the environment before printing this e-mail.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".