[MPlayer-dev-eng] [PATCH] add "level" as option to lavc (aka Mencoder generating PS3 playable h264 videos)
Gustavo Sverzut Barbieri
barbieri at gmail.com
Thu May 3 13:56:31 CEST 2007
ttached is a patch to let mencoder know about lavcopt
"level=<integer>" so we can specify AVCodecContext->level (exposed on
ffmpeg as "-level").
Playstation3 just play videos with level=31 and 41, so it's required.
PS: it's attached as ".txt" so gmail doesn't recognize it as octet-stream
--
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: barbieri at gmail.com
MSN: barbieri at gmail.com
ICQ#: 17249123
Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
-------------- next part --------------
--- mplayer.orig/libmpcodecs/ve_lavc.c 2007-03-21 02:15:02.000000000 -0300
+++ mplayer/libmpcodecs/ve_lavc.c 2007-05-02 02:35:08.000000000 -0300
@@ -150,6 +150,7 @@
static int lavc_param_mv0_threshold = 256;
static int lavc_param_refs = 1;
static int lavc_param_b_sensitivity = 40;
+static int lavc_param_level = -99;
char *lavc_param_acodec = "mp2";
int lavc_param_atag = 0;
@@ -294,6 +295,7 @@
{"mv0_threshold", &lavc_param_mv0_threshold, CONF_TYPE_INT, CONF_RANGE, 0, INT_MAX, NULL},
{"refs", &lavc_param_refs, CONF_TYPE_INT, CONF_RANGE, 1, 16, NULL},
{"b_sensitivity", &lavc_param_b_sensitivity, CONF_TYPE_INT, CONF_RANGE, 1, INT_MAX, NULL},
+ {"level", &lavc_param_level, CONF_TYPE_INT, CONF_RANGE, INT_MIN, INT_MAX, NULL},
{NULL, NULL, 0, 0, 0, 0, NULL}
};
#endif
@@ -562,6 +564,7 @@
lavc_venc_context->mv0_threshold = lavc_param_mv0_threshold;
lavc_venc_context->refs = lavc_param_refs;
lavc_venc_context->b_sensitivity = lavc_param_b_sensitivity;
+ lavc_venc_context->level = lavc_param_level;
switch(lavc_param_format)
{
More information about the MPlayer-dev-eng
mailing list