Body: <p>I've tried using the following ffmpeg command :</p>
  <pre><code>ffmpeg -i path/to/input.ts -af silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse path/to/output.ts
  </code></pre>
  <p>The command worked and generated a file except it only cut the audio stream and not both the audio stream and video stream.</p>
  <p>Is there a way to make it cut both with <code>ffmpeg</code> or it's javascript equivalent <code>fluent-ffmpeg</code> ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-02T12:25:42.197Z
Comments.Text: Have you seen more or less the same question at superuser? https://superuser.com/q/990357/141595
Comments.UserDisplayName: Saaru Lindestøkke
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-02T12:44:09.007Z
Comments.Text: @SaaruLindestøkke Nope i hadn't seen it. Thank you for pointing it out. Sadly, all those solutions won't work for me. I need an ffmpeg command line that can be converted to fluent-ffmpeg.
Comments.UserDisplayName: Nobunaji
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-02T13:01:02.617Z
Comments.Text: Thanks, can you please [edit] your question to include that kind of requirements?
Comments.UserDisplayName: Saaru Lindestøkke
Tags: <ffmpeg>
Title: Cut start and end of video file if audio is silent or contains noise
UserDisplayName: Nobunaji
ThreadText: # Cut start and end of video file if audio is silent or contains noise
  
  (Asked by: username_0 on 2023-06-02)
  
  I've tried using the following ffmpeg command :
  
  ```
  ffmpeg -i path/to/input.ts -af silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse path/to/output.ts
  
  ```
  
  The command worked and generated a file except it only cut the audio stream and not both the audio stream and video stream.
  
  Is there a way to make it cut both with `ffmpeg` or it's javascript equivalent `fluent-ffmpeg` ?
  
  **Tags:** ffmpeg
  
  > **Comments:**
  > **username_1**: Have you seen more or less the same question at superuser? https://superuser.com/q/990357/141595  
  > **username_0**: @username_1 Nope i hadn't seen it. Thank you for pointing it out. Sadly, all those solutions won't work for me. I need an ffmpeg command line that can be converted to fluent-ffmpeg.  
  > **username_1**: Thanks, can you please [edit] your question to include that kind of requirements?  
  
  ---
  
  ## 0 answers
  
  