react-native-nodemediaclient icon indicating copy to clipboard operation
react-native-nodemediaclient copied to clipboard

How to set the published video dimensions?

Open implicit-invocation opened this issue 5 years ago • 9 comments

For the preview video generated by NodeCameraView, I can set the style of it to have a nice vertical fullscreen video.
But the published video seems to have a hard coded (default) size. So the video as viewed in NodePlayerView is cropped.
So how to solve this problem?

implicit-invocation avatar May 14 '19 05:05 implicit-invocation

Hi you try this lib in this days?, I have a problem on android with camera "Accessing view manager configs directly off UIManager via UIManager['RCTVideo'] is no longer supported." Do you have a problem with camera on android too? thanks

vaskomichal avatar May 15 '19 15:05 vaskomichal

Oh I've got this problem too. Have you solved it yet?

alexandernogovitsyn avatar May 24 '19 06:05 alexandernogovitsyn

try changing the preset of the video prop, it’s not documented anywhere, that’s strange

implicit-invocation avatar May 24 '19 07:05 implicit-invocation

The Android source code contains these video presets:

    public static final int VIDEO_PPRESET_16X9_270 = 0;
    public static final int VIDEO_PPRESET_16X9_360 = 1;
    public static final int VIDEO_PPRESET_16X9_480 = 2;
    public static final int VIDEO_PPRESET_16X9_540 = 3;
    public static final int VIDEO_PPRESET_16X9_720 = 4;

    public static final int VIDEO_PPRESET_4X3_270 = 10;
    public static final int VIDEO_PPRESET_4X3_360 = 11;
    public static final int VIDEO_PPRESET_4X3_480 = 12;
    public static final int VIDEO_PPRESET_4X3_540 = 13;
    public static final int VIDEO_PPRESET_4X3_720 = 14;

    public static final int VIDEO_PPRESET_1X1_270 = 20;
    public static final int VIDEO_PPRESET_1X1_360 = 21;
    public static final int VIDEO_PPRESET_1X1_480 = 22;
    public static final int VIDEO_PPRESET_1X1_540 = 23;
    public static final int VIDEO_PPRESET_1X1_720 = 24;

pmagnussen avatar May 30 '19 06:05 pmagnussen

The same problem arises, how to set the size and resolution

CocktailZY avatar Jul 10 '19 03:07 CocktailZY

I changed the preset to 4 and server shows hd size but low quality! @pmagnussen

cybercoder avatar Dec 05 '19 12:12 cybercoder

The Android source code contains these video presets:

    public static final int VIDEO_PPRESET_16X9_270 = 0;
    public static final int VIDEO_PPRESET_16X9_360 = 1;
    public static final int VIDEO_PPRESET_16X9_480 = 2;
    public static final int VIDEO_PPRESET_16X9_540 = 3;
    public static final int VIDEO_PPRESET_16X9_720 = 4;

    public static final int VIDEO_PPRESET_4X3_270 = 10;
    public static final int VIDEO_PPRESET_4X3_360 = 11;
    public static final int VIDEO_PPRESET_4X3_480 = 12;
    public static final int VIDEO_PPRESET_4X3_540 = 13;
    public static final int VIDEO_PPRESET_4X3_720 = 14;

    public static final int VIDEO_PPRESET_1X1_270 = 20;
    public static final int VIDEO_PPRESET_1X1_360 = 21;
    public static final int VIDEO_PPRESET_1X1_480 = 22;
    public static final int VIDEO_PPRESET_1X1_540 = 23;
    public static final int VIDEO_PPRESET_1X1_720 = 24;

Just resize the video no changes in Actual quality, I need to capture HD :(((

cybercoder avatar Dec 06 '19 19:12 cybercoder

@cybercoder any update on this?

ManigandanRaamanathan avatar Mar 24 '20 17:03 ManigandanRaamanathan

Any update?

Andriiklymiuk avatar Jul 29 '21 15:07 Andriiklymiuk