[FFmpeg-user] avi file "operation not permitted"

Jon Drukman jsd at cluttered.com
Fri May 6 19:20:12 CEST 2011


Rodney Baker <rodney.baker <at> iinet.net.au> writes:

> 
> On Fri, 6 May 2011 06:48:29 Jon Drukman wrote:
> > /usr/local/bin/ffmpeg -loglevel quiet -v 0 -i list.avi -s 480x352 -an -pass
> > 1 -vcodec libx264 -vpre fast_firstpass -b 300k -bt 300k -threads 0
> > list.avi.mp4
> > 
> > ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
> >    built on May  5 2011 11:01:27 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
> >    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
> > --enable-libx264 --enable-pthreads --enable-static --disable-shared
> > --disable-network --enable-nonfree
> >    libavutil    51.  2. 0 / 51.  2. 0
> >    libavcodec   53.  3. 0 / 53.  3. 0
> >    libavformat  53.  0. 3 / 53.  0. 3
> >    libavdevice  53.  0. 0 / 53.  0. 0
> >    libavfilter   2.  4. 0 /  2.  4. 0
> >    libswscale    0. 14. 0 /  0. 14. 0
> > list.avi: Operation not permitted
> > 
> > What does it mean?  I built ffmpeg from source this morning using last
> > night's tarball/snapshot.
> > 
> 
> It probably means you either don't have permission to read list.avi (or it 
> doesn't exist in the directory where you're running ffmpeg) or perhaps to 
> write list.avi.mp4. Make sure you're in the correct directory and that you 
> have the appropriate file permissions.
> 
> Also, make sure you didn't compile ffmpeg as root. Always configure and 
> compile as a normal user, then switch to root to do "make install". 

It's not a permissions problem:

[jsds-macbook:/tmp/foo] jsd% ls -l
total 194440
-rw-r--r--@ 1 jsd  staff  99548126 May  5 14:01 list.avi
[jsds-macbook:/tmp/foo] jsd% touch list.avi 
[jsds-macbook:/tmp/foo] jsd% /usr/local/bin/ffmpeg -loglevel quiet -v 0 -i
list.avi -s 480x352 -an -pass 1 -vcodec libx264 -vpre fast_firstpass -b 300k -bt
300k -threads 0 list.avi.mp4
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 25 2011 11:47:40 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --enable-pthreads --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-gpl --enable-nonfree --disable-network
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-version3
  libavutil    51.  0. 0 / 51.  0. 0
  libavcodec   53.  1. 0 / 53.  1. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  0. 0 /  2.  0. 0
  libswscale    0. 13. 0 /  0. 13. 0
list.avi: Operation not permitted
[jsds-macbook:/tmp/foo] jsd% touch list.avi.mp4
[jsds-macbook:/tmp/foo] jsd% ls -l 
total 194440
-rw-r--r--@ 1 jsd  staff  99548126 May  6 10:16 list.avi
-rw-r--r--  1 jsd  wheel         0 May  6 10:16 list.avi.mp4
[jsds-macbook:/tmp/foo] jsd% 

I compiled ffmpeg as jsd and installed with sudo, although I don't know why that
would make a difference.  I've been using unix for almost 20 years now and
that's the first time I've ever heard someone say that.

BTW, same result with apr 25 ffmpeg on mac os and yesterday's ffmpeg on centos
linux... so it's not likely to be OS-related.




More information about the ffmpeg-user mailing list