So, I have a bunch of .mp4 files and I need to change the video and audio codecs in order to be able to play them on my device.
The video codec is currently h264 and I need mpeg4. The audio codec is aac and I need mp3.
I'm trying to convert them via this ffmpeg command:
ffmpeg -y -i input -s:v 800x480 -c:v mpeg4 -c:a mp3 output
It works fine, except for the quality because ffmpeg is using a very low bitrate.
My question now is if I need to specify a quality/bitrate or if it is possible to tell ffmpeg to use the original bitrate somehow.
-vcodec copy is not an option because the video codec stays the same.