[Magisk] tsalta:
Hello guys im trying from long time to understand why Gcam no matter from the version the slow motion never worked on HTC 10 and i think is related to the media_profiles.xml because we miss some important lines in order the Slow Motion to work properly.

Anyway sometimes when the things go wrong and edit manually the Media xml file i can recive a nasty bootlopp and in order to not repeat the same all the times

can anyone who is familiar with Magisc create a simple module?! for test purpose.

This lines to be added to the Media_profiles.xml

No mater from the Buld you know that the Gcam always crash and force close when you switch to Slow Motion

But only with this MOD magisk module

https://xdaforums.com/apps/magisk/module-gcam-patch-t3677993

In every build ive try i was able to switch to Slow Mo without a crash also im able to press the button of recorder and i saw the sign 120 FPS under slow motion the problem is that for now the VIEWER freeze and im not able to record a video.

But this module only add some lines in the media_presets xml so thats why i think we are close and im sure is something related just for the xml file something in our HTC 10 is different in that media profiles xml and we need to find out what exactly!

I think the GCAM cant read the seeting correctly from the XML if they are not corectly set or writen.

for example in my Media profiles by default the SLOW MOTION is missing but this dont preven the Stock HTC CAM to record slow mo maybe we have to add this in order if we want to make GCAM to work as well

If you wish chek your media_profiles.xml do u have something similar i think this is the correct lines that we are missing and have to add this line but because im tired of bootlops if im wrong everytime im looking for methood how to use it like a MODULE and in case something went wrong to be able to revert back to stock.

In the magisk module above some of the lines are incorrect and maybe thats why the view freeze

and think this are the correct we all have to add.

<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/720P : 720p@120fps; 27.0 Mbps -->

<EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="27000000"

width="1280"

height="720"

frameRate="120" />

<!-- audio setting is ignored -->

<Audio codec="aac"

bitRate="96000"

sampleRate="48000"

channels="2" />

</EncoderProfile>

<EncoderProfile quality="highspeed720p" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="27000000"

width="1280"

height="720"

frameRate="120" />

<!-- audio setting is ignored -->

<Audio codec="aac"

bitRate="96000"

sampleRate="48000"

channels="2" />

</EncoderProfile>

<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/1080P : 1080p@60fps; 34.0 Mbps -->

<EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="34000000"

width="1920"

height="1080"

frameRate="60" />

<!-- audio setting is ignored -->

<Audio codec="aac"

bitRate="96000"

sampleRate="48000"

channels="2" />

</EncoderProfile>

I think this is the missing part for the Slow Motion to work properly on HTC 10 and few other devices as well, because we by default don`t have that config in our media profiles.

Will be very thankfull.

Thanks