USB microscope 2560x1440 capture is saved as 1920x1080

wtechgo

New Member
The microscope can capture 2560x1440 and I have done so successfully with gucview using YV12.
I used the same settings in OBS.
2022-12-13_12-39.png


However, this is the output from mediainfo:

General
Unique ID : 61155454847497463005344035614915560548 (0x2E021CB785EFFA245AB433163A740464)
Complete name : 2022-12-13 12-42-11.mkv
Format : Matroska
Format version : Version 4
File size : 25.0 MiB
Duration : 17 s 117 ms
Overall bit rate : 12.2 Mb/s
Writing application : Lavf59.16.100
Writing library : Lavf59.16.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 17 s 117 ms
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 164
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : No
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 17 s 88 ms
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Title : simple_aac_recording
Default : No
Forced : No

I actually wanted to choose H264 with 2560x1440 but that option is not displayed.
Motion-JPEG can do 2560x1440 but for some reason recording is all choppy and unworkable.

Any ideas?
 

Tuna

Member
You would have to change your canvas size to a higher resolution if you wanted to record at a higher one. But note that will increase encoder load. Since your machine seems to struggle at 1080p60 I call you will have less fun at 1440p60.
 

wtechgo

New Member
You would have to change your canvas size to a higher resolution if you wanted to record at a higher one. But note that will increase encoder load. Since your machine seems to struggle at 1080p60 I call you will have less fun at 1440p60.
I tried your suggestion and it works well.
My 4 cores peak at 70% which is fine. Tyvm.

I have created 2 profiles to accommodate these 2 scenarios (regular screen rec vs USB microscope).
Now I wonder if it's possible to link those profiles to the scenes.
I have no doubt I'll forget to switch profiles somewhere in the future :)

Thanks again bro.
 

AaronD

Member
I tried your suggestion and it works well.
My 4 cores peak at 70% which is fine. Tyvm.

I have created 2 profiles to accommodate these 2 scenarios (regular screen rec vs USB microscope).
Now I wonder if it's possible to link those profiles to the scenes.
I have no doubt I'll forget to switch profiles somewhere in the future :)

Thanks again bro.
OBS is meant to produce a single continuous video. So it doesn't make sense for the frame size to change from one scene to another. That possibility is intentionally not there.

You could, however, specify a different profile on the command line. Open a terminal and type obs --help for a list of what you can do. Once you have that, you can make either a desktop file or a script for each different option, and run the appropriate one for what you're doing at the moment.
(I use scripts myself: 300-some lines in bash to set up a rather complex rig, with OBS doing visuals, Ardour for audio, and a few other things)
 
Last edited:
Top