ファイルを何度も計算できませんか?

ファイルを何度も計算できませんか?

ffmpeg.ffprobeそのため、NASでホストされているMP4ファイルを使用すると奇妙なエラーが発生します。

シェルにログインしてMP4ファイルを含むネットワークストレージのディレクトリに変更し、ファイルを実行すると、各ファイルffmpeg.ffprobeに対して一度にコマンドを正常に実行できます。初めて期待した結果が出ました。その後、再実行すると、次のように表示されます。

cannot stat path of the current working directory: Permission denied

ディレクトリに別のMP4ファイルがある場合でも機能します。新しいシェルを使用してログインし、新しいシェルで同じコマンドを実行すると、そのシェルで一度実行されます。

エラーが発生した後でも、実際にファイルを統計できます。

ファイルをローカルディレクトリにコピーして同じ操作を実行しても、この問題は発生しません。

なぜそのような仕事が一度成功したのか失敗したのか教えてくれる人はいますか?どうすれば解決できますか?投稿できる他の有用な情報が何であるかを教えてください。

編集:ffmpeg.ffprobeスナップインストールによって提供される実行可能ファイルも同様です。アンインストールして再インストールし、「リムーバブルメディア」権限が有効になっていることを確認しました。またはffprobe、提供されている実行可能ファイルを実行すると、aptこれらの問題は発生しません。 .を使用して一時的に問題を解決しましたが、ffprobeそれでも問題は解決されません。

$snap connections ffmpeg
Interface         Plug                     Slot              Notes
alsa              ffmpeg:alsa              -                 -
audio-playback    ffmpeg:audio-playback    :audio-playback   -
audio-record      ffmpeg:audio-record      -                 -
camera            ffmpeg:camera            -                 -
desktop           ffmpeg:desktop           :desktop          -
hardware-observe  ffmpeg:hardware-observe  -                 -
home              ffmpeg:home              :home             -
network           ffmpeg:network           :network          -
network-bind      ffmpeg:network-bind      :network-bind     -
opengl            ffmpeg:opengl            :opengl           -
optical-drive     ffmpeg:optical-drive     :optical-drive    -
pulseaudio        ffmpeg:pulseaudio        :pulseaudio       -
removable-media   ffmpeg:removable-media   :removable-media  manual
wayland           ffmpeg:wayland           :wayland          -
x11               ffmpeg:x11               :x11              -

例:

$ ffmpeg.ffprobe file.mp4 
ffprobe version n4.3.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-09-24T00:49:20.000000Z
    com.android.version: 6.0.1
  Duration: 00:13:36.30, start: 0.000000, bitrate: 17260 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 16999 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2016-09-24T00:49:20.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
    Metadata:
      creation_time   : 2016-09-24T00:49:20.000000Z
      handler_name    : SoundHandle

$ ffmpeg.ffprobe file.mp4 
cannot stat path of the current working directory: Permission denied

関連するマウントポイントは次のとおりです。

//192.168.1.103/Volume_1 on /media/rothloup/Volume_1 type cifs (rw,nosuid,nodev,relatime,vers=1.0,sec=none,cache=strict,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.1.103,soft,unix,posixpaths,serverino,mapposix,acl,rsize=61440,wsize=65536,bsize=1048576,echo_interval=60,actimeo=1,user=rothloup)

ls -alとstatの出力:

$ ls -al
total 3444736
drwxrwxrwx 2 rothloup rothloup          0 Sep 19 20:20 .
drwxrwxrwx 7 rothloup rothloup          0 Feb  4  2019 ..
-rw-rw-rw- 1 rothloup rothloup 1761256156 Dec  5  2016 2016-09-23_204920.mp4
-rw-rw-rw- 1 rothloup rothloup 1761256156 Sep 19 20:24 file.mp4

$ stat file.mp4 
  File: file.mp4
  Size: 1761256156      Blocks: 3444736    IO Block: 1048576 regular file
Device: 36h/54d Inode: 49512449    Links: 1
Access: (0666/-rw-rw-rw-)  Uid: ( 1000/rothloup)   Gid: ( 1000/rothloup)
Access: 2021-09-19 21:36:10.000000000 -0400
Modify: 2021-09-19 20:24:39.000000000 -0400
Change: 2021-09-19 20:24:39.000000000 -0400
 Birth: -

ベストアンサー1

おすすめ記事