# Framing issues with External videos , External video sources are getting cropped in the call

**URL:** <https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [June 1, 2023, 4:03pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482 "2023-06-01T16:03:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakrishna](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sivakrishna](https://devforum.zoom.us/u/sivakrishna)\
**Post date:** [June 1, 2023, 4:03pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/1 "2023-06-01T16:03:15Z")

</div>

Framing issues with external video, while giving the video input as other external video sources, video is getting cropped. Video is out of frame and unable to watch entire framing video.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 2, 2023, 1:47am UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/2 "2023-06-02T01:47:44Z")

</div>

Hey @sivakrishna

Thanks for your feedback.

Are you using Firefox or Safari or a mobile browser? VSDK will crop the video to the 16/9 ratio by default, Setting the `originalRatio` option in `stream.startVideo` method can enable the original ratio when capturing video.

> **[CaptureVideoOption | Zoom Video SDK for Web - 1.7.5](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/CaptureVideoOption.html#originalRatio)**
>
> Documentation for Zoom Video SDK for Web - 1.7.5

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sivakrishna](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sivakrishna](https://devforum.zoom.us/u/sivakrishna)\
**Post date:** [June 2, 2023, 2:25pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/3 "2023-06-02T14:25:59Z")

</div>

Hi Vic,  
Thank you for the response. We have implemented 16/9 ratio and We are using Chrome, Safari both web and mobile browsers.

This issue is still there. Any further leads will be really helpful.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 2, 2023, 2:33pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/4 "2023-06-02T14:33:27Z")

</div>

Hey @sivakrishna

Can you test on the official WebRTC sample to check whether the same issue occurs with the external video?

> **[Select audio and video sources](https://webrtc.github.io/samples/src/content/devices/input-output/)**
>
> WebRTC code samples

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sivakrishna](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sivakrishna](https://devforum.zoom.us/u/sivakrishna)\
**Post date:** [June 5, 2023, 2:17pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/5 "2023-06-05T14:17:37Z")

</div>

Hi Vic,

Thank you for the response. We have already integrated the code OriginalRatio. Still we are unable to achieve the full video without cropping.

Our Code Sample is :  
this.stream.startVideo({ originalRatio: true, ptz: true, hd: true, videoElement: document.querySelector(‘#self-view-video’) }).then(()

---

<div class="post-metadata">

**Author:** ![sivakrishna](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sivakrishna](https://devforum.zoom.us/u/sivakrishna)\
**Post date:** [June 5, 2023, 3:04pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/6 "2023-06-05T15:04:28Z")

</div>

I have verified with the OfficialWebRTC Sample check for external video. Here in WebRTC, I can see sample video without cropping. Means I can able to see full video. Where as in Zoom call using Video sdk, External Videos are getting cropped in top and bottom frame.

I’m unable to upload screenshots here for better understanding but I’m facing an error while upload them here in my reply.

---

<div class="post-metadata">

**Author:** ![sivakrishna](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sivakrishna](https://devforum.zoom.us/u/sivakrishna)\
**Post date:** [June 12, 2023, 8:52pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/7 "2023-06-12T20:52:35Z")

</div>

Hi,

I have tried, devforms suggestions for our problem. We are followed all the points mentioned in devforms and still no luck. here the code what we are using at the moment in our application. Please let us know, should we need to add any additional properties or attributes to achieve full frame video.

if ((!this.stream.isSupportMultipleVideos() && (typeof (window as any).OffscreenCanvas === ‘function’))) {  
this.stream.startVideo({ originalRatio: true, ptz: true, hd: true, videoElement: document.querySelector(‘#self-view-video’) }).then(() =\> {  
if (!(typeof (window as any).MediaStreamTrackProcessor === ‘function’)) {  
this.stream.renderVideo(document.querySelector(‘#self-view-canvas’), this.client.getCurrentUserInfo().userId, 1920, 1080, 0, 0, 3).then(() =\> {  
this.isVideoStarted = true;  
this.spinner.show();

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 21, 2023, 2:05am UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/8 "2023-06-21T02:05:16Z")

</div>

Hey @sivakrishna

Sorry for the late reply.

I saw the screenshot provided by our service engineer, the camera captured video steam in 4/3 ratio, but in Video SDK, the stream was cropped in 16/9 ratio.

A workaround for this is setting the `captureHeight` and `captureWidth` parameters when calling `stream.startVideo` method, For example, “captureWidth= 640,captureHeight=480” for the cameras that are not supported HD video.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 21, 2023, 12:06pm UTC](https://devforum.zoom.us/t/framing-issues-with-external-videos-external-video-sources-are-getting-cropped-in-the-call/89482/9 "2023-07-21T12:06:05Z")

</div>

Closed on July 21, 2023, 12:06pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
