写入数据从hdf5到AVI ?

3视图(30天)
米兰达Gavrin
米兰达Gavrin 2016年4月25日
评论道: 戴夫Behera 2016年5月2日
我有一个hdf5视频和我想要一个.avi文件,或其他文件可以打开通过典型的视频编辑软件,用同样的视频。我试过以下的代码:
data = h5read (' recording_20160317_112041_gpio.hdf5 ', ' / anc_data ') inscopixh5 = H5F.open (“recording_20160317_112041_gpio.hdf5”);myVideo = VideoWriter (inscopixOut。avi,未压缩的avi);打开(myVideo);writeVideo (myVideo、数据);H5.close (inscopixh5);关闭(myVideo);
即试图写.avi .hdf5的数据集。我也试着写整个hdf5 .avi文件。的人都没有工作;我得到的错误:“IMG的必须以下类:双,单身,uint8”。我怎么得到.hdf5格式,我可以把数据转换成其他文件类型,看着外面matlab ?谢谢你!
1评论
戴夫Behera
戴夫Behera 2016年5月2日
似乎比avi格式hdf5编码是不同的。你考虑过使用第三方工具来提取avi文件?
https://www.hdfgroup.org/s manbetx 845products/hdf5_tools/toolsbycat.html

登录置评。

答案(0)

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!