ffmpeg 특정 타임스탬프의 "작업이 허용되지 않음" 오류 연결 파일

ffmpeg 특정 타임스탬프의 "작업이 허용되지 않음" 오류 연결 파일

MacOs 10.15.7에서 ffmpeg를 사용하여 권한이 755로 설정된 txt 파일을 사용하여 특정 타임스탬프에서 jpeg를 함께 연결하고 있습니다(아래 내용).

file 'Walk1_pupil_00001_00.jpeg'
inpoint 00:00:00.862054
outpoint 00:00:01.722921
file 'Walk1_pupil_00002_00.jpeg'
inpoint 00:00:01.722922
outpoint 00:00:01.747019
file 'Walk1_pupil_00003_00.jpeg'
inpoint 00:00:01.747020
outpoint 00:00:01.748162
file 'Walk1_pupil_00003_00.jpeg'

txt 파일(역시 같은 폴더에 있음) 내에서 호출하는 이미지와 동일한 폴더 내에서 다음 명령을 실행했습니다.

ffmpeg -f concat -safe 0 -i myra_test.txt -loglevel debug 1088x1080 -vcodec libx264 -pix_fmt yuv420p -metadata date=2021-04-27T19:27:05.000000Z /Users/mairahmac/Dropbox/My\ Mac\ \(Myras-MacBook-Pro.local\)/Desktop/Rotations/NanthiaSuthana/SpatialNavigationTask/subWalkVideoData/Walk1/VideoOut/myra_test.mp4 

다음 오류가 발생합니다.

ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.29)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4_2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Splitting the commandline.
Reading option '-f' ... matched as option 'f' (force format) with argument 'concat'.
Reading option '-safe' ... matched as AVOption 'safe' with argument '0'.
Reading option '-i' ... matched as input url with argument 'myra_test.txt'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '1088x1080' ... matched as output url.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'date=2021-04-27T19:27:05.000000Z'.
Reading option '/Users/mairahmac/Dropbox/My Mac (Myras-MacBook-Pro.local)/Desktop/Rotations/NanthiaSuthana/SpatialNavigationTask/subWalkVideoData/Walk1/VideoOut/myra_test.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url myra_test.txt.
Applying option f (force format) with argument concat.
Successfully parsed a group of options.
Opening an input file: myra_test.txt.
[concat @ 0x7f8e8a809800] Opening 'myra_test.txt' for reading
[file @ 0x7f8e895236c0] Setting default whitelist 'file,crypto,data'
[NULL @ 0x7f8e8a80a400] Opening 'Walk1_pupil_00001_00.jpeg' for reading
[image2 @ 0x7f8e8a80a400] Format image2 probed with size=2048 and score=50
[image2 @ 0x7f8e8a80a400] Before avformat_find_stream_info() pos: 0 bytes read:19125 seeks:0 nb_streams:1
[mjpeg @ 0x7f8e89814200] marker=d8 avail_size_in_buf=19123
[mjpeg @ 0x7f8e89814200] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f8e89814200] marker=e0 avail_size_in_buf=19121
[mjpeg @ 0x7f8e89814200] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x7f8e89814200] marker=db avail_size_in_buf=19103
[mjpeg @ 0x7f8e89814200] index=0
[mjpeg @ 0x7f8e89814200] qscale[0]: 0
[mjpeg @ 0x7f8e89814200] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7f8e89814200] marker=db avail_size_in_buf=19034
[mjpeg @ 0x7f8e89814200] index=1
[mjpeg @ 0x7f8e89814200] qscale[1]: 1
[mjpeg @ 0x7f8e89814200] marker parser used 67 bytes (536 bits)
[mjpeg @ 0x7f8e89814200] marker=c0 avail_size_in_buf=18965
[mjpeg @ 0x7f8e89814200] Changing bps from 0 to 8
[mjpeg @ 0x7f8e89814200] sof0: picture: 1088x1080
[mjpeg @ 0x7f8e89814200] component 0 2:2 id: 0 quant:0
[mjpeg @ 0x7f8e89814200] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x7f8e89814200] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x7f8e89814200] pix fmt id 22111100
[mjpeg @ 0x7f8e89814200] Format yuvj420p chosen by get_format().
[mjpeg @ 0x7f8e89814200] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x7f8e89814200] marker=c4 avail_size_in_buf=18946
[mjpeg @ 0x7f8e89814200] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f8e89814200] marker=c4 avail_size_in_buf=18913
[mjpeg @ 0x7f8e89814200] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f8e89814200] marker=c4 avail_size_in_buf=18730
[mjpeg @ 0x7f8e89814200] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f8e89814200] marker=c4 avail_size_in_buf=18697
[mjpeg @ 0x7f8e89814200] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x7f8e89814200] escaping removed 1 bytes
[mjpeg @ 0x7f8e89814200] marker=da avail_size_in_buf=18514
[mjpeg @ 0x7f8e89814200] marker parser used 18513 bytes (148104 bits)
[mjpeg @ 0x7f8e89814200] EOI missing, emulating
[mjpeg @ 0x7f8e89814200] decode frame unused 0 bytes
[image2 @ 0x7f8e8a80a400] After avformat_find_stream_info() pos: 19125 bytes read:19125 seeks:0 frames:1
[AVIOContext @ 0x7f8e89411440] Statistics: 19125 bytes read, 0 seeks
[AVIOContext @ 0x7f8e89523880] Statistics: 278 bytes read, 0 seeks
myra_test.txt: Operation not permitted

jpeginfo를 사용하여 모든 jpeg 파일이 손상되었는지 확인했으며 모두 괜찮습니다. 누구든지 이것에 대해 나를 도울 수 있습니까?

답변1

이미지에는 지속 시간이 없으므로 작동하지 않습니다 input. outpoint이 오류는 파일 권한 문제가 아니기 때문에 오해의 소지가 있습니다.

대신 사용하세요 duration.

보다concat 디먹서 문서그리고 예제는FFmpeg 위키: 슬라이드쇼.

관련 정보