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

Bouke / edit 'B bouke at editb.nl
Thu Mar 16 18:21:11 EET 2023


> On 16 Mar 2023, at 17:14, Natalia Molinero Mingorance <eng.nataliamolinero at gmail.com> wrote:
> 
> I'm using it in an Android app, so it's the Android player. If I remove the
> "-an" and copy the audio, the video is successfully compressed.

You might learn top posting.
And you could try toying around yourself / do research.
Perhaps you app does not like ’no sound’
Why not do a test with sound as you have it, and set the level to extremely low?
Or (what I would do) read the specs on what your target eats?

Bouke


> 
> El jue, 16 mar 2023, 16:55, Moritz Barsnick <barsnick at gmx.net> escribió:
> 
>> On Thu, Mar 16, 2023 at 16:52:40 +0100, Natalia Molinero Mingorance wrote:
>>> The video file is a gray box that can't be played.
>> 
>> You didn't say with which player. And whether it actually worked _with_
>> audio.
>> 
>> Presumably, you just need to add a colorspace:
>> https://trac.ffmpeg.org/wiki/Encode/H.264#Encodingfordumbplayers
>> 
>>  -pix_fmt yuv420p
>> 
>> Cheers,
>> Moritz
>> _______________________________________________
>> 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