필터 지우기
필터 지우기

how can I add a line in a video and play it with implay command?

조회 수: 2 (최근 30일)
MOHIT
MOHIT 2016년 5월 14일
답변: Walter Roberson 2016년 6월 18일
I want to play a video in which I want a line at a location in the full video, How can I do that. I want to use 'implay' because other methods take a long time and they don't have that many playing options.
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2016년 5월 14일
Mohit - why don't you just read all frames of the video into an mxnx3xk array (assuming true colour frames), insert the line into each frame, and then pass this to implay?
MOHIT
MOHIT 2016년 5월 15일
편집: MOHIT 2016년 5월 15일
Thanks for the suggestion but, I have more than one hour video, storage of that much memory is a problem (It shows an error). If I do this frame by frame using 'for' loop then it will take more time.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 6월 18일
VideoFileReader, modify the frame, VideoFileWriter to write the frame. Afterwards you are left with a movie file you can play with implay

Community Treasure Hunt

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

Start Hunting!

Translated by