0

I'm trying to get lossless conversion of 3gp to mp4 using ffmpeg.

I tried

ffmpeg -i input.3gp -vcodec h264 -c:a aac output.mp4

I tried with "libx264" for the video codec, I tried just a simple

ffmpeg -i input.3gp output.mp4

No matter what I try, for a 10 MB 3gp video I am getting a 5 MB mp4 video that doesn't seem to have the same quality.

Any suggestions are welcome.

Thank you.

New contributor
D. Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

If the codecs of your input file are already h264 and aac for video and audio, respectively, you can just copy without decoding and encoding again.

ffmpeg -i input.3gp -c:v copy -c:a copy output.mp4

If you need to encode again, an option -qscale 0 will result similar quality (but not lossless). below is an example. You might combine with -c:v copy or -c:a copy if you don't need to encode video or audio again.

ffmpeg -i input.3gp -qscale 0 output.mp4
New contributor
kamae is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

D. Joe is a new contributor. Be nice, and check out our Code of Conduct.

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.