[FFmpeg-user] Create mp4 with image and aac, av_interleaved_write_frame(): Operation not permitted

Fernando Cassia fcassia at gmail.com
Sun Apr 15 17:22:06 CEST 2012


On Sun, Apr 15, 2012 at 11:51, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Complete, uncut console output missing.

Sorry, my bad. I thought I was going to be chastised if I pasted a big blob.

Here:

----
$ ffmpeg -loop 1 -shortest -y -i ../ninapersson2.jpg -i "Nina Persson
- Losing My Religion (R.E.M cover).aac" -acodec copy Nina-REM.mp4
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 18 2012 13:30:00 with gcc 4.7.0 20120315 (Red Hat 4.7.0-0.20)
  configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib --mandir=/usr/share/man --arch=i686
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
-march=i686 -mtune=atom -fasynchronous-unwind-tables' --enable-bzlib
--disable-crystalhd --enable-gnutls --enable-libcdio --enable-libcelt
--enable-libdc1394 --disable-indev=jack --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid
--enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads
--disable-static --enable-shared --enable-gpl --disable-debug
--disable-stripping --shlibdir=/usr/lib --cpu=i686
--enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[image2 @ 0x8676020] max_analyze_duration 5000000 reached at 5000000
Input #0, image2, from '../ninapersson2.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 500x388 [SAR 72:72 DAR
125:97], 25 fps, 25 tbr, 25 tbn, 25 tbc
[aac @ 0x86db240] max_analyze_duration 5000000 reached at 5015510
[aac @ 0x86db240] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'Nina Persson - Losing My Religion (R.E.M cover).aac':
  Duration: 00:03:51.03, bitrate: 108 kb/s
    Stream #1:0: Audio: aac, 44100 Hz, stereo, s16, 108 kb/s
[buffer @ 0x866f9e0] w:500 h:388 pixfmt:yuvj420p tb:1/1000000
sar:72/72 sws_param:
[libx264 @ 0x87c9fe0] using SAR=1/1
[libx264 @ 0x87c9fe0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
[libx264 @ 0x87c9fe0] profile High, level 2.2
[libx264 @ 0x87c9fe0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to 'Nina-REM.mp4':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuvj420p, 500x388
[SAR 72:72 DAR 125:97], q=-1--1, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, stereo, 108 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libx264)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x866efe0] malformated aac bitstream, use -absf aac_adtstoasc
av_interleaved_write_frame(): Operation not permitted

----

FC

-- 
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un
Acto Revolucionario
- George Orwell


More information about the ffmpeg-user mailing list