필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Why a video is not straight?

조회 수: 2 (최근 30일)
Miguel Reina
Miguel Reina 2017년 12월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I am displaying a video in a matlab GUIDE and i have this result
This is the code i am using for displaying the video
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
videoSrc = VideoReader('042.MOV');
while hasFrame(videoSrc)
vidFrame = readFrame(videoSrc);
image(vidFrame, 'Parent', handles.axes1);
set(handles.axes1, 'Visible', 'off');
pause(1/videoSrc.FrameRate);
end
clear obj
How can i get my video straight? When i used the media player it looks fine
  댓글 수: 3
Miguel Reina
Miguel Reina 2017년 12월 29일
편집: Miguel Reina 2017년 12월 29일
Yes, I am on a Mac
Walter Roberson
Walter Roberson 2017년 12월 29일
편집: Walter Roberson 2017년 12월 29일
R2017b on El Capitan, it works for me.
Try
implay('042.MOV');

답변 (2개)

Image Analyst
Image Analyst 2017년 12월 20일
Looks like it doesn't understand the encoding. Can you use implay() instead?
  댓글 수: 6
Miguel Reina
Miguel Reina 2017년 12월 25일
편집: Walter Roberson 2017년 12월 29일
Image Analyst
Image Analyst 2017년 12월 26일
I can't even play it.
Error using VideoReader/init (line 619)
Unable to determine the codec required.
Error in VideoReader (line 172)
obj.init(fileName);
Error in test4 (line 1)
videoSrc = VideoReader('042.MOV');
Perhaps it was because of that emergency recall Apple had for Windows .mov decoders where they asked all windows users to uninstall Quicktime for Windows because of an unfixable security problem with it. Click here

Image Analyst
Image Analyst 2017년 12월 30일

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by