Body: <p>I am using FFmpeg to create MPEG dash segments from my camera and playing it using Shaka Player. But I want to change the segment size (For example 2 seconds to 1 second) without creating a new process and without exiting the current process. Is there a change to change the parameter value in FFmpeg on the fly?</p>
  
  <pre><code>ffmpeg -f avfoundation -video_size 1280x720  -rtbufsize 100M  -r 30  -i 0 -qscale 100 -g 1 -vcodec libx264 seg_duration 1 -f dash -use_timeline 0 -use_template 0 -single_file 0 ffmpeg.mpd
  </code></pre>
  
  <p>This is the command where I want to change the segment_duration to 2, without exiting the current process.</p>
  
  <p>ie.</p>
  
  <pre><code>ffmpeg -f avfoundation -video_size 1280x720  -rtbufsize 100M  -r 30  -i 0 -qscale 100 -g 1 -vcodec libx264 -seg_duration 2 -f dash -use_timeline 0 -use_template 0 -single_file 0 ffmpeg.mpd
  </code></pre>
  
  <p>Or is there any other MPEG DASH Encoder for this use case?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-13T17:49:51.940Z
Comments.Text: Ffmpeg does not have that feature.
Comments.UserDisplayName: SlimSCSI
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-13T17:53:19.510Z
Comments.Text: Is there any other way to change this on the fly, like changing the key frame interval or gop? Or this there any mpeg dash encoder to do this? I am doing live streaming.
Comments.UserDisplayName: Trycoder
Tags: <ffmpeg><live><mpeg-dash>
Title: Changing DASH Parameters in FFmpeg on the fly?
UserDisplayName: Trycoder
ThreadText: # Changing DASH Parameters in FFmpeg on the fly?
  
  (Asked by: username_0 on 2019-03-13)
  
  I am using FFmpeg to create MPEG dash segments from my camera and playing it using Shaka Player. But I want to change the segment size (For example 2 seconds to 1 second) without creating a new process and without exiting the current process. Is there a change to change the parameter value in FFmpeg on the fly?
  
  ```
  ffmpeg -f avfoundation -video_size 1280x720  -rtbufsize 100M  -r 30  -i 0 -qscale 100 -g 1 -vcodec libx264 seg_duration 1 -f dash -use_timeline 0 -use_template 0 -single_file 0 ffmpeg.mpd
  
  ```
  
  This is the command where I want to change the segment\_duration to 2, without exiting the current process.
  
  ie.
  
  ```
  ffmpeg -f avfoundation -video_size 1280x720  -rtbufsize 100M  -r 30  -i 0 -qscale 100 -g 1 -vcodec libx264 -seg_duration 2 -f dash -use_timeline 0 -use_template 0 -single_file 0 ffmpeg.mpd
  
  ```
  
  Or is there any other MPEG DASH Encoder for this use case?
  
  **Tags:** ffmpeg, live, mpeg-dash
  
  > **Comments:**
  > **username_1**: Ffmpeg does not have that feature.  
  > **username_0**: Is there any other way to change this on the fly, like changing the key frame interval or gop? Or this there any mpeg dash encoder to do this? I am doing live streaming.  
  
  ---
  
  ## 0 answers
  
  