I´ve found the reason for the error in transcoding.py of OWIF
I added the line 129 and now I get an answer of
https://ip-address/transcoding
and a set of the parameter with
https://ip-address/transcoding?bitrate=value
works.
I will made some more tesst with the developer of enigmote and if it works I will make a change request to the OWIF transcoding.py for working with openpli at this point
for encoder in encoders:
encoder_features = get_transcoding_features(encoder)
if len(encoder_features):
str_result += "<encoder number=\"%s\">\n" % str(encoder)
for arg in encoder_features:
attr = encoder_features[arg]
value = str(attr.value)
if hasattr(attr, "limits"):
attr_min = str(attr.limits[0][0])
attr_max = str(attr.limits[0][1])
str_result += "<e2config>\n<e2configname>%s</e2configname>\n<e2configlimits>%s-%s</e2configlimits>\n<e2configvalue>%s</e2configvalue>\n</e2config>\n" % (arg, attr_min, attr_max, value)
elif hasattr(attr, "choices"):
choices = ""
for choice in attr.choices:
choices += choice + ", "
choices = choices.rstrip(', ')
str_result += "<e2config>\n<e2configname>%s</e2configname>\n<e2configchoices>%s</e2configchoices>\n<e2configvalue>%s</e2configvalue>\n</e2config>\n" % (arg, choices, value)
if len(encoder_features):
str_result += "</encoder>\n"
attr, arg = port, "port"
value = str(attr.value)
choices = ""
if hasattr(attr, "choices"):
for choice in attr.choices:
choices += choice + ", "
choices = choices.rstrip(', ')
str_result += "<e2config>\n<e2configname>%s</e2configname>\n<e2configchoices>%s</e2configchoices>\n<e2configvalue>%s</e2configvalue>\n</e2config>\n</e2configs>\n" % (arg, choices, value)
return str_result
I get now
<e2configs>
<encoder number="0">
<e2config>
<e2configname>framerate</e2configname>
<e2configchoices>23976, 24000, 25000, 30000</e2configchoices>
<e2configvalue>25000</e2configvalue>
</e2config>
<e2config>
<e2configname>aspectratio</e2configname>
<e2configlimits>0-9999999999</e2configlimits>
<e2configvalue>2</e2configvalue>
</e2config>
<e2config>
<e2configname>bitrate</e2configname>
<e2configchoices>
50000, 100000, 200000, 500000, 1000000, 1500000, 2000000, 2500000, 3000000, 3500000, 4000000
</e2configchoices>
<e2configvalue>1000000</e2configvalue>
</e2config>
<e2config>
<e2configname>resolution</e2configname>
<e2configchoices>720x480, 720x576, 1280x720</e2configchoices>
<e2configvalue>1280x720</e2configvalue>
</e2config>
</encoder>
<e2config>
<e2configname>port</e2configname>
<e2configchoices/>
<e2configvalue>8013</e2configvalue>
</e2config>
</e2configs>
Veranderd door anudanan, 13 februari 2019 - 14:25