restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Issue with rtmp_enhanced_codecs

Open Dag0n opened this issue 1 year ago • 2 comments

I am having an issue when streaming to a RTMP ingest server, it fails to relay the stream across, and the connection times out.

I have tried taking the command from the process details screen and running it seperatly with ffmpeg this also fails too.

ffmpeg -loglevel level+info -err_detect ignore_err -rtmp_enhanced_codecs hvc1,av01,vp09 -i rtmp://[ip]:1935/492adc78-df62-46f5-83f7-fa9f1a4fe25a.stream -map 0:0 -codec:v copy -map 0:1 -codec:a copy -f flv -rtmp_enhanced_codecs hvc1,av01,vp09 -rtmp_playpath [removed] -rtmp_flashver FMLE/3.0 rtmp://[removed]

However when I remove rtmp_enhanced_codecs from the output this works fine. Is there anywhere I can amend this in restreamer?

Dag0n avatar Jul 13 '24 19:07 Dag0n

Looking a little more into this I can see that it writes this into /core/config/db.json so it can be removed manually, but any amendments in the UI repopulate this rtmp_enhanced_codecs back again.

Dag0n avatar Jul 13 '24 20:07 Dag0n

We will look into that. Usually the -rtmp_enhanced_codecs option shouldn't interfere with normal operation. Do you stream to a specific service or does it happen if you stream to any RTMP target?

ioppermann avatar Aug 23 '24 12:08 ioppermann

I'm not sure why this simple command is using so much CPU:

root      3054 96.4  0.9  60940 17724 pts/0    Sl+  07:05   0:52 /usr/bin/ffmpeg -loglevel level+info -err_detect ignore_err -re -i http://admin:hQVAlFzlB8OhUTFdPV@localhost:8080/memfs/809f7467-994f-4748-9cea-afdf55786a4e.m3u8 -map 0:0 -codec:v copy -map 0:1 -codec:a copy -f flv -rtmp_enhanced_codecs hvc1,av01 rtmps://b.rtmp.youtube.com/live2?backup=1/***

I suspect that the problem is with the rtmp_enhanced_codecs as well.

When I switch from rtmp ingest to HLS ingest, the CPU usage goes down almost to 0:

root      3140 17.0  0.9  62508 18908 pts/0    Sl+  07:08   0:12 /usr/bin/ffmpeg -loglevel level+info -err_detect ignore_err -re -i http://admin:hQVAlFzlB8OhUTFdPV@localhost:8080/memfs/**.m3u8 -map 0:0 -codec:v copy -map 0:1 -codec:a copy -f hls -start_number 0 -hls_time 2 -hls_delete_threshold 3 -hls_list_size 5 -hls_flags append_list -hls_segment_type mpegts -http_persistent 1 -y -method PUT -hls_segment_filename https://b.upload.youtube.com/http_upload_hls?cid=**&copy=1&file=**_%d.ts https://b.upload.youtube.com/http_upload_hls?cid=**&copy=1&file=**.m3u8

ethaniel avatar Jul 05 '25 06:07 ethaniel