video writer in matlab

4 次查看(过去 30 天)
sweta arya
sweta arya 2016-1-27
I am accessing one video in my code and then modifying it. After that I am writing it using video writer but it is giving error that permission denied. I have look for the permissions i have and i have also run matlab as administrator but same error is coming. can you please tell me what could be problem in this?

回答(1 个)

Walter Roberson
Walter Roberson 2016-1-27
Which directory are you trying to write the file to? You cannot write the file anywhere under the MATLAB installation directory; it needs to be in a directory of your own that you have write access to. If the file already exists then you need to have write access to the file.
  5 个评论
sweta arya
sweta arya 2016-1-28
编辑:Walter Roberson 2016-1-28
fileattrib results for directory is:
Name: 'e:\harpreet'
archive: 0
system: 0
hidden: 0
directory: 1
UserRead: 1
UserWrite: 1
UserExecute: 1
GroupRead: NaN
GroupWrite: NaN
GroupExecute: NaN
OtherRead: NaN
OtherWrite: NaN
OtherExecute: NaN
and for file is
Name: 'E:\harpreet\puppy.avi'
archive: 1
system: 0
hidden: 0
directory: 0
UserRead: 1
UserWrite: 1
UserExecute: 1
GroupRead: NaN
GroupWrite: NaN
GroupExecute: NaN
OtherRead: NaN
OtherWrite: NaN
OtherExecute: NaN
And also I tried writing the file by deleting it first. But still it is giving the same error.
Walter Roberson
Walter Roberson 2016-1-28
It appears that you might not be the owner of the file or directory. You will need to use Windows Explorer to examine the folder permissions; see https://msdn.microsoft.com/en-us/library/bb727008.aspx

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by