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

Natalia Molinero Mingorance eng.nataliamolinero at gmail.com
Thu Mar 16 18:14:10 EET 2023


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.

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


More information about the ffmpeg-user mailing list