toxic icon indicating copy to clipboard operation
toxic copied to clipboard

Very small video on videocall

Open alexeysvrv opened this issue 7 years ago • 11 comments

When you turn on the video, there is a very small window with an outgoing video and at the same time within the video stream, as I call Ehobot. OS Ubuntu 14.04, Toxic version from the repository to the latest Jenkins. Thank you. I enclose screenshots Incidentally, by increasing the window, its stretching, the video does not increase, and the remaining space in the box is filled with black. -240 -239

alexeysvrv avatar Aug 10 '16 07:08 alexeysvrv

Easy solution is to disable the resizing on the window. Otherwise you have to write down the resizing of the image. You may take the one from utox, th's quite ugly, because it does not keep the ratio.

metala avatar Aug 10 '16 13:08 metala

@metala How do I do that the image in full screen or half screen?

alexeysvrv avatar Aug 10 '16 13:08 alexeysvrv

If you can code it yourself, here is the scaling in uTox: https://github.com/GrayHatter/uTox/blob/develop/src/xlib/video.c

    /* scale image if needed */
    uint8_t *new_data = malloc(attrs.width * attrs.height * 4);
    if (new_data && (attrs.width != width || attrs.height != height)) {
        scale_rgbx_image(img_data, width, height, new_data, attrs.width, attrs.height);
        image.data = (char*)new_data;
    }

If it's just one off you may try to hardcode it here: https://github.com/JFreegman/toxic/blob/master/src/video_device.c

        /* Setup video format */
        struct v4l2_format fmt;
        memset(&(fmt), 0, sizeof(fmt));

        fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
        if( -1 == xioctl(device->fd, VIDIOC_S_FMT, &fmt) ) {
            close(device->fd);
            free(device);
            unlock;
            return vde_FailedStart;
        }

metala avatar Aug 10 '16 19:08 metala

@metala I'm not a developer, I'm a regular user. It is necessary to wait for the correction in the code?

alexeysvrv avatar Aug 10 '16 19:08 alexeysvrv

@alexeysvrv Well then.. I cannot help at the moment, if you can lure someone else to fix it, it would be wondeful. Try using qTox/uTox instead. In most cases you don't expect video in console-based application, so it's quite unusual for toxic and pretty awesome that it has even support of video calls.

metala avatar Aug 11 '16 06:08 metala

@JFreegman Any progress?

alexeysvrv avatar Oct 12 '16 20:10 alexeysvrv

You might want to ask @mannol about this, I didn't work on Toxic's video.

JFreegman avatar Oct 12 '16 20:10 JFreegman

@mannol You can help?

alexeysvrv avatar Oct 13 '16 04:10 alexeysvrv

Implementing #126 could relate here.

Making a line in the conf file to specify aa view or windowed-picture view.

eaterjolly avatar Dec 26 '17 19:12 eaterjolly

@eaterjolly Please, help with this issue

alexeysvrv avatar Dec 26 '17 19:12 alexeysvrv

Hi.

I recently started to use Toxic which I really like.

The only drawback I could find so far is the very small video size.

Is there any chance to have this fixed? That would be really awesome!

If a fix for dynamic resizing is not an option I would already be very happy if the initial default size was twice as big.

My toxic: Toxic version 0.8.2_r1820 Toxcore version 0.2.2

I'd be happy to help testing.

Thank you very much!

krasjev avatar May 30 '18 21:05 krasjev

You can now use the /res command to change the size of the window. You need to do that before you start the call for it to take effect.

JFreegman avatar Jan 25 '24 19:01 JFreegman