【问题标题】:H264 profile change using FFMPEG使用 FFMPEG 更改 H264 配置文件
【发布时间】:2012-10-06 10:21:37
【问题描述】:

我有以下详细信息的 H264 流

video stream type     :                 AVC  
resolution            :             640x368  
profile:level         :            High:4.0  
aspect ratio          :          40x23(1:1)  
chroma format         :               4:2:0  
interlaced            :                  no  
frames count          :                  15  
duration              :        00:00:02.800  
frame size max        :              80 088  
           avg        :              14 538  
       avg/max (I)    :     28 361 / 80 088  
       avg/max (P)    :       2 444 / 3 196  
       avg/max (B)    :               0 / 0  
           min        :               1 880  

framerate declared    :               5.000  
          real        :               5.000  

bitrate type          :                 VBR  
bitrate declared      :           1 259 968  

bit allocation max    :           1 126 640  
               avg    :             581 520  
               min    :             124 000 

是否可以使用 FFMPEG 或其他工具转换为 Baseline 配置文件,或者有办法自己做吗?

基本想法是将此视频流式传输到 android 设备。

【问题讨论】:

  • 您几乎肯定想要重新编码原始源材料,而不是您提供规格的 h.264 流。

标签: ffmpeg streaming video-streaming h.264 http-live-streaming


【解决方案1】:

ffmpeg -i input_file.avi -vcodec libx264 -vprofile baseline -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -acodec libvo_aacenc -b:a 128k output_file。 mp4

【讨论】:

    【解决方案2】:

    Handbrake 是一款出色的工具,有一个命令行实用程序(基本上使用 FFMpeg),并将here 的命令列出到其所有当前配置文件。

    考虑到您需要 Baseline 配置文件,iPhone/iPod touch 应该适合您:

    ./HandBrakeCLI -i DVD -o ~/Movies/movie.mp4 -e x264 -q 20.0 -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0.0 -f mp4 -X 480 -m -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subme=6:8x8dct=0:trellis=0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-16
      • 2021-12-24
      • 2023-03-07
      • 2020-10-28
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 2019-12-15
      相关资源
      最近更新 更多