我用以下命令通过http输出ffmpeg将mkv全部流式传输为mp4:
error ={
code = 401;
errors =({
domain = global;
location = Authorization;
locationType = header;
message = "Login Required";
reason = required;
}
);
message = "Login Required";
};
它很好,但是当我用ffplay查看时,出现此错误:
ffmpeg -i my.mkv -c:v libx264 -preset medium -maxrate 3500k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv http://localhost:port
。我有一个简单的带有Exprees和Node的http服务器设置。