<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>

CC BY-SA 4.0
2023-06-02T12:25:42.197Z
Have you seen more or less the same question at superuser? https://superuser.com/q/990357/141595
Saaru Lindestøkke
CC BY-SA 4.0
2023-06-02T12:44:09.007Z
@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.
Nobunaji
CC BY-SA 4.0
2023-06-02T13:01:02.617Z
Thanks, can you please [edit] your question to include that kind of requirements?
Saaru Lindestøkke
<ffmpeg>
Cut start and end of video file if audio is silent or contains noise
Nobunaji
# 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**: @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.  
> **username_1**: Thanks, can you please [edit] your question to include that kind of requirements?  

---

## 0 answers

