Hi, if you select the appropriate recording profile in RecorderEndpoint, no transcoding will take place. We use this feature for
OpenVidu individual recordings, where the preferred codec during WebRTC negotiation is VP8, so the RecorderEndpoint is instructed to save WEBM files and thus the whole process avoids transcoding, and uses little CPU.
Currently Kurento doesn't allow to specify codec and container; instead, they are both tied up in the so-called "recording profile". Two that make use of H.264 are MP4 and MKV. So, I'd suggest doing this:
* Recording your H.264 stream with the MKV profile.
* Checking CPU usage to verify no transcoding is being done (it should be obvious as it takes a lot of CPU). Also the "Transcoding active/inactive" messages and application events will help here.
* Remuxing the resulting files with a post-process step. Something like "ffmpeg -i file.mkv -c:a copy -c:v copy file.ts".
That is probably much simpler and easier to manage than writing a whole custom plugin for Kurento.