leandromoreira / digital_video_introduction

A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding). Translations: 🇺🇸 🇨🇳 🇯🇵 🇮🇹 🇰🇷 🇷🇺 🇧🇷 🇪🇸
https://github.com/leandromoreira/introduction_video_technology
BSD 3-Clause "New" or "Revised" License
15.44k stars 1.33k forks source link

Operation not permitted when triggering ./setup.sh #104

Closed impvd closed 4 years ago

impvd commented 4 years ago

Hi, I got this error when trigger the ./setup.sh, and my OS is MacOS 10.15.6.

Unable to find image 'jrottenberg/ffmpeg:3.3' locally
3.3: Pulling from jrottenberg/ffmpeg
35b42117c431: Pull complete
ad9c569a8d98: Pull complete
293b44f45162: Pull complete
0c175077525d: Pull complete
2fcff9069a9f: Pull complete
248d2888375c: Pull complete
33f41cdaf34e: Pull complete
Digest: sha256:b41f44a20238f36797f44f26e93b01e3b1d86adb3d40aa32a2cb845ef5d1eb64
Status: Downloaded newer image for jrottenberg/ffmpeg:3.3
ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-libkvazaar --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
/files/v/bunny_1080p_60fps.mp4: Operation not permitted
ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-libkvazaar --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
/files/v/bunny_1080p_30fps.mp4: Operation not permitted
leandromoreira commented 4 years ago

I'm on the same mac as yours and I managed it to work, I think it might be something related to permissions (either your docker/or v folder...), anyway I ran the following test and it went well, try the same to see if the error persists.

cd /tmp
git clone --depth 1 https://github.com/leandromoreira/digital_video_introduction.git
cd digital_video_introduction
./setup.sh
impvd commented 4 years ago

Thanks @leandromoreira , after restart my laptop along with docker, it works now!

$ ./setup.sh
ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-libkvazaar --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/files/v/bunny_1080p_60fps.mp4
...
[libx264 @ 0x8353a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 18% 16%  7%  8%  8%  8%  9% 10%
[libx264 @ 0x8353a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 13%  8%  9%  8%  8%  9%  7%
[libx264 @ 0x8353a0] i8c dc,h,v,p: 46% 28% 16% 11%
[libx264 @ 0x8353a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x8353a0] ref P L0: 66.7% 12.6% 14.6%  6.1%
[libx264 @ 0x8353a0] ref B L0: 89.0%  9.2%  1.8%
[libx264 @ 0x8353a0] ref B L1: 96.9%  3.1%
[libx264 @ 0x8353a0] kb/s:1924.78
[aac @ 0x825860] Qavg: 354.313