VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
Thread

Threaded View

  1. Member
    Join Date
    Oct 2019
    Location
    China
    Search Comp PM
    My workmate sent me an H.264 encoded MP4 video file.

    When I use Get Info in macOS, it's dimensions is 1125x2436. However, if I open the file in Quicktime Player or VLC and check the metadata, they all display 1126x2436 instead.

    Also ffprobe says it's yuv420p, 1126x2436. Check the image below.

    Image
    [Attachment 50604 - Click to enlarge]


    I found an app called Subler earlier. It displays the video's metadata as shown below.

    Image
    [Attachment 50605 - Click to enlarge]


    After I generate a video using ffmpeg of size 1126x2436, how do I make the system display 1125x2436 without changing the real dimension? I'm looking for a tool which can do this in Linux command line.

    I know this sounds a bit weird, but my client requests that dimension because the iPhone X's screen resolution is 1125x2436 and he wants the exact fit.

    Any ideas? Thanks.
    Quote Quote  
  2. Set the SAR to 1125:1126. Or DAR to 1125:2436.
    Last edited by jagabo; 21st Oct 2019 at 13:34.
    Quote Quote  
  3. Member
    Join Date
    Oct 2019
    Location
    China
    Search Comp PM
    Originally Posted by jagabo View Post
    Set the SAR to 1125:1126. Or DAR to 1125:2436.
    Thanks for pointing out the properties.

    When I directly set
    Code:
    -vf setsar=sar=1125/1126
    or
    Code:
    -vf setdar=dar=1125/2436
    using ffmpeg, the output file still says dimension 1126x2436 or 1124x2436.

    However, I can also use mlt(qmelt) in my case. By adding
    Code:
    sample_aspect_num="1125" sample_aspect_den="1126" display_aspect_num="1125" display_aspect_den="2436"
    to the <profile /> of the XML, the result is exactly what I want.
    Quote Quote  



Similar Threads