Downsample and Upsample videos in matlab
이전 댓글 표시
I am working with videos in matlab and the code is taking so much time to give me results, that's why i thought downsampling and upsmaling the video could be the best solution, can anyone help me with that.
댓글 수: 1
Star Strider
2022년 7월 16일
What do you intend by ‘upsampling’ and ‘downsampling’?
답변 (2개)
KSSV
2022년 7월 16일
0 개 추천
댓글 수: 10
Ala baccar
2022년 7월 16일
KSSV
2022년 7월 16일
What do you mean by so long quantitatively?
Ala baccar
2022년 7월 16일
KSSV
2022년 7월 16일
Show us your code....
Ala baccar
2022년 7월 16일
편집: Ala baccar
2022년 7월 16일
Image Analyst
2022년 7월 16일
What are i1, i2, i3, and i4 for? Why are you doing something 4 times? Is there any difference?
Ala baccar
2022년 7월 16일
Image Analyst
2022년 7월 16일
Windows does not let you create any files under "C:\Program Files". Choose another location.
Ala baccar
2022년 7월 16일
Image Analyst
2022년 7월 18일
When using VideoWriter, it creates a new file. So all you need to do is to make sure the folder exists:
You can't append c:\resize onto your current folder because then you'd have two drive letters and two colons in the filename. Just leave off the colon off
outputFullFileName = fullfile(pwd, 'C:\resize\NewRhinos.avi')
to see.
>> fullfile(pwd, 'C:\resize\NewRhinos.avi')
ans =
'C:\Users\alabaccar\Documents\MATLAB\work\Tests\C:\resize\NewRhinos.avi'
See - that's not a proper filename.
So do this:
% Create a VideoWriter object to write the video out to a new, different file.
outputFolder = 'C:\resize';
outputFullFileName = fullfile(outputFolder, 'NewRhinos.avi');
fprintf('Creating new output file : "%s".\n', outputFullFileName)
outputVideoWriterObject = VideoWriter(outputFullFileName);
Image Analyst
2022년 7월 16일
0 개 추천
I already have a demo for resizing a video. See attached.
댓글 수: 1
Image Analyst
2022년 7월 16일
If you say that it takes too long, how long does it take and what is the maximum time you will allow? Perhaps you can use parfor and the Parallel Processing Toolbox, and a faster computer, to speed it up.
카테고리
도움말 센터 및 File Exchange에서 Video Formats and Interfaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
