ffmpeg Operation not permitted error resolution procedures record

To reproduce the problem

Since the recording of the video there are some small problems, the need to cut and merge video files, find a few video editing software to do this thing, the end result is not particularly satisfied with, was already quite late, and had intended to go to bed want to go to sleep the next day rut, got up from his chair when suddenly thought of this tool ffmpeg, before working with it in quite a long time to do a video-related functions cut, then quickly put it installed and configured, video cutting when he succeeded fairly well, during the time of the merger the video appeared in the title of this issue:

Operation not permitted 

I was related files are placed here, as shown below:

I need to merge, and FIG. 27-end.mp4 two 27-head.mp4 video file into a video file, txt file also needs FFmpeg as shown above, the directory files need to be merged document can be placed, because it is in the current directory cmd command execution, so directly set the directory to the current directory.

Video Merge command was executed as follows:

ffmpeg -f concat -i list.txt -c copy lesson-27.mp4

But the results are as follows:

Problem-solving process

Permissions issue

After seeing this error, I thought it was a file permissions issue, so right "to obtain ownership of the administrator", then this error is reported, then write the file directory absolute path, it is still useless, stalled ....

Internet search answers

He did not resolved, and quickly go online to see no one else encountered this problem, check the circle, there is a similar problem, but the solutions are not, and cold, and so I wrote this article after solve .

Another idea

We can look at a figure above error, the Operation not permittederror above there is a Unsafe file namemistake, so I looked at ffmpeg documentation, eventually found -safe can add parameters on the command line to avoid this problem, and quickly went to try once the file will eventually merge successfully, execute the following command:

ffmpeg -f concat -safe 0 -i list.txt -c copy lesson-27.mp4

Small summary

Because the network is not found solution to this problem, but also see a lot of friends in search of this same problem, so finishing this article, I have encountered similar problems friends can reference.

Guess you like

Origin www.cnblogs.com/han-1034683568/p/11515459.html