0

below command converts well the a.gif into a.mp4.

ffmpeg -i a.gif -y -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" a.mp4

but during the process it writes a lot of information on the terminal. I want only a.mp4 file without any metadata information. How should I avoid printing those?enter image description here

0

-v sets the loglevel. Set it to 8 i.e. -v 8, to suppress all logs except fatal errors. But I recommend 24 to include warnings as well.

Alternatively, add -report and redirect stderr logging to /dev/null.

ffmpeg -i a.gif -y -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" a.mp4 -report 2> /dev/null

If the conversion went fine, delete the report file created in the PWD. If not, you can examine it for details.

| improve this answer | |
  • I added this <find -type f -name 'ffmpeg-2*.log' -delete> along with the above lines which further deletes the file created. thanks. – user24234 Mar 30 '19 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.