monibuca icon indicating copy to clipboard operation
monibuca copied to clipboard

Can any one help me to resolve mention problem?

Open Rahul-ambiplatforms opened this issue 7 months ago • 21 comments

I have mention my Config file below, i'm trying to pull rtsp url which is perfectly playing and recording that stream and stored in mp4 format, now the problem is i'm trying to play that recorded mp4 files threw the url --> "http://localhost:8081/mp4/vod/test.mp4?start=2025-05-12T13:30:31" as per the documents shared but i'm unable to play recorded file ,can any one help me to resolve this problem or share correct url to play recorded mp4 data ?

Config.yaml

global: http: listenaddr: :8081 location: "^/hdl/(.*)": "/flv/$1" loglevel: debug

admin:

enablelogin: true

record:

Recording configuration

type: mp4 # Recording type: mp4, flv, hls, hlsv7 filepath: "./record" # Recording file save path fragment: 30s # Fragment duration (supports time units: s, m, h) append: false # Whether to append to existing recording

mp4:

Behavior configuration when a stream is published

onsub: pull: ^vod/(.+)$: live/$1 # Forward stream through regex matching onpub: record: ^live/.+: # Match all streams starting with live/ fragment: 30s # Fragment duration of 1 minute filepath: record/$0 # Save path, $0 represents the complete matched stream name

rtsp: pull: live/test: rtsp://admin:@192.168.29.1:554/ch0_1.264

Rahul-ambiplatforms avatar May 12 '25 13:05 Rahul-ambiplatforms

because of your streamPath is live/test , you need to play this url: "http://localhost:8081/mp4/vod1/live/test.mp4?start=2025-05-12T13:30:31"

李宇翔 @.***

langhuihui avatar May 12 '25 13:05 langhuihui

still not playing and at this url i'm getting this data player url : http://localhost:8081/mp4/vod/live/test.mp4?start=2025-05-12T13:55:48.835387200Z

http://localhost:8081/api/record/mp4/list Output: { "code": 0, "message": "", "totalCount": 155, "pageNum": 1, "pageSize": 10, "data": [ { "id": 161, "filePath": "record\live\test\1747058148.mp4", "streamPath": "live/test", "startTime": "2025-05-12T13:55:48.835387200Z", "endTime": "2025-05-12T13:56:18.932835400Z", "eventLevel": "low", "eventName": "", "eventDesc": "" }, { "id": 160, "filePath": "record\live\test\1747058118.mp4", "streamPath": "live/test", "startTime": "2025-05-12T13:55:18.824124300Z", "endTime": "2025-05-12T13:55:48.835387200Z", "eventLevel": "low", "eventName": "", "eventDesc": "" }, { "id": 159, "filePath": "record\live\test\1747058085.mp4", "streamPath": "live/test", "startTime": "2025-05-12T13:54:45.855340900Z", "endTime": "2025-05-12T13:55:18.824124300Z", "eventLevel": "low", "eventName": "", "eventDesc": "" },))

Rahul-ambiplatforms avatar May 12 '25 13:05 Rahul-ambiplatforms

consider of your config , you should play this url http://localhost:8081/mp4/vod/test.mp4?start=2025-05-12T13:55:48Z

langhuihui avatar May 13 '25 12:05 langhuihui

vod/test machs vod/(.+)$ and it will search streamPath live/test ( by live/$1 ) in db

langhuihui avatar May 13 '25 12:05 langhuihui

tryed this but not getting access in monibuca v4 recordings are easily working in vlc player but in this v5 not playing mp4 hevc format

Rahul-ambiplatforms avatar May 13 '25 12:05 Rahul-ambiplatforms

http-mp4 will return fmp4 stream not mp4 file stream. If you what real mp4 format you shoud use /mp4/download/live/test?start=xxxxxx&end=xxxxxxxxx

李宇翔 @.***

langhuihui avatar May 13 '25 12:05 langhuihui

http://localhost:8081/mp4/download/live/test?start=2025-05-12T14:01:19Z&end=2025-05-12T14:01:49Z

i have tried this url in vlc player according to my data but any file is not getting played

Rahul-ambiplatforms avatar May 13 '25 13:05 Rahul-ambiplatforms

you should first use browser to check if you can download the file

李宇翔 @.***

langhuihui avatar May 13 '25 13:05 langhuihui

http://localhost:8081/mp4/download/live/test?start=2025-05-12T14:02:49.323281400Z&end=2025-05-12T14:03:19.395050300Z

my humble request to you can you give me full configuration file which can pull rtsp and record in mp4 format and play url for that recordings

Rahul-ambiplatforms avatar May 13 '25 13:05 Rahul-ambiplatforms

I'll record the operation later for you

langhuihui avatar May 14 '25 04:05 langhuihui

Thank you!!!

Rahul-ambiplatforms avatar May 14 '25 05:05 Rahul-ambiplatforms

Hi @langhuihui,

Thanks for all the guidance shared so far. I just wanted to mention that I’m also facing the same issue as described above..

Would it be possible to know when a working example or configuration might be shared? It would really help validate and move forward on our end.

Happy to test or provide logs if needed. Appreciate your support and the great work on Monibuca!

smk-adiance avatar May 15 '25 12:05 smk-adiance

see this video https://youtu.be/y1xERuKDqBg

langhuihui avatar May 16 '25 01:05 langhuihui

Thank you ! I have been try according to your provided video but facing problem in h265 stream h265 recording are playing but not getting video output only getting audio while playing

Rahul-ambiplatforms avatar May 16 '25 07:05 Rahul-ambiplatforms

we support h265 recording. can you give me a snapshot of your player and play url

langhuihui avatar May 16 '25 07:05 langhuihui

sure, also i have been try with jessibuca player but same problem

Image

Rahul-ambiplatforms avatar May 16 '25 07:05 Rahul-ambiplatforms

OK,please use latest code

langhuihui avatar May 16 '25 07:05 langhuihui

Thank You ! It's Working now

Rahul-ambiplatforms avatar May 16 '25 10:05 Rahul-ambiplatforms

I’m having the same issue as mentioned here.

I followed all the steps and also followed the YouTube video: https://youtu.be/y1xERuKDqBg

From the video, I was able to play the MP4 using this link:

http://localhost:8080/mp4/vod_mp4_127/live/test.mp4?start=1747392724

But the problem is — even though my fragment size is set to 10 seconds and the downloaded file is 10s, when I try to play it on the server, it keeps playing the full live stream instead of just the 10-second part. I tried using both start and end in the URL, but it still plays the full stream continuously.

Image

Also, as shown in the image below, it automatically generates these extra VOD entries when I try to play the recorded stream:

vod_mp4_124/live/test [ MP4 ]

vod_mp4_126/live/test [ MP4 ]

I don’t want these extra files or processes to be created. I just want to play the recorded video fragment directly from the existing stream without generating new entries or continuous playback.

This was working properly in Monibuca v4 — the recorded segments matched the fragment size and played as expected. But in v5, it seems broken or changed.

Any help would be appreciated!

Yogesh-169 avatar May 16 '25 12:05 Yogesh-169

Image

How to kill playback process ?

Rahul-ambiplatforms avatar May 16 '25 12:05 Rahul-ambiplatforms

use POST  /api/stream/stop/{your streamPath}

李宇翔 @.***

langhuihui avatar May 16 '25 13:05 langhuihui