Festlegen der Profilebene für libx265 mithilfe von ffmpeg

9675
Bubba

Ich versuche, das Profillevel von libx265 mithilfe von ffmpeg auf "mainstillpicture" zu setzen. Aber ich scheine das nicht zu tun. Ich versuche grundsätzlich, jeden Frame als Intra-Frame (nur räumliche Codierung) ohne zeitliche Codierung zu codieren.

Ich habe die folgenden Befehle ausprobiert

ffmpeg -f rawvideo -vcodec rawvideo -s 3840x2160 -r 30 -pix_fmt yuv420p -i <input_filename> -c:v libx265 -b:v 45000k -preset veryslow -profile:v mainstillpicture <output_filename> 

und

ffmpeg -f rawvideo -vcodec rawvideo -s 3840x2160 -r 30 -pix_fmt yuv420p -i <input_filename> -c:v libx265 -b:v 45000k -preset veryslow -profile:v 3 <output_filename> 
5

1 Antwort auf die Frage

6
Ely

Obwohl ich nicht weiß, wie man das Profil mit ffmpeg einstellt, ist dies der x265-CLI-Code, wenn das Profil auf das Hauptbild eingestellt wird:

param->maxNumReferences = 1;  /* The bitstream shall contain only one picture (we do not enforce this) */ /* just in case the user gives us more than one picture: */ param->keyframeMax = 1; param->bOpenGOP = 0; param->bRepeatHeaders = 1; param->lookaheadDepth = 0; param->bframes = 0; param->scenecutThreshold = 0; param->bFrameAdaptive = 0; param->rc.cuTree = 0; param->bEnableWeightedPred = 0; param->bEnableWeightedBiPred = 0 

So kannst du wahrscheinlich so etwas machen:

ffmpeg -f rawvideo -vcodec rawvideo -s 3840x2160 -r 30 -pix_fmt yuv420p -i <input_filename> -c:v libx265 -b:v 45000k -preset veryslow -x265-params keyint=1:ref=1:no-open-gop=1:weightp=0:weightb=0:cutree=0:rc-lookahead=0:bframes=0:scenecut=0:b-adapt=0:repeat-headers=1 <output_filename> 
Danke das hat super geklappt. Wo haben Sie den CLI-Code für das Hauptbild gefunden? Wäre super wenn ich andere Profile ausprobieren könnte. Bubba vor 8 Jahren 0
Es wurde vor kurzem geändert. Sie finden es hier: https://bitbucket.org/multicoreware/x265/commits/86e4612d4c9c6980bede235f37bda72053cd51d5#Lsource/encoder/encoder.cppT1392. Abgesehen von Main und Main10 gibt es jedoch keine "anderen Profile". Ely vor 8 Jahren 0