Changing the value of the parameters while encoding ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing the value of the parameters while encoding ?

Sai Balaji
Hello,

I am new to FFmpeg and this community. For my institution project, I am
using FFmpeg to create MPEG Dash segments from my laptop camera for live
streaming.

As a part of my project, I would like to change some parameters (For
example. Segment Size), while the encoding process is already running.

This is the command that I'll be using initially:

ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
libx264 -acodec aac  -b:v 1M -b:a 192k -f dash  -use_template 0
-use_timeline 0 -single_file 0  -streaming 1  -seg_duration  1 -live 1
 -window_size
5 sai.mpd


But for my use case, I would like to change the segment duration to 2
seconds(Initially 1) after some time without terminating the current
process.


Is that possible in FFmpeg to change the parameters dynamically or is there
any other way to handle this use case with FFmpeg?


Note: I am using Shaka Player to play the segments.


Thanks and regards,

Baju
_______________________________________________
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: Changing the value of the parameters while encoding ?

Sai Balaji
Follow up

On Thu, Mar 7, 2019 at 5:34 PM Sai Balaji <[hidden email]> wrote:

> Hello,
>
> I am new to FFmpeg and this community. For my institution project, I am
> using FFmpeg to create MPEG Dash segments from my laptop camera for live
> streaming.
>
> As a part of my project, I would like to change some parameters (For
> example. Segment Size), while the encoding process is already running.
>
> This is the command that I'll be using initially:
>
> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
> libx264 -acodec aac  -b:v 1M -b:a 192k -f dash  -use_template 0
> -use_timeline 0 -single_file 0  -streaming 1  -seg_duration  1 -live 1  -window_size
> 5 sai.mpd
>
>
> But for my use case, I would like to change the segment duration to 2
> seconds(Initially 1) after some time without terminating the current
> process.
>
>
> Is that possible in FFmpeg to change the parameters dynamically or is
> there any other way to handle this use case with FFmpeg?
>
>
> Note: I am using Shaka Player to play the segments.
>
>
> Thanks and regards,
>
> Baju
>
_______________________________________________
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: Changing the value of the parameters while encoding ?

Carl Eugen Hoyos-2
2019-03-09 6:49 GMT+01:00, Sai Balaji <[hidden email]>:

> Follow up
>
> On Thu, Mar 7, 2019 at 5:34 PM Sai Balaji <[hidden email]> wrote:
>
>> Hello,
>>
>> I am new to FFmpeg and this community. For my institution project, I am
>> using FFmpeg to create MPEG Dash segments from my laptop camera for live
>> streaming.
>>
>> As a part of my project, I would like to change some parameters (For
>> example. Segment Size), while the encoding process is already running.
>>
>> This is the command that I'll be using initially:
>>
>> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
>> libx264 -acodec aac  -b:v 1M -b:a 192k -f dash  -use_template 0
>> -use_timeline 0 -single_file 0  -streaming 1  -seg_duration  1 -live 1
>> -window_size
>> 5 sai.mpd
>>
>>
>> But for my use case, I would like to change the segment duration to 2
>> seconds(Initially 1) after some time without terminating the current
>> process.

I wanted to write "Patch welcome" but I am not sure if the infrastructure
allows changing muxing parameters on the fly.

Carl Eugen
_______________________________________________
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: Changing the value of the parameters while encoding ?

Sai Balaji
It would be great if I can change the segment size on the fly.

That is the only parameter that I need to change right now.

On Sat, Mar 9, 2019 at 4:44 PM Carl Eugen Hoyos <[hidden email]> wrote:

> 2019-03-09 6:49 GMT+01:00, Sai Balaji <[hidden email]>:
> > Follow up
> >
> > On Thu, Mar 7, 2019 at 5:34 PM Sai Balaji <[hidden email]>
> wrote:
> >
> >> Hello,
> >>
> >> I am new to FFmpeg and this community. For my institution project, I am
> >> using FFmpeg to create MPEG Dash segments from my laptop camera for live
> >> streaming.
> >>
> >> As a part of my project, I would like to change some parameters (For
> >> example. Segment Size), while the encoding process is already running.
> >>
> >> This is the command that I'll be using initially:
> >>
> >> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
> >> libx264 -acodec aac  -b:v 1M -b:a 192k -f dash  -use_template 0
> >> -use_timeline 0 -single_file 0  -streaming 1  -seg_duration  1 -live 1
> >> -window_size
> >> 5 sai.mpd
> >>
> >>
> >> But for my use case, I would like to change the segment duration to 2
> >> seconds(Initially 1) after some time without terminating the current
> >> process.
>
> I wanted to write "Patch welcome" but I am not sure if the infrastructure
> allows changing muxing parameters on the fly.
>
> Carl Eugen
> _______________________________________________
> 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".