-
Wrong aspect ratio when AVCHD converted to MP4
Hi!
I have a video recorder from Sony producing AVCHD content and storing to memory card.
It is stated to record at a 1080i.
ffmpeg says that the original .mts-file is 1440×1080 with DAR 16:9 and PAR 4:3.
ffmpeg –i 00001.MTS
Input #0, mpegts, from '00001.MTS':
Duration: 00:02:42.24, start: 1.000033, bitrate: 11531 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.2[0x1200]: Subtitle: pgssub
The .MTS-container and the AC3-audio is not supported on my Samsung TV.
Therefore I am converting it with ffmpeg to MP4 container and mp3 audio.
I do this with
ffmpeg -i 00001.MTS -vcodec copy -acodec libmp3lame output.mp4
...
Input #0, mpegts, from '00001.MTS':
Duration: 00:02:42.24, start: 1.000033, bitrate: 11531 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.2[0x1200]: Subtitle: pgssub
File 'output.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf52.64.2
Stream #0.0: Video: libx264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], q=2-31, 50 tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, s16, 64 kb/s
...
The only problem is that when played on the Samsung TV it is shown as 4:3 content. (People look taller and black areas on left-end and right-end sides.)
My guess is that Samsung TV don’t care about the PAR 4:3 and uses PAR 1:1 instead.
Then since 1440/1080 equals 4/3 this is what I get.
So I believe I need to convert 1440×1080 DAR 16:9,PAR4:3 to 1920×1080 DAR 16:9, PAR 1:1 ?
The question is then how do I do that with ffmpeg???
Best regards Johan