sihy 0 Posted September 6, 2021 Share Posted September 6, 2021 (edited) Hi, Thanks for producing Emby, great software. Most of my files are TV recordings and unfortunately Emby/ffprobe doesn't correctly detect that the video is interlaced a lot of the time. I'm using the http/json API to modify .Overview and .Name by requesting /User/{UserID}/Items/{Id}, modifying the appropriate fields, and then POSTing back to /User/Items/{Id}. I'm using bash and jq, here is the POSTed json (embyjson is the original received from Emby): newmetadata="$(echo "${embyjson}" | jq -r --arg a "${overview}" --arg b "${name}" --arg inda ${mediasourcesindex} --arg indb ${mediastreamsindex} '.Overview=$a | .Name=$b | .MediaSources[$inda|tonumber].MediaStreams[$indb|tonumber].IsInterlaced=true | .MediaStreams[$indb|tonumber].IsInterlaced=true')" Echoing this gives the expected valid json, and it is accepted by Emby. The MediaSources and MediaStreams indices are determined/changed for the video streams only, the rest are left as they are (false). The overview and name are then correctly shown in Emby clients but the IsInterlaced values of true are not changed. Querying the API for the json again reveals that the IsInterlaced values remain as false. Is there any way to change the IsInterlaced values by API or can this only be done by an Emby server ffprobe, or am I doing it wrong? Cheers, Simon Edited September 6, 2021 by sihy Link to comment Share on other sites More sharing options...
Luke 37114 Posted September 6, 2021 Share Posted September 6, 2021 Hi, welcome and thanks for the feedback. There is currently no way to change this value. Link to comment Share on other sites More sharing options...
sihy 0 Posted September 7, 2021 Author Share Posted September 7, 2021 Ah, that's a pity. Many thanks, Simon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now