pkviet / obs-studio

OBS - Free and open source software for live streaming and screen recording
https://obsproject.com/mantis/
GNU General Public License v2.0
151 stars 20 forks source link

WIP: [srt-track] Allow streaming with different codec than recording #86

Closed krakow10 closed 1 year ago

krakow10 commented 1 year ago

I had an issue while using the old multi audio patches with the new recording codec selection where I couldn't use a different codec for streaming from the one used for recording. I fired up Ctrl+C and Ctrl+V and got it to build but alas it crashes when I press start stream. It gave this warning message before crashing:

warning: Output 'adv_stream': Tried to use obs_output_set_mixers on an encoded output
warning: Output 'adv_stream': Tried to use obs_output_set_media on an encoded output

I was not able to figure out what went wrong by searching for the function names, so here is my work as far as I got.

pkviet commented 1 year ago

Did you try my pr on obsproject/obs-studio ? I didn't test other codecs than the regular ones though . I had no issues.

pkviet commented 1 year ago

Mmh indeed in the pr i'm using the same encoders for recording and streaming. I'll change that. Easy fix.