mjr conversion output issue

193 views
Skip to first unread message

barak pahima

unread,
May 2, 2022, 4:34:25 AM5/2/22
to meetecho-janus
Hi,
I use janus-pp-rec to convert recorded file with h264 codec.

First I tried to convert it to .h264 extension but got error that only mkv and mp4 are supported extension for h264 codec (in the docs it seems that only .h264 and mkv extensions are supported - maybe the docs are not up to date?)

I tried again to convert that file to mp4 and the conversion succeeded but when I tried to play the new mp4 file using VLC the video was corrupted with 1 FPS. (the original FPS is 30). I also tried the play this file using ffplay and got the same results.

Finally I converted the mp4 (which generated my janus-pp-rec) to .h264 with ffmpeg using this command: .\ffmpeg.exe -i .\file.mp4 -c copy -f h264 file.h264 and then play it using ffplay and VLC and everything was fine. it worked.

Do you have any idea why the conversion did not work without ffmpeg interfere? 


Erwin Dee Junio Villejo

unread,
May 2, 2022, 4:59:41 AM5/2/22
to meetecho-janus
Hello,

mp4 is a container format. h264 is a video codec. mp4 container usually contains h264 video and aac audio.

janus-pp-rec only re-arranges the RTP dump and outputs the underlying media stream to the specified container. It doesn't do any transcoding (change of video codec).

First, inspect the actual codec of the RTP media that was recorded. Use `janus-pp-rec -H` or `janus-pp-rec -e`. If the codec is indeed h264, you use janus-pp-rec to dump the RTP media to mp4 container: `janus-pp-rec video.mjr video.mp4`. If the codec is vp8 or vp9, you dump it to webm container: `janus-pp-rec video.mjr video.webm`.

Once you have the recorded video in the appropriate container format, you can proceed to post-process it whichever way you want (e.g., transcode or composite it using ffmpeg).

Br, Erwin

barak pahima

unread,
May 2, 2022, 5:05:37 AM5/2/22
to meetecho-janus
Thank you for your answer.
I know that mp4 is container and h264 is the codec. 
As I mentioned I know the codec of the stream which Janus record. I can control it. I did exactly what you mentioned.

Please read again what I wrote, I'm facing with a problem which I cant understand and you replied to me in completely different context.

Thank you 

ב-יום שני, 2 במאי 2022 בשעה 11:59:41 UTC+3, erwin....@truedigital.com כתב/ה:

Lorenzo Miniero

unread,
May 2, 2022, 5:55:41 AM5/2/22
to meetecho-janus
I think Erwin provided a detailed overview of the tool and tried to be helpful, so you should thank him for his time, rather than being a dick about it.

L.

barak pahima

unread,
May 2, 2022, 6:29:20 AM5/2/22
to meetecho-janus
Oh sorry I did not mean to be rude. I thought Erwin did not understood the problem I'm facing with - my apologize.


ב-יום שני, 2 במאי 2022 בשעה 12:55:41 UTC+3, lmin...@gmail.com כתב/ה:
Reply all
Reply to author
Forward
0 new messages