Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

竖视频剪辑后变成拉扁的横视频 #39

Open
lovelystrange opened this issue Nov 16, 2022 · 7 comments
Open

竖视频剪辑后变成拉扁的横视频 #39

lovelystrange opened this issue Nov 16, 2022 · 7 comments

Comments

@lovelystrange
Copy link

lovelystrange commented Nov 16, 2022

原始:
1080x1920,H.264
剪辑后:
1920x1080,H.264

@zcf0508
Copy link
Contributor

zcf0508 commented Nov 16, 2022

没有复现,参数用的什么

@lovelystrange
Copy link
Author

参数为默认值。
% autocut -t new.MOV
% autocut -c new.MOV new.srt new.md

@lovelystrange
Copy link
Author

出现此情况的视频是iPhone 12 mini拍摄后直接airdrop至电脑。此后使用电脑上其他软件剪辑生成的竖版视频测试,没有复现。

@zcf0508
Copy link
Contributor

zcf0508 commented Nov 17, 2022

ffmpeg -i /path/to/input.mp4 看一下视频信息

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\path\to\input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.51.101
  Duration: 00:02:09.57, start: 0.000000, bitrate: 318 kb/s
  Stream #0:0[0x1](chi): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 182 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](chi): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

@lovelystrange
Copy link
Author

已复现:
原始视频(iPhone竖屏拍摄):
Duration: 00:00:11.03, start: 0.000000, bitrate: 12102 kb/s
Stream #0:00x1: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 11987 kb/s, 30 fps, 30 tbr, 600 tbn (default)
Metadata:
creation_time : 2022-11-21T00:37:45.000000Z
handler_name : Core Media Video
vendor_id : [0][0][0][0]
encoder : HEVC
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)

切割视频:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.27.100
Duration: 00:00:04.90, start: 0.000000, bitrate: 3027 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, 2888 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc59.37.100 libx264
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)

@sdwcn
Copy link

sdwcn commented Oct 6, 2024

有解决方案么?我也能复现

@chenqianhe
Copy link
Collaborator

有解决方案么?我也能复现

方便的话分享一个出问题的视频吧,我们可以测试看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants