0

我有以下详细信息的 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 或其他工具转换为基线配置文件,或者有办法自己做吗?

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

4

2 回答 2

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

于 2012-10-17T03:41:22.740 回答
0

Handbrake 是一个出色的工具,具有命令行实用程序(基本上使用 FFMpeg),并在此处列出了所有当前配置文件的命令。

考虑到您想要 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

于 2012-10-16T10:37:36.583 回答