[FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files

pgoldweic pgoldweic at northwestern.edu
Thu Jul 21 18:02:33 CEST 2011


Hi,
I've done research on this problem but saw no obvious solutions being
offered (plus, it is not clear whether this is an ffmpeg bug or not). I need
to automate the run of ffmpeg to convert uploaded user files (mp4 which are
about an hour long) to an ipod-compatible format. I keep getting this error
message either at the beginning of the encoding, or close to the beginning
(in one ocassion, running under 'root', I was able to get ffmpeg to process
the file for a while, perhaps a few minutes, before it gave out the same
error message). 
Here is the complete transcript of one of these runs (BTW, there are other
error messages from ffmpeg as I'm still trying to get the parameters right
here :-(, but I don't think these have anything to do with the one I am
mentioning).  Would definitely appreciate any help with this. Thanks in
advance!

 sudo ffmpeg -i ~/sampleVideo/collection_0_Sepsis/video.mp4 -acodec libfaac
-ab 128 -s 480x320 -vcodec libx264 -vpre lossless_slow -crf 30 -vpre ipod320
-threads 0 -f ipod
~/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 27 2011 17:30:33 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
  configuration: --enable-libvpx --enable-libfaac --enable-shared
--enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame
--enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree
--enable-postproc --enable-avfilter --enable-swscale --enable-pthreads
--enable-libfreetype --arch=x86_64
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 1 codec frame rate differs from container frame rate: 6000.00
(6000/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/pgo586/sampleVideo/collection_0_Sepsis/video.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2010-03-01 17:42:51
  Duration: 00:54:40.81, start: 0.000000, bitrate: 950 kb/s
    Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 88 kb/s
    Metadata:
      creation_time   : 2010-03-01 17:42:51
    Stream #0.1(eng): Video: h264 (Main), yuv420p, 480x360, 858 kb/s, 30
fps, 30 tbr, 3k tbn, 6k tbc
    Metadata:
      creation_time   : 2010-03-01 17:42:51
WARNING: The bitrate parameter is set too low. It takes bits/s as argument,
not kbits/s
[buffer @ 0x101e6f80] w:480 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:
[scale @ 0x101e7520] w:480 h:360 fmt:yuv420p -> w:480 h:320 fmt:yuv420p
flags:0x4
[libx264 @ 0x101efb20] frame MB size (30x20) > level limit (396)
[libx264 @ 0x101efb20] VBV buffer (3000) > level limit (2000)
[libx264 @ 0x101efb20] MB rate (18000) > level limit (11880)
[libx264 @ 0x101efb20] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x101efb20] profile Constrained Baseline, level 1.3
[libx264 @ 0x101efb20] 264 - core 115 r1995 c1e60b9 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0
ref=2 deblock=1:0:0 analyse=0x1:0x31 me=umh subme=6 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=768
vbv_bufsize=3000 crf_max=0.0 nal_hrd=none ip_ratio=1.41 aq=1:1.00
Output #0, ipod, to
'/home/pgo586/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2010-03-01 17:42:51
    encoder         : Lavf53.4.0
    Stream #0.0(eng): Video: libx264, yuv420p, 480x320, q=0-69, 200 kb/s, 30
tbn, 30 tbc
    Metadata:
      creation_time   : 2010-03-01 17:42:51
    Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 0 kb/s
    Metadata:
      creation_time   : 2010-03-01 17:42:51
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Operation not permitted:03.03 bitrate=
248.6kbits/s    


--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-av-interleaved-write-frame-Operation-not-permitted-with-mp4-files-tp3684114p3684114.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list