The easiest place to start would be with
posting a log file of a recording attempt.
here are my logs, could you please have a look?
Shared with Dropbox
www.dropbox.com
Neither. Both formats have the requirement to write metadata about the file at the completion of recording. If anything happens (such as a crash), then the entire video is corrupted. Your best option is to record directly to .mkv, and remux to .mp4 if needed. This can be done automatically via OBS's advanced settings, or manually through the file menu.
If I record to mkv and then app crashes, does this mean I will be able to have the movie until the crash? Is mkv quality inferior to move or mp4 or exactly the same? Also why are the file sizes really small for a video?
Depends on your hardware. Need the log file.
If you're talking about streaming and recording at the same time, then that is true if you have separate encoding settings for each. You do have the option to "use stream encoder" for your recording setting, which will only have the one encoding session going both to stream and to your local recording.
Im connecting my phone via scrcpy, projecting it onto bigger screen, opening camera app on the phone, then screen capturing form the bigger screen to obs. Does this mean Im both recording and streaming or only recording?
If you're talking about the preview, then no. The preview is just that -- a preview of what the GPU has composited together before it is sent to the encoding process. This compositing happens whether you enable preview or not, hiding preview just eliminates having the GPU output it visually to you.
Disabling the preview is only really a recommendation for very specific instances for performance reasons. If you are talking about what's happening on the preview lagging behind realtime, this is normal -- this is the nature of digital compositing. Nothing is true realtime, since processing takes time.
so if I turn off the preview, the recording wont be smoother?
Bitrate causing lag is going to be the result of your network not being able to handle higher bitrate. It is not an indication of performance.
why network? Im projecting phone camera app screen to my monitor and recording it, there is no network involved.. when I set recording bitrate to 20k the recording is too laggy and when I watch the recording it is also laggy, only way its not laggy is just to leave it to automatic quality mode and that gives me only 3k, why is that?
Changing your monitor resolution won't change performance unless you're including that monitor as a display capture source. It does not have any affect otherwise.
I'm recording the phone s camera app image on that screen, so does recording that screen on bigger screen with higher resolution would create more quality recording outputs but would mean more lag in the recorded file? Would you advise me to record screen on smaller 720p screen instead of bigger screen with almost 1080p resolution?
Changing your camera to 4k will definitely have a performance impact, and is probably not going to get you any more quality since it will be downscaled anyway.
But since the camera pp will show 4k quality, I think that will be reflected in the projection to the screen and hence the recording. even tough it will be downscaled, the camera app will show 4k image quality and the downscaled which is better image quality than recording 1080p camera image on 1080p monitor I think..
Set your mic device to the specific device you want to use instead of leaving it at "Default".
It still captures audio from my condenser microphone even tough I set it to laptop built in microphone..How can I fix this?
Probably. The larger the resolution of a source you are including into OBS, the more processing will need to be done. The impact of this depends on what hardware you have though.
Do you think recording via smartphone would produce better quality video than recording what the camera app of the phone projects to my PC screen or the same?
That depends on your own workflow. If you're worried about being able to separate out multiple tracks for editing afterward, OBS has the ability to output to multiple tracks (set this up in advanced audio options, and make sure each audio track is enabled in your recording output settings).
If you're trying to offload processing from OBS onto your DAW for audio, then that is not ideal. Audio processing on OBS is very lightweight, plus you would lose the audio/video sync that comes from everything being recorded together. Not to mention just running a DAW would probably create more of an overhead for total processing anyway.