exeldro / obs-source-record

GNU General Public License v2.0
370 stars 43 forks source link

Stream filter not working for sources via RTMP #22

Open coneos opened 3 years ago

coneos commented 3 years ago

Hi Exeldro!

Amazing plugin, thank you so much, really!

  1. Just one issue : I can stream a scene without issue but it doesn't seem to work with a source, at least not for me. I tried on 2 different Windows 10 x64 machines with x264 and got the same results. If I try to stream to twicth it won't receive any stream and if I stream to a local NGINX server set up for recording, I can see that a file gets generated but it stays empty. Same with a VLC RTMP pull I don't get any stream. My humble assumption would be that the plugin does connect to the rtmp server but doesn't send the stream properly.

Here are the logs for a working scene rtmp stream :

18:00:31.558: ---------------------------------
18:00:31.559: [x264 encoder: 'rtmp localcam'] preset: ultrafast
18:00:31.559: [x264 encoder: 'rtmp localcam'] settings:
18:00:31.559:   rate_control: CBR
18:00:31.559:   bitrate:      2500
18:00:31.559:   buffer size:  2500
18:00:31.559:   crf:          23
18:00:31.559:   fps_num:      30
18:00:31.559:   fps_den:      1
18:00:31.559:   width:        1280
18:00:31.559:   height:       720
18:00:31.559:   keyint:       250
18:00:31.559: 
18:00:31.568: ---------------------------------
18:00:31.569: [FFmpeg aac encoder: 'rtmp localcam'] bitrate: 128, channels: 2, channel_layout: 3
18:00:31.569: 
18:00:31.571: [rtmp stream: 'rtmp localcam'] Connecting to RTMP URL rtmp://127.0.0.1/localcam...
18:00:31.574: [rtmp stream: 'rtmp localcam'] Interface: Software Loopback Interface 1 (type 24, 1073 mbps)
18:00:31.576: [rtmp stream: 'rtmp localcam'] Connection to rtmp://127.0.0.1/localcam successful
18:04:00.870: save_or_load_event_callback 1, -761395016
18:04:00.870: obs save event
18:04:07.343: save_or_load_event_callback 1, -761395016
18:04:07.343: obs save event

And the logs for a non-working source rtmp stream (after removing first the scene filter) :

18:07:28.022: [rtmp stream: 'rtmp localcam2'] Connecting to RTMP URL rtmp://127.0.0.1/localcam...
18:07:28.022: [rtmp stream: 'rtmp localcam2'] Interface: Software Loopback Interface 1 (type 24, 1073 mbps)
18:07:28.024: [rtmp stream: 'rtmp localcam2'] Connection to rtmp://127.0.0.1/localcam successful
18:07:34.054: save_or_load_event_callback 1, -761395016
18:07:34.054: obs save event
  1. Another minor issue : If I forget to remove the filter and it was set on always stream when closing OBS. Then when I try to remove the filter and apply it again to create a new stream I will get A LOT of these messages (60 per second) : obs_output_set_video_encoder: tried to set video encoder on output "rtmp localcam" while the output is still active!

Let me know if you need more information and if it works for you : source -> rtmp -> twitch

Thanks for your help and your amazing work :)

Cheers, Pierre