Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Video quality issue after trimming


Hi,

We are using api to trim our 360 videos and then playing them.

API used: https://developer.jwplayer.com/jw-platform/reference/v1/methods/videos/create.html

We are using trim_in_point and trim_out_point params while using this api. Video is being cut properly but the issue is that the result video is of very low quality, video is only in two quality outputs 180p and 270p. But in actual, source video is 1080p and if we don't use trim in/out in the api the videos shows will all qualities.

What can we do to have trimmed videos also in hd quality.

Best.

9 Community Answers

Todd

JW Player Support Agent  
0 rated :

How long have you been waiting for the higher quality transcodes? And how long is your uploaded video? And how many videos are you uploading at the same time?

The video duration determines how long the transcode creation takes. And if you are uploading more than 10 videos in quick succession, the later uploads are deprioritized in the queue to allow uploads from other customers to be processed, assuming they did not submit more than 10 videos.

Vishal Srivastava

User  
0 rated :

After waiting for even 30 mins we can not see high quality transcodes. Even if we check next day even then only 2 transcodes are available 180p and 270p. We are not uploading multiple videos at one time. Currently it is single video that we are trimming at one time.

Please help!

Vishal Srivastava

User  
0 rated :

We are using currently trim api, do we need to upgrade from free to paid account to get high quality transcodes. We have seen this message on videos if we want to trim them on your website.


"Trimming is only available to Premium, Platinum, and Enterprise accounts".

Todd

JW Player Support Agent  
0 rated :

What is the quality of your original upload? We do not upscale to higher qualities, so you must upload a 1080p original in order to get a 1080p transcode.

Yes, you will need to upgrade in order to have the trimming capability.

Todd

JW Player Support Agent  
0 rated :

I am seeing 1080p uploads to your account and the corresponding 1080p transcode sources.

Vishal Srivastava

User  
0 rated :


When we upload original video we get 1080p transcode

but when we tried to trim the same video via your api using trim_in_point and trim_out_point we wont

get 1080p transcode sources in trimmed video. This is main issue we are facing here.

Please suggest

Todd

JW Player Support Agent  
0 rated :

I was not able to reproduce this. Here are my reproduction steps:

1) Uploaded a 1080p video
2) Verified that all the transcodes were complete and that the 1080p transcode was available
3) Sent a videos/update call and set the trim in and trim out points, update_file to true, and provided the download_url to fetch the file again
4) Verified that a 1080p transcode of the new trimmed video was available

Can you provide your reproduction steps for what you are seeing?

Vishal Srivastava

User  
0 rated :

When we upload video with simple /video/create method we get 1080p transcodes with following code -

$BotrAPI = new BotrAPI(JW_API_KEY,JW_API_SECRET);
$BotrCreateResponse = $BotrAPI->call('/videos/create',array('custom.stereomode'=>'monoscopic'));

After successful upload we get video key and then we again call same API /video/create with below param to trim uploaded video -

$botrRequestArray = array();
$botrRequestArray['date'] = time();
$botrRequestArray['update_file'] = 1;
$botrRequestArray['video_key'] = video_key;
$botrRequestArray['trim_in_point'] = 'trim_in_point';
$botrRequestArray['trim_out_point'] = trim_out_point';
$botrRequestArray['download_url'] = 'http://content.jwplatform.com/videos/'.video_key.'.mp4';
$botr_api->call("/videos/create",$botrRequestArray);

Here you can find JW preview of both original and trimmed video -

Original Video with 1080p transcode - https://content.jwplatform.com/previews/wKJ7tL2T-dyjWxBc2
Trimmed video via api - https://content.jwplatform.com/previews/yEVVlG0s-dyjWxBc2

Todd

JW Player Support Agent  
0 rated :

I think I found the problem.

Your download_url at http://content.jwplatform.com/videos/‘.video_key.’.mp4 points to a 270p video, not your original upload. You would need to point to a passthrough conversion or point to the same file you initially uploaded to us.

This question has received the maximum number of answers.