[FFmpeg-user] Best way convert to mpg

Reindl Harald h.reindl at thelounge.net
Thu Jan 11 00:30:33 EET 2024



Am 10.01.24 um 22:38 schrieb Budi Janto:
> Hi,
> 
> 
> In last week I tried to convert *.dat, *.avi and other video format to 
> *.mpg. This caused our application support only for *.mpg file (Work 
> well). So for this required, I just convert it without any modification 
> sound/video quality (AS-IS) for e.g:
> 
> Command used to convert *.dat to *.mpg.
> # find * -type f -iname "*.dat" -exec sh -c 'ffmpeg -hide_banner -y -i 
> "$0" -vcodec copy -acodec copy "${0%.dat}.mpg"' {} \;
> 
> Command used to convert *.avi to *.mpg.
> # find * -type f -iname "*.avi" -exec sh -c 'ffmpeg -hide_banner -y -i 
> "$0" -c:v copy -c:a copy "${0%.avi}.mpg"' {} \;

"-vcodec copy -acodec copy" - so you specify don't re-encode anyhting 
which can be done also by changing the file extension, both don't make 
any sense


More information about the ffmpeg-user mailing list