[FFmpeg-user] 3D SBS with ffmpeg quality question

Sully Beck ffmpeg-334dzyck at sullybeck.com
Thu May 24 03:17:09 EEST 2018


I am trying to come up with a reliable method to burn my 3D BluRays to 
disk as SBS MP4 files that can be played with plex on my 3D projector 
with tools on linux.  Specifically:

    makemkv 1.12.2
    ffmpeg 3.4.2

I have succeeded in making a SBS MP4, and it DOES work, but I'm not yet 
satisfied.

I'm experimenting with Monster House 3D in case that matters for some 
reason.

My first experiment was to use PavTube Video Converter (on Windows) to 
create a 3D SBS MP4 file since that has worked for me in the past.  I 
used the default settings:

    Video
      Codec: h264
      Size: original
      Bitrate: medium
      Frame Rate: original

    Audio:
       Codec: aac
       Sample Rate: 48000
       Bitrate: 96000
       Channels: Stero

    3D
       SBS (half-width)
       Depth: 60

I was able to view it with my projector, and it worked well, so that's 
the base quality I'm shooting for (though I'd be fine if I did even 
better of course).

I ran mediainfo on it so I knew exactly what parameters I was trying to 
reproduce, and that output is included below.

So next, I try to reproduce that with a combination of MakeMKV and ffmpeg.

I used MakeMKV and created a .mkv and ran mediainfo on it.  I've 
included the output for the video portion below (since audio is 
satisfactory, I won't include that info here unless requested).

Finally, I used ffmpeg to create an MP4 file, and I've included the 
mediainfo description below.  I used the command:

    ffmpeg \
       -i Monster_House_t00.mkv \
       -filter_complex stereo3d=al:sbsl \
       -vcodec libx264 \
       -acodec aac \
       -s 1920x1080 -aspect 16:9 \
       -b:v 15000k \
       -b:a 448000 \
       -ar 48000 \
       -r 23.976 \
       -y \
       -coder 0 \
       MH.mp4"

I thought I had all of the parameters set that I needed, and based on 
the output below, the two MP4 files seem virtually identical.

The size of the two MP4 files are quite close.

But when I view the PavTube MP4 file using vlc, I see the SBS images, 
and they play quite smooth.  But when I play the ffmpeg file, it is 
visibly jerky, and I'm not sure why.

In case it's useful information, if I view the mkv file with vlc, it 
plays smoothly (though I don't see the SBS of course).

Any suggestions for what I'm missing?


#####################################################################
# mediainfo for the PavTube Converter file

General
Complete name                            : Monster House.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 9.47 GiB
Duration                                 : 1 h 30 min
Overall bit rate                         : 15.0 Mb/s
Writing application                      : Lavf56.25.101

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline at L4.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 30 min
Bit rate                                 : 15.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.302
Stream size                              : 9.41 GiB (99%)
Writing library                          : x264 core 148
Encoding settings                        : cabac=0 / ref=1 / 
deblock=1:0:0 / analyse=0x1:0x111 / me=dia / subme=7 / psy=1 / 
psy_rd=1.00:0.00 / mixed_ref=0 / me_range=4 / chroma_me=1 / trellis=0 / 
8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / 
threads=1 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / 
interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / 
weightp=0 / keyint=12 / keyint_min=7 / scenecut=40 / intra_refresh=0 / 
rc_lookahead=12 / rc=abr / mbtree=1 / bitrate=15000 / ratetol=1.0 / 
qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English

#####################################################################
# mediainfo for the mkv file

General
Unique ID                                : 
314917923803618167332810776602961200094 (0xECEAFC67129C9215CC6CB6D0C5C343DE)
Complete name                            : Monster_House_t00.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 28.7 GiB
Duration                                 : 1 h 30 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 45.3 Mb/s
Movie name                               : Monster House
Encoded date                             : UTC 2018-05-11 01:17:27
Writing application                      : MakeMKV v1.12.2 
linux(x64-release)
Writing library                          : libmakemkv v1.12.2 
(1.3.5/1.4.7) x86_64-suse-linux
Original source medium                   : Blu-ray

Video
ID                                       : 1
ID in the original source medium         : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Stereo High at L4.1 / High at L4.1
MultiView_Count                          : 2
MultiView_Layout                         : Both Eyes laced in one block 
(left eye first)
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 30 min
Bit rate mode                            : Variable
Bit rate                                 : 40.6 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.818
Stream size                              : 25.7 GiB (90%)
Language                                 : English
Default                                  : No
Forced                                   : No

#####################################################################
# mediainfo for the MP4 file produced using ffmpeg

General
Complete name                            : MH.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 9.64 GiB
Duration                                 : 1 h 30 min
Overall bit rate                         : 15.2 Mb/s
Movie name                               : Monster House
Writing application                      : Lavf57.83.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High at L4.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 30 min
Bit rate                                 : 15.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (23976/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.302
Stream size                              : 9.35 GiB (97%)
Writing library                          : x264 core 152
Encoding settings                        : cabac=0 / ref=3 / 
deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / 
psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 
8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / 
threads=24 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 
/ interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / 
b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / 
weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / 
rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=15000 / ratetol=1.0 / 
qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Menus


More information about the ffmpeg-user mailing list