pkuvcl / xavs2

An open-source encoder of AVS2-P2/IEEE1857.4 video coding standard
GNU General Public License v2.0
234 stars 66 forks source link

不支持在一个进程中同时编码多个视频 #25

Open jason-deng opened 4 years ago

jason-deng commented 4 years ago

不支持在一个进程中同时编码多个视频

进程直接崩溃。

复现

例如:

ffmpeg -f lavfi -i testsrc2=duration=10 \
  -s 400x300 -c:v avs2 out1.avs \
  -s 200x150 -c:v avs2 out2.avs

输出:

Input #0, lavfi, from 'testsrc2=duration=10':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> avs2 (libxavs2))
  Stream #0:0 -> #1:0 (rawvideo (native) -> avs2 (libxavs2))
Press [q] to stop, [?] for help
xavs2[e]:  deprecated parameter: FrameRate = 3
Output #0, avs2, to 'out1.avs':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: avs2 (libxavs2), yuv420p, 400x300 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 libxavs2
xavs2[e]:  deprecated parameter: FrameRate = 3
段错误 (核心已转储)

期望行为

支持在一个进程中同时编码多个视频。

运行环境