[FFmpeg-user] Permissions Strangeness

Nicole Demers nicole.a.demers at gmail.com
Fri Jun 26 20:15:39 CEST 2015


Hi everyone!


It's my first time posting and I've got a strange question I can't
find anything for online.

When I run FFMpeg on Ubuntu as the user forge on my computer the
output file is created as root and then FFMpeg isn't able to open it
to write the encoded file into. This strikes me as very strange
behaviour.

I am using FFMpeg from the php library on github
(https://github.com/PHP-FFMpeg/PHP-FFMpeg) and can't see an option to
change users or force the file to output as the same user.

Has anyone run into this problem? Do you have a solution? Am I doing
something terribly wrong?

Please assist.

Here is my output:

/home/ubuntu/bin/ffmpeg -y -i
http://www.ucarecdn.com/c356c9a1-8653-4eed-b3f1-5f12183c945d/ -vcodec
libx264 -acodec libmp3lame -b:v 1000k -refs 6 -coder 1 -sc_threshold
40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff
4 -trellis 1 -b:a 256k -ac 2 -pass 1
/home/forge/default/558d7fdc1894evideo.mp4

ffmpeg version N-73160-g2c77ca4 Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)

  configuration: --prefix=/home/ubuntu/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/ubuntu/ffmpeg_build/include
--extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib
--bindir=/home/ubuntu/bin --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree

  libavutil      54. 27.100 / 54. 27.100

  libavcodec     56. 45.100 / 56. 45.100

  libavformat    56. 38.102 / 56. 38.102

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 18.100 /  5. 18.100

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.100 /  1.  2.100

  libpostproc    53.  3.100 / 53.  3.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'http://www.ucarecdn.com/c356c9a1-8653-4eed-b3f1-5f12183c945d/':

  Metadata:

    major_brand     : isom

    minor_version   : 512

    compatible_brands: isomiso2avc1mp41

    encoder         : Lavf56.4.101

  Duration: 00:00:13.39, start: 0.021333, bitrate: 694 kb/s

    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 368x656, 602 kb/s, 30.08 fps, 30.08 tbr, 285347
tbn, 60.16 tbc (default)

    Metadata:

      handler_name    : VideoHandler

    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
mono, fltp, 86 kb/s (default)

    Metadata:

      handler_name    : SoundHandler

/home/forge/default/558d7fdc1894evideo.mp4: Permission denied



Thank you,
Nicole


More information about the ffmpeg-user mailing list