【问题标题】:Melt: How to convert vertical video with black sides, to video 16:9, with blurred background sidesMelt:如何将带有黑色边的垂直视频转换为 16:9 的视频,背景边模糊
【发布时间】:2021-09-11 00:54:47
【问题描述】:

我看到many discussions 了解如何使用 ffmpeg 执行此操作,但我如何使用 melt 命令行执行此操作?

我正在使用下面的命令来合并视频和音频,并将任何视频的大小调整为 1280x720,这对于许多不同尺寸/比例的视频都很有效

/usr/bin/melt "colour:black" out=15 "input.mp4" -mix 15 -mixer luma -audio-track "sound.mp4" -profile hdv_720_30p -progress -consumer avformat:"output.mp4" vcodec="libx264" vb="5000k" acodec="aac" ab="128k" frequency=44100 deinterlace=1

我看到了这个过滤器https://www.mltframework.org/plugins/FilterPillar_echo/,它完全可以满足我的需求,但它要求我知道通过上述命令调整大小后视频的宽度/高度和位置(X/Y),我不知道如何计算或得到

【问题讨论】:

    标签: video mlt melt-framework


    【解决方案1】:

    根据您的需要进行定制,请尝试使用boxblur 过滤器,它可能会有所帮助

    melt \
    SomeFile.mp4 \  
    
    1. 现在设置您的模糊框并自定义大小/方面
    -filter boxblur start=1 end=300 in=65 out=70 \
    -transition \
    composite in=65 out=70 a_track=0 b_track=1 \
    start=0/0:100%x100%:100 \
    end=-100%/0:100%x100%:100 \
    -track \
    -blank 65 \
    
    1. 您可以将其反馈给其他人,以便分步进行额外处理
    InOut.mp4 \
    -transition \
    composite in=65 out=70 a_track=0 b_track=1 \
    start=100%/0:100%x100%:100 \
    end=0/0:100%x100%:100 \
    -filter boxblur start=300 end=1 in=65 out=70 \
    -consumer avformat:outFile.mp4
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-03-31
      • 2020-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-11
      相关资源
      最近更新 更多