[FFmpeg-user] can I compress a video and remove the audio with a single command?

Bouke / Videotoolshed bouke at videotoolshed.com
Thu Mar 16 17:56:43 EET 2023


Besides DO NOT top post (like I am doing now)
You need to be more specific.
WHAT PLAYER cannot play the file?
Did you try VLC?  What other players?
How big is the output?

This besides others stating ‘full output’.




> On 16 Mar 2023, at 16:52, Natalia Molinero Mingorance <eng.nataliamolinero at gmail.com> wrote:
> 
> The video file is a gray box that can't be played.
> 
> El jue, 16 mar 2023, 16:42, Bouke / edit 'B <bouke at editb.nl> escribió:
> 
>> 
>> 
>>> On 16 Mar 2023, at 16:34, Natalia Molinero Mingorance <
>> eng.nataliamolinero at gmail.com> wrote:
>>> 
>>> I'm trying this command to compress the video and remove audio:
>>> 
>>> 
>>> command = -y -i $videoUri -movflags faststart -c:v libx264 -crf 40 -an
>>> -preset ultrafast $outPutSafeUri
>>> 
>>> but the video I get is corrupted.
>> 
>> How is the output ‘corrupted’?
>> QT player probably won’t play it, but that does not mean that it is
>> ‘corrupted’
>> Where did you get the -crf 40?
>> In combo with ultrafast, that will make some very ugly file…
>> 
>> Bouke
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list