VideoReader don't read .m4v

3 ビュー (過去 30 日間)
Xin Cao
Xin Cao 2018 年 1 月 12 日
コメント済み: cui,xingxing 2021 年 1 月 26 日
Hello there, I was using VideoReader to read a .m4v file on my Windows 10 education. But there comes the following error:
Error using VideoReader/init (line 619) Could not read file due to an unexpected error. Reason: Error Creating Source Reader Reason: The byte stream type of the given URL is unsupported.
Error in VideoReader (line 172) obj.init(fileName);
Does any one know how can I fix this?
My matlab version is R2017b. I used VideoReader to read .avi and works. I can open the .m4v video with VLC player but not windows media player. I tried to install gstreamer1.0 but not work.
Many thanks for your reading.

回答 (1 件)

Harish Ramachandran
Harish Ramachandran 2018 年 1 月 17 日
Both Windows Media player and videoReader support the m4v format. Since VLC is able to play but Windows Media Player is not, it looks like it is a codec issue. Please download the latest compatible version of codec from https://www.mediaplayercodecpack.com/ and try again.
  3 件のコメント
Alex Van Der Ven
Alex Van Der Ven 2020 年 10 月 15 日
Worked great for me (2020a), thanks Harish!
cui,xingxing
cui,xingxing 2021 年 1 月 26 日
another solution:
https://www.mathworks.com/matlabcentral/answers/727183-videoreader-can-t-read-mp4-files

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by