How to change video format in one record for different resolutons

kas1e

New Member
@All

Have such a problem: i have an LGP2 device by which i want to capture the whole desktop in 1920x1080 and old games i running from with 640x480 resolution in the same single video. The output format should be 1920x1080. So far 1920x1080 captures well in h264 (i use h264 because with mjpeg it looks too blurred). But the issue is that once i run the game in 640x40 then it didn't scale well but instead the bottom part of the image just missing (i'd say for about 640x20 is missing). Here it how it looks like:

osb_lgp2_h264.png

Button ctrl+d ctrl+f ctrl+s have no effect (probably because of h264 usage?) and the only way to have proper scaling so all will be fits correctly is to use "mjpeg" video format. Then it loos as expected:

osb_lgp2_mjpeg.png

But then if i will choose "mjpeg" for the whole video then my 1920x1080 is not clean enough.

Now the question: is it possible to somehow "fit" the image in so all will loos correct with H264?
And if that is not possible then another question: is it possible to have some kind of preset or something which will tell to OBS "when we at 1920x1080 use h264? when at 640x480 use mjpeg"

There are logs that i have when having "mjpeg" and "h264" set. i just run and exit for each setting:

2021-12-13 21-18-02.txt - h264
2021-12-13 21-17-08.txt - mjpeg
 

Attachments

  • 2021-12-13 21-18-02.txt
    20.4 KB · Views: 6
  • 2021-12-13 21-17-08.txt
    11 KB · Views: 6

koala

Active Member
If you fit your 640x480 game to the 1920x1080 screen as in your second screenshot, you're distorting the video, because it's not the same aspect ratio. You will see the distortion at the bottom, the navigation circle. In your screenshot it's oval, but I bet it's actually a circle in the original game. All Heads and circles will appear egg-shaped. To keep aspect ratio, black bars need to be added to the left and to the right.

As first step, you should read exactly 640x480 from your capture card, if it is capturing 640x480 material. Set this in the properties of the corresponding OBS source. Then reset the distorted scaling by right-clicking the source->Transform->Reset transform. Then press CTRL-F to fit it to the screen, which will scale the source up and add black bars. You might need to center the source. But not use CTRL-S to stretch to screen, because that will distort your image.
 

kas1e

New Member
As the first step, you should read exactly 640x480 from your capture card, if it is capturing 640x480 material. Set this in the properties of the corresponding OBS source.

The only modes which i can choose from "resolution" in prefs of capture device is : 1920x1080, 1280x720, 720x480 and 720x576. Don't have in the list 640x480.

Then reset the distorted scaling by right-clicking the source->Transform->Reset transform. Then press CTRL-F to fit it to the screen, which will scale the source up and add black bars. You might need to center the source. But not use CTRL-S to stretch to screen, because that will distort your image.

When i tried to choose Reset Transform nothing happens, and pressing CTRL+F also change nothing..
 

kas1e

New Member
Well, the general question then: is it possible to have some preset so once i will switch on my device while recording video to anything which is not 1920x1080 then use "mjpeg" format and once back to 1920x1080 use again h264 (in the same recording session of the same video)
 
Top