일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- Redux
- 스프링 부트
- 리엑트
- 프론트 엔드
- react native
- spring boot
- 백엔드
- 상태관리
- 국비 지원
- react-native
- 스타트업
- 개발
- 비전공자
- 코딩
- 풀스택
- expo
- Spring
- 개발자
- 풀스택 개발자
- 리엑트 네이티브
- 스프링
- 비전공
- react
- 프론트엔드
- 클론코딩
- ffmpeg
- 자바
- Java
- 인스타그램
- 국비지원
- Today
- Total
오티스의개발일기
[FFMPEG] ffmpeg-kit-react-native FFprobeKit 화가나서 존재하는 모든 함수 뽀개기... 본문
[FFMPEG] ffmpeg-kit-react-native FFprobeKit 화가나서 존재하는 모든 함수 뽀개기...
안되면 될때까지.. 2023. 1. 19. 19:37
< 이전글
2023.01.16 - [개발/react-native] - [REACT-NATIVE] ffmpeg 를 활용하여 받아온 비디오 react-native 에서 컨트롤하고 정보 보여주기
다음글 >
2023.01.20 - [개발/react-native] - [REACT-NATIVE] ffmpeg 사용하여 받은 오디오를 wave 형식으로 클라이언트에 보여주기
++++++++++++++++++++++++++ 업데이트 ++++++++++++++++++++++++++
예상대로 커맨드가 문제가있었다
바로앞에 -v quiet 을 넣으면 조용하다는 의미로 필요없는 데이터는 출력되지않는다....
결과를 보도록하겠다
👇👇👇👇코드👇👇👇👇
static getAudio(
localFileName,
videoURI,
successCallback,
errorCallback,
) {
let outputPath = `${RNFS.CachesDirectoryPath}/${localFileName}.txt`; // 업로드된 파일을 캐싱하여 각 초마다 저장했을때의 path 를 등록
// const ffmpegCommand = `-ss 0 -i ${videoURI} -acodec copy -map 0:a:0 -vn -f rawvideo ${outputPath}`;
const ffmpegCommand = `-v quiet -select_streams v -show_entries packet=size:stream=duration -of compact=p=0:nk=1 ${videoURI}` // <------ 이부분
//const ffmpegCommand = `-select_streams -show_entries stream=bit_rate - of default=noprint_wrappers= 1 ${videoURI}` // 윈도우에서는 됨
//const ffmpegCommand = `ffprobe -v quiet -print_format json -show_format -show_streams ${videoURI}` // 윈도우에서는 됨
audio(ffmpegCommand, videoURI)
}
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getOutput();
log.then(res => {
console.log('필요한 정보 = ' + res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG 필요한 정보 = 200572
47402
6784
5131
3646
51849
6661
6067
3642
43953
5562
3584
3579
43500
5496
3669
3355
41392
5571
3487
3135
40202
5817
3557
3427
40353
5794
4051
3716
55030
6560
3588
3947
45565
5614
3788
3361
40883
5708
3867
3566
39203
6061
3815
3506
39310
5763
3521
3607
39931
5735
3586
3497
40156
6022
3830
3597
104340
7485
3591
3621
38863
5449
2920
3525
47031
5764
3574
3564
44096
5841
4010
3679
44091
6321
3874
3945
44564
6486
4300
3931
43305
6364
4230
4026
42957
6475
4262
3975
51836
6901
4502
4035
43711
6544
4172
3938
43549
6270
4046
3793
44727
6319
3998
3883
42722
6528
4230
3909
41801
6815
3978
4094
40256
6366
4218
3743
101632
8175
3830
4310
33766
5974
3380
3806
43362
6177
3964
3873
43735
6232
4145
3612
45288
6192
4035
4044
42205
6837
4486
3884
45320
7483
4217
4227
37259
6980
4314
3954
40932
7390
4869
4340
36753
8176
5180
4133
57793
16424
9230
6440
41975
9540
6629
5149
16668
9210
3705
4004
5127
5120
5.700000
이제 이코드를 가지고 다음시간에는 UI를 제작해보겠다... ㅎㅎㅎㅎㅎㅎ
오늘은.... 제목처럼 화가나서 FFprobeKit 을 뽀개볼것이다...
간단하게 설명하자면 ffmpeg-kit-react-native 라이브러리안에
FFmpegKit 과 FFprobeKit 이 있는데
FFmpegKit 은 간단하게 말해서 커맨드로 데이터를 요청하는것이고 FFprobeKit은 데이터를 추출하는 킷이라 생각하면된다...
사실 이것도 정확하지는 않지만
FFmpegKit 로 데이터를 추출하려했을때 계속 오류가뜨기에 맞는것같다.
일단 나는 비디오에서 오디오를 추출해 ratebit 라는 정보를 얻어와 저장하고싶다.
ratebit 란 초마다 발생하는 음역대라보면된다... 이 데이터로 음악 웨이브를 표현하고싶기때문에 이토록 집착하는것이다..
자 일단 log를 불러오는것까지 성공하였다
하지만 log 내가원하는 output 만있으면 split으로 나눈후 리스트로 저장하면되지만
원치않는 log정보까지 불러온다는것이다...
이글을 쓰는 현재까지도 해결을 못하였지만
나는 결심하였다 FFprobeKit 에있는 모든 함수를 다써보고 log를 찍어보기로...ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
언젠간 나오겠지 ㅋㅋㅋㅋㅋㅋㅋㅋ
그럼 시작하겠다.
👇👇👇👇코드👇👇👇👇
const ffmpegCommand = `-select_streams v -show_entries packet=size:stream=duration -of compact=p=0:nk=1 ${videoURI}` // 윈도우에서는 됨
//const ffmpegCommand = `ffprobe -v quiet -print_format json -show_format -show_streams ${videoURI}` // 윈도우에서는 됨
audio(ffmpegCommand, videoURI)
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
})
}
👇👇👇👇로그👇👇👇👇
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/5D7D3CF7-AF9C-46BB-8938-637121F7E85B.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
일단 로그가찍히는것을 보여주도록하겠다. 실행만해도 자동으로 찍히는걸 볼수가있다.
특이점이 있으면 로그마다 공백이있다는것이다.
이번에는 session 이라는 응답에 어떠한 함수들이 있는지 살펴보도록하겠다.
겁나 많다 ㅎㅎㅎ
하나씩 보도록하겠다..
일단 도큐멘트에있는게있고 없는게 있다.
도큐멘트에있는건 해석해서 적어보도록하겠다.
# 0. session.cancel
- Stop all sessions
FFmpegKit.cancel();
session을 전부 정지시키는 함수이다.
내생각엔 if 문으로 어떤 예외상황이있을때 더이상 인코딩하지않고 멈출수있도록 하는 함수같다
# 0. session.getAllLogs
이건 도큐멘트에 없다 ㅎㅎㅎ
안보인다
일단 실행시켜보고 로그로 찍어보겠다.
대부분의 함수들은 Promise 를 반환하는것같다
then 으로 응답받은것을 Log 로 찍어보도록 하겠다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
session.getAllLogs().then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/36095562-2CE3-44A2-AB68-04F6B1C156A0.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
LOG [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]
?????? 이게 뭔가싶다....
배열안에 object 가있는데 뭔지 감도 안잡힌다....
일단 넘어가자 함수이름이 allLogs 니 다뽑는단 이야기것지...
#session.getAllLogsAsString
이 함수는 방금 위에 실행했던걸 String 형식으로 보여주는것같다
자 한번 해보자
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
session.getAllLogsAsString.then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/4F8225E7-30D2-4A34-8544-BD184B00C39C.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
LOG ffprobe version n5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.44.100
Duration: 00:00:05.76, start: 0.000000, bitrate: 3956 kb/s
Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
200572
47402
6784
5131
3646
51849
6661
6067
3642
43953
5562
3584
3579
43500
5496
3669
3355
41392
5571
3487
3135
40202
5817
3557
3427
40353
5794
4051
3716
55030
6560
3588
3947
45565
5614
3788
3361
40883
5708
3867
3566
39203
6061
3815
3506
39310
5763
3521
3607
39931
5735
3586
3497
40156
6022
3830
3597
104340
7485
3591
3621
38863
5449
2920
3525
47031
5764
3574
3564
44096
5841
4010
3679
44091
6321
3874
3945
44564
6486
4300
3931
43305
6364
4230
4026
42957
6475
4262
3975
51836
6901
4502
4035
43711
6544
4172
3938
43549
6270
4046
3793
44727
6319
3998
3883
42722
6528
4230
3909
41801
6815
3978
4094
40256
6366
4218
3743
101632
8175
3830
4310
33766
5974
3380
3806
43362
6177
3964
3873
43735
6232
4145
3612
45288
6192
4035
4044
42205
6837
4486
3884
45320
7483
4217
4227
37259
6980
4314
3954
40932
7390
4869
4340
36753
8176
5180
4133
57793
16424
9230
6440
41975
9540
6629
5149
16668
9210
3705
4004
5127
5120
5.700000
확인을 해보니 waitTimeout 매게변수를 넣어줘야한다..
넣고 다시 해보겠다.
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
await session.getAllLogsAsString(5000).then(res => {
console.log(res);
})
})
}
로그
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/F84692FB-88FA-44F8-9398-80599B5B035D.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
LOG ffprobe version n5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.44.100
Duration: 00:00:05.76, start: 0.000000, bitrate: 3956 kb/s
Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
200572
47402
6784
5131
3646
51849
6661
6067
3642
43953
5562
3584
3579
43500
5496
3669
3355
41392
5571
3487
3135
40202
5817
3557
3427
40353
5794
4051
3716
55030
6560
3588
3947
45565
5614
3788
3361
40883
5708
3867
3566
39203
6061
3815
3506
39310
5763
3521
3607
39931
5735
3586
3497
40156
6022
3830
3597
104340
7485
3591
3621
38863
5449
2920
3525
47031
5764
3574
3564
44096
5841
4010
3679
44091
6321
3874
3945
44564
6486
4300
3931
43305
6364
4230
4026
42957
6475
4262
3975
51836
6901
4502
4035
43711
6544
4172
3938
43549
6270
4046
3793
44727
6319
3998
3883
42722
6528
4230
3909
41801
6815
3978
4094
40256
6366
4218
3743
101632
8175
3830
4310
33766
5974
3380
3806
43362
6177
3964
3873
43735
6232
4145
3612
45288
6192
4035
4044
42205
6837
4486
3884
45320
7483
4217
4227
37259
6980
4314
3954
40932
7390
4869
4340
36753
8176
5180
4133
57793
16424
9230
6440
41975
9540
6629
5149
16668
9210
3705
4004
5127
5120
5.700000
아직 산더미처럼 남은 함수 언제다 캡처하지....ㅋㅋㅋ
될때까지 해보도록 하겠다.
# session.getArguments
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
await session.getArguments().then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/5363703B-2B7E-4205-AE74-72C8CD9BD3C5.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
WARN Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not a function
TypeError: undefined is not a function
at ?anon_0_ (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477505:38)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20527:26)
at _next (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20546:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20551:14)
at tryCallTwo (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:61:9)
at doResolve (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:216:25)
at Promise (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:82:14)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20543:25)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477510:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:479182:48)
at tryCallOne (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:53:16)
at anonymous (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:139:27)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26068:26)
at _callTimer (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:25987:17)
at _callReactNativeMicrotasksPass (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26017:17)
at callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26180:44)
at __callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2401:46)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2213:45)
at __guard (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2385:15)
at flushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2212:21)
at invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2206:33)
음... 에러이다..
음... 설명에는 이렇게 사용하라고 나와있긴하다...
음.... 저렇게해서 console.log로 찍어보고 안되면 일단 패스해보겠다..
주석된것을 보니 command 에사용된 매게변수를 출력하는것같다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const arg = session.getArguments();
console.log(arg)
// await session.getArguments().then(res => {
// console.log(res);
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG Selected video {
"exif": null,
"filename": "IMG_0008.MP4",
"path": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Containers/Data/Application/A32FE154-AE30-4734-AE4B-C716764E85A3/tmp/react-native-image-crop-picker/2CE5CE60-7B46-450C-9263-186F7A86C2CA.mp4",
"height": 320,
"width": 568,
"data": null,
"modificationDate": null,
"localIdentifier": "1A2372EC-ECA4-4489-AC63-BD638DE3AA5B/L0/001",
"size": 681664,
"sourceURL": "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4",
"mime": "video/mp4",
"cropRect": null,
"duration": 5000,
"creationDate": null
}
LOG Loading ffmpeg-kit-react-native.
LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
LOG ffprobe version n5.1.2
LOG Copyright (c) 2007-2022 the FFmpeg developers
LOG
LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG libavutil 57. 28.100 / 57. 28.100
LOG libavcodec 59. 37.100 / 59. 37.100
LOG libavformat 59. 27.100 / 59. 27.100
LOG libavdevice 59. 7.100 / 59. 7.100
LOG libavfilter 8. 44.100 / 8. 44.100
LOG libswscale 6. 7.100 / 6. 7.100
LOG libswresample 4. 7.100 / 4. 7.100
LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG Metadata:
LOG major_brand :
LOG isom
LOG
LOG minor_version :
LOG 512
LOG
LOG compatible_brands:
LOG isomiso2avc1mp41
LOG
LOG encoder :
LOG Lavf58.44.100
LOG
LOG Duration:
LOG 00:00:05.76
LOG , start:
LOG 0.000000
LOG , bitrate:
LOG 3956 kb/s
LOG
LOG Stream #0:0
LOG [0x1]
LOG (und)
LOG : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG ,
LOG 30 fps,
LOG 30 tbr,
LOG 15360 tbn
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG Stream #0:1
LOG [0x2]
LOG (eng)
LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG (default)
LOG
LOG Metadata:
LOG handler_name :
LOG ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG
LOG vendor_id :
LOG [0][0][0][0]
LOG
LOG 200572
LOG
LOG 47402
LOG
LOG 6784
LOG
LOG 5131
LOG
LOG 3646
LOG
LOG 51849
LOG
LOG 6661
LOG
LOG 6067
LOG
LOG 3642
LOG
LOG 43953
LOG
LOG 5562
LOG
LOG 3584
LOG
LOG 3579
LOG
LOG 43500
LOG
LOG 5496
LOG
LOG 3669
LOG
LOG 3355
LOG
LOG 41392
LOG
LOG 5571
LOG
LOG 3487
LOG
LOG 3135
LOG
LOG 40202
LOG
LOG 5817
LOG
LOG 3557
LOG
LOG 3427
LOG
LOG 40353
LOG
LOG 5794
LOG
LOG 4051
LOG
LOG 3716
LOG
LOG 55030
LOG
LOG 6560
LOG
LOG 3588
LOG
LOG 3947
LOG
LOG 45565
LOG
LOG 5614
LOG
LOG 3788
LOG
LOG 3361
LOG
LOG 40883
LOG
LOG 5708
LOG
LOG 3867
LOG
LOG 3566
LOG
LOG 39203
LOG
LOG 6061
LOG
LOG 3815
LOG
LOG 3506
LOG
LOG 39310
LOG
LOG 5763
LOG
LOG 3521
LOG
LOG 3607
LOG
LOG 39931
LOG
LOG 5735
LOG
LOG 3586
LOG
LOG 3497
LOG
LOG 40156
LOG
LOG 6022
LOG
LOG 3830
LOG
LOG 3597
LOG
LOG 104340
LOG
LOG 7485
LOG
LOG 3591
LOG
LOG 3621
LOG
LOG 38863
LOG
LOG 5449
LOG
LOG 2920
LOG
LOG 3525
LOG
LOG 47031
LOG
LOG 5764
LOG
LOG 3574
LOG
LOG 3564
LOG
LOG 44096
LOG
LOG 5841
LOG
LOG 4010
LOG
LOG 3679
LOG
LOG 44091
LOG
LOG 6321
LOG
LOG 3874
LOG
LOG 3945
LOG
LOG 44564
LOG
LOG 6486
LOG
LOG 4300
LOG
LOG 3931
LOG
LOG 43305
LOG
LOG 6364
LOG
LOG 4230
LOG
LOG 4026
LOG
LOG 42957
LOG
LOG 6475
LOG
LOG 4262
LOG
LOG 3975
LOG
LOG 51836
LOG
LOG 6901
LOG
LOG 4502
LOG
LOG 4035
LOG
LOG 43711
LOG
LOG 6544
LOG
LOG 4172
LOG
LOG 3938
LOG
LOG 43549
LOG
LOG 6270
LOG
LOG 4046
LOG
LOG 3793
LOG
LOG 44727
LOG
LOG 6319
LOG
LOG 3998
LOG
LOG 3883
LOG
LOG 42722
LOG
LOG 6528
LOG
LOG 4230
LOG
LOG 3909
LOG
LOG 41801
LOG
LOG 6815
LOG
LOG 3978
LOG
LOG 4094
LOG
LOG 40256
LOG
LOG 6366
LOG
LOG 4218
LOG
LOG 3743
LOG
LOG 101632
LOG
LOG 8175
LOG
LOG 3830
LOG
LOG 4310
LOG
LOG 33766
LOG
LOG 5974
LOG
LOG 3380
LOG
LOG 3806
LOG
LOG 43362
LOG
LOG 6177
LOG
LOG 3964
LOG
LOG 3873
LOG
LOG 43735
LOG
LOG 6232
LOG
LOG 4145
LOG
LOG 3612
LOG
LOG 45288
LOG
LOG 6192
LOG
LOG 4035
LOG
LOG 4044
LOG
LOG 42205
LOG
LOG 6837
LOG
LOG 4486
LOG
LOG 3884
LOG
LOG 45320
LOG
LOG 7483
LOG
LOG 4217
LOG
LOG 4227
LOG
LOG 37259
LOG
LOG 6980
LOG
LOG 4314
LOG
LOG 3954
LOG
LOG 40932
LOG
LOG 7390
LOG
LOG 4869
LOG
LOG 4340
LOG
LOG 36753
LOG
LOG 8176
LOG
LOG 5180
LOG
LOG 4133
LOG
LOG 57793
LOG
LOG 16424
LOG
LOG 9230
LOG
LOG 6440
LOG
LOG 41975
LOG
LOG 9540
LOG
LOG 6629
LOG
LOG 5149
LOG
LOG 16668
LOG
LOG 9210
LOG
LOG 3705
LOG
LOG 4004
LOG
LOG 5127
LOG
LOG 5120
LOG
LOG 5.700000
LOG
LOG ["-select_streams", "v", "-show_entries", "packet=size:stream=duration", "-of", "compact=p=0:nk=1", "file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4"]
오.... 된다 이맛에 개발하쥬? ㅎㅎㅎ
# session.getCommand
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const cmd = session.getCommand();
console.log(cmd)
// await session.getCommand().then(res => {
// console.log(res);
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG -select_streams v -show_entries packet=size:stream=duration -of compact=p=0:nk=1 file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4
이건 위에서쓴 command 를 그대로 String 형태로 가져오는것같다
그리고 지금부터는 불필요한 로그는 빼도록하겠다.
# session.getCompleteCallback
이 함수는 따로 다루지않겠다.
대충 비동기 callback 이라 생각하면된다.
(= resolve)
# session.getFailStackTrace
이함수는 에러가 발생했을시 에러내용을 반환해주는 함수이다.
따로 다루지않겠다.
# session.getCreateTime
이거는 만들어진 시간 을 반환하는 함수인것같다 실행해보도록 하겠다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const cmd = session.getCreateTime();
console.log(cmd)
// await session.getCommand().then(res => {
// console.log(res);
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG 2023-01-19T11:16:02.936Z
예상대로 날짜를 반환한다.
# session.getDuration
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
// const cmd = session.getDuration();
// console.log(cmd)
await session.getDuration().then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG 41
이영상은 6초짜리이다.
내생각엔 작업을 하는데 얼마나 걸렸는지 알려주는 함수같고 밀리세컨으로 반환하는것 같다.
# session.getEndTime
보이는것과 같이 사이좋게 붙어있다.
시작한시간 걸린시간 끝나는 시간을 반환하는 함수들이다. 뭐.. 세트같은느낌이라 다루지않도록 하겠다.
# session.getLogCallback
이제좀 필요한게 슬슬 나오고있다...
LogCallback 을 반환하는걸 볼수있다.
LogCallback도 살펴보자
음... 그냥 로그 ...그냥 로그 ㅋㅋㅋ
일단 실행해보자
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
// const cmd = session.getDuration();
// console.log(cmd)
await session.getLogCallback().then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
WARN Possible Unhandled Promise Rejection (id: 0):
TypeError: Cannot read property 'then' of undefined
TypeError: Cannot read property 'then' of undefined
at ?anon_0_ (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477505:46)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20527:26)
at _next (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20546:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20551:14)
at tryCallTwo (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:61:9)
at doResolve (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:216:25)
at Promise (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:82:14)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20543:25)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477510:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:479182:48)
at tryCallOne (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:53:16)
at anonymous (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:139:27)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26068:26)
at _callTimer (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:25987:17)
at _callReactNativeMicrotasksPass (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26017:17)
at callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26180:44)
at __callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2401:46)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2213:45)
at __guard (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2385:15)
at flushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2212:21)
at invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2206:33)
음.... 이건 에러가 뜨는데 도저히 모르겠다...
30분째 이것만보고있는데 답이 안나와서 패스... ㅠㅠㅠ
드디어 찾았다... 알고보니 log 를 반환해서 그 로그에대한 설정을 할수잇도록 하는 함수같다..
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
session.getLogCallback().apply(function (res) {
console.log(res)
})
// await session.getLogCallback().then(res => {
// console.log(res)
// })
})
}
이런식으로도 해보고
다해봤는데 에러뜨는거보니 뭔가 설정하는것같다 로그에대한 레벨이라든지...
그래도 아직 어떻게 사용하는지모르겠어서 패스하도록 하겠다.
# session.getLogRedirectionStrategy
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
session.getLogRedirectionStrategy.apply()
})
}
해석해보자면 로그의 리다이렉션 전략함수이다.
뭐,....이것도 모르겠다~
위에 logCallback과 비슷한 구조이다... 그냥뭐 설.정.함.수 정도로 생각하자
패스~
# session.getLogsAsString
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const log = session.getLogsAsString();
log.then(function (res) {
console.log(res)
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ffprobe version n5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.44.100
Duration: 00:00:05.76, start: 0.000000, bitrate: 3956 kb/s
Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
200572
47402
6784
5131
3646
51849
6661
6067
3642
43953
5562
3584
3579
43500
5496
3669
3355
41392
5571
3487
3135
40202
5817
3557
3427
40353
5794
4051
3716
55030
6560
3588
3947
45565
5614
3788
3361
40883
5708
3867
3566
39203
6061
3815
3506
39310
5763
3521
3607
39931
5735
3586
3497
40156
6022
3830
3597
104340
7485
3591
3621
38863
5449
2920
3525
47031
5764
3574
3564
44096
5841
4010
3679
44091
6321
3874
3945
44564
6486
4300
3931
43305
6364
4230
4026
42957
6475
4262
3975
51836
6901
4502
4035
43711
6544
4172
3938
43549
6270
4046
3793
44727
6319
3998
3883
42722
6528
4230
3909
41801
6815
3978
4094
40256
6366
4218
3743
101632
8175
3830
4310
33766
5974
3380
3806
43362
6177
3964
3873
43735
6232
4145
3612
45288
6192
4035
4044
42205
6837
4486
3884
45320
7483
4217
4227
37259
6980
4314
3954
40932
7390
4869
4340
36753
8176
5180
4133
57793
16424
9230
6440
41975
9540
6629
5149
16668
9210
3705
4004
5127
5120
5.700000
음... 필요한 데이터긴 하지만 상단에 다른로고도 같이나와서....일단 패스해보자
# session.getLogs
아무래도 찾은것같다.......
일단 Array 안에 모든 log를 담아서 출력하는데
이거를 foreach 문을돌려서 각각 하나의 Log 를 출력하고
getMessage, getSeesionId, getLevel 을 출력할수있다..
계속 시도해보니
내가원하는 정보와 불필요한 정보의 Level이 다른것같다.
원하는 정보의 레벨은 -16
불필요한 정보의 레벨은 32 같다
일단 레벨을 출력한걸 보여주도록 하겠다.
👇👇👇👇코드👇👇👇👇
onst audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const log = session.getLogs();
console.log('====================')
log.then(function (res) {
res.forEach(function(item, index) {
console.log(item.getLevel())
})
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ====================
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG 32
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
LOG -16
뭔가 느낌이 온다
이제 if 문으로 걸러서 출력해보겠다
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
const log = session.getLogs();
console.log('====================')
log.then(function (res) {
res.forEach(function(item, index) {
if (item.getLevel === 32) {
console.log('불필요한 정보 =', item.getMessage())
} else {
console.log('필요한 정보 = ', item.getMessage())
}
})
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ====================
LOG 필요한 정보 = ffprobe version n5.1.2
LOG 필요한 정보 = Copyright (c) 2007-2022 the FFmpeg developers
LOG 필요한 정보 =
LOG 필요한 정보 = built with Apple clang version 14.0.0 (clang-1400.0.29.102)
LOG 필요한 정보 = configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
LOG 필요한 정보 = libavutil 57. 28.100 / 57. 28.100
LOG 필요한 정보 = libavcodec 59. 37.100 / 59. 37.100
LOG 필요한 정보 = libavformat 59. 27.100 / 59. 27.100
LOG 필요한 정보 = libavdevice 59. 7.100 / 59. 7.100
LOG 필요한 정보 = libavfilter 8. 44.100 / 8. 44.100
LOG 필요한 정보 = libswscale 6. 7.100 / 6. 7.100
LOG 필요한 정보 = libswresample 4. 7.100 / 4. 7.100
LOG 필요한 정보 = Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
LOG 필요한 정보 = Metadata:
LOG 필요한 정보 = major_brand :
LOG 필요한 정보 = isom
LOG 필요한 정보 =
LOG 필요한 정보 = minor_version :
LOG 필요한 정보 = 512
LOG 필요한 정보 =
LOG 필요한 정보 = compatible_brands:
LOG 필요한 정보 = isomiso2avc1mp41
LOG 필요한 정보 =
LOG 필요한 정보 = encoder :
LOG 필요한 정보 = Lavf58.44.100
LOG 필요한 정보 =
LOG 필요한 정보 = Duration:
LOG 필요한 정보 = 00:00:05.76
LOG 필요한 정보 = , start:
LOG 필요한 정보 = 0.000000
LOG 필요한 정보 = , bitrate:
LOG 필요한 정보 = 3956 kb/s
LOG 필요한 정보 =
LOG 필요한 정보 = Stream #0:0
LOG 필요한 정보 = [0x1]
LOG 필요한 정보 = (und)
LOG 필요한 정보 = : Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s
LOG 필요한 정보 = ,
LOG 필요한 정보 = 30 fps,
LOG 필요한 정보 = 30 tbr,
LOG 필요한 정보 = 15360 tbn
LOG 필요한 정보 = (default)
LOG 필요한 정보 =
LOG 필요한 정보 = Metadata:
LOG 필요한 정보 = handler_name :
LOG 필요한 정보 = ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG 필요한 정보 =
LOG 필요한 정보 = vendor_id :
LOG 필요한 정보 = [0][0][0][0]
LOG 필요한 정보 =
LOG 필요한 정보 = Stream #0:1
LOG 필요한 정보 = [0x2]
LOG 필요한 정보 = (eng)
LOG 필요한 정보 = : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s
LOG 필요한 정보 = (default)
LOG 필요한 정보 =
LOG 필요한 정보 = Metadata:
LOG 필요한 정보 = handler_name :
LOG 필요한 정보 = ISO Media file produced by Google Inc. Created on: 08/17/2020.
LOG 필요한 정보 =
LOG 필요한 정보 = vendor_id :
LOG 필요한 정보 = [0][0][0][0]
LOG 필요한 정보 =
LOG 필요한 정보 = 200572
LOG 필요한 정보 =
LOG 필요한 정보 = 47402
LOG 필요한 정보 =
LOG 필요한 정보 = 6784
LOG 필요한 정보 =
LOG 필요한 정보 = 5131
LOG 필요한 정보 =
LOG 필요한 정보 = 3646
LOG 필요한 정보 =
LOG 필요한 정보 = 51849
LOG 필요한 정보 =
LOG 필요한 정보 = 6661
LOG 필요한 정보 =
LOG 필요한 정보 = 6067
LOG 필요한 정보 =
LOG 필요한 정보 = 3642
LOG 필요한 정보 =
LOG 필요한 정보 = 43953
LOG 필요한 정보 =
LOG 필요한 정보 = 5562
LOG 필요한 정보 =
LOG 필요한 정보 = 3584
LOG 필요한 정보 =
LOG 필요한 정보 = 3579
LOG 필요한 정보 =
LOG 필요한 정보 = 43500
LOG 필요한 정보 =
LOG 필요한 정보 = 5496
LOG 필요한 정보 =
LOG 필요한 정보 = 3669
LOG 필요한 정보 =
LOG 필요한 정보 = 3355
LOG 필요한 정보 =
LOG 필요한 정보 = 41392
LOG 필요한 정보 =
LOG 필요한 정보 = 5571
LOG 필요한 정보 =
LOG 필요한 정보 = 3487
LOG 필요한 정보 =
LOG 필요한 정보 = 3135
LOG 필요한 정보 =
LOG 필요한 정보 = 40202
LOG 필요한 정보 =
LOG 필요한 정보 = 5817
LOG 필요한 정보 =
LOG 필요한 정보 = 3557
LOG 필요한 정보 =
LOG 필요한 정보 = 3427
LOG 필요한 정보 =
LOG 필요한 정보 = 40353
LOG 필요한 정보 =
LOG 필요한 정보 = 5794
LOG 필요한 정보 =
LOG 필요한 정보 = 4051
LOG 필요한 정보 =
LOG 필요한 정보 = 3716
LOG 필요한 정보 =
LOG 필요한 정보 = 55030
LOG 필요한 정보 =
LOG 필요한 정보 = 6560
LOG 필요한 정보 =
LOG 필요한 정보 = 3588
LOG 필요한 정보 =
LOG 필요한 정보 = 3947
LOG 필요한 정보 =
LOG 필요한 정보 = 45565
LOG 필요한 정보 =
LOG 필요한 정보 = 5614
LOG 필요한 정보 =
LOG 필요한 정보 = 3788
LOG 필요한 정보 =
LOG 필요한 정보 = 3361
LOG 필요한 정보 =
LOG 필요한 정보 = 40883
LOG 필요한 정보 =
LOG 필요한 정보 = 5708
LOG 필요한 정보 =
LOG 필요한 정보 = 3867
LOG 필요한 정보 =
LOG 필요한 정보 = 3566
LOG 필요한 정보 =
LOG 필요한 정보 = 39203
LOG 필요한 정보 =
LOG 필요한 정보 = 6061
LOG 필요한 정보 =
LOG 필요한 정보 = 3815
LOG 필요한 정보 =
LOG 필요한 정보 = 3506
LOG 필요한 정보 =
LOG 필요한 정보 = 39310
LOG 필요한 정보 =
LOG 필요한 정보 = 5763
LOG 필요한 정보 =
LOG 필요한 정보 = 3521
LOG 필요한 정보 =
LOG 필요한 정보 = 3607
LOG 필요한 정보 =
LOG 필요한 정보 = 39931
LOG 필요한 정보 =
LOG 필요한 정보 = 5735
LOG 필요한 정보 =
LOG 필요한 정보 = 3586
LOG 필요한 정보 =
LOG 필요한 정보 = 3497
LOG 필요한 정보 =
LOG 필요한 정보 = 40156
LOG 필요한 정보 =
LOG 필요한 정보 = 6022
LOG 필요한 정보 =
LOG 필요한 정보 = 3830
LOG 필요한 정보 =
LOG 필요한 정보 = 3597
LOG 필요한 정보 =
LOG 필요한 정보 = 104340
LOG 필요한 정보 =
LOG 필요한 정보 = 7485
LOG 필요한 정보 =
LOG 필요한 정보 = 3591
LOG 필요한 정보 =
LOG 필요한 정보 = 3621
LOG 필요한 정보 =
LOG 필요한 정보 = 38863
LOG 필요한 정보 =
LOG 필요한 정보 = 5449
LOG 필요한 정보 =
LOG 필요한 정보 = 2920
LOG 필요한 정보 =
LOG 필요한 정보 = 3525
LOG 필요한 정보 =
LOG 필요한 정보 = 47031
LOG 필요한 정보 =
LOG 필요한 정보 = 5764
LOG 필요한 정보 =
LOG 필요한 정보 = 3574
LOG 필요한 정보 =
LOG 필요한 정보 = 3564
LOG 필요한 정보 =
LOG 필요한 정보 = 44096
LOG 필요한 정보 =
LOG 필요한 정보 = 5841
LOG 필요한 정보 =
LOG 필요한 정보 = 4010
LOG 필요한 정보 =
LOG 필요한 정보 = 3679
LOG 필요한 정보 =
LOG 필요한 정보 = 44091
LOG 필요한 정보 =
LOG 필요한 정보 = 6321
LOG 필요한 정보 =
LOG 필요한 정보 = 3874
LOG 필요한 정보 =
LOG 필요한 정보 = 3945
LOG 필요한 정보 =
LOG 필요한 정보 = 44564
LOG 필요한 정보 =
LOG 필요한 정보 = 6486
LOG 필요한 정보 =
LOG 필요한 정보 = 4300
LOG 필요한 정보 =
LOG 필요한 정보 = 3931
LOG 필요한 정보 =
LOG 필요한 정보 = 43305
LOG 필요한 정보 =
LOG 필요한 정보 = 6364
LOG 필요한 정보 =
LOG 필요한 정보 = 4230
LOG 필요한 정보 =
LOG 필요한 정보 = 4026
LOG 필요한 정보 =
LOG 필요한 정보 = 42957
LOG 필요한 정보 =
LOG 필요한 정보 = 6475
LOG 필요한 정보 =
LOG 필요한 정보 = 4262
LOG 필요한 정보 =
LOG 필요한 정보 = 3975
LOG 필요한 정보 =
LOG 필요한 정보 = 51836
LOG 필요한 정보 =
LOG 필요한 정보 = 6901
LOG 필요한 정보 =
LOG 필요한 정보 = 4502
LOG 필요한 정보 =
LOG 필요한 정보 = 4035
LOG 필요한 정보 =
LOG 필요한 정보 = 43711
LOG 필요한 정보 =
LOG 필요한 정보 = 6544
LOG 필요한 정보 =
LOG 필요한 정보 = 4172
LOG 필요한 정보 =
LOG 필요한 정보 = 3938
LOG 필요한 정보 =
LOG 필요한 정보 = 43549
LOG 필요한 정보 =
LOG 필요한 정보 = 6270
LOG 필요한 정보 =
LOG 필요한 정보 = 4046
LOG 필요한 정보 =
LOG 필요한 정보 = 3793
LOG 필요한 정보 =
LOG 필요한 정보 = 44727
LOG 필요한 정보 =
LOG 필요한 정보 = 6319
LOG 필요한 정보 =
LOG 필요한 정보 = 3998
LOG 필요한 정보 =
LOG 필요한 정보 = 3883
LOG 필요한 정보 =
LOG 필요한 정보 = 42722
LOG 필요한 정보 =
LOG 필요한 정보 = 6528
LOG 필요한 정보 =
LOG 필요한 정보 = 4230
LOG 필요한 정보 =
LOG 필요한 정보 = 3909
LOG 필요한 정보 =
LOG 필요한 정보 = 41801
LOG 필요한 정보 =
LOG 필요한 정보 = 6815
LOG 필요한 정보 =
LOG 필요한 정보 = 3978
LOG 필요한 정보 =
LOG 필요한 정보 = 4094
LOG 필요한 정보 =
LOG 필요한 정보 = 40256
LOG 필요한 정보 =
LOG 필요한 정보 = 6366
LOG 필요한 정보 =
LOG 필요한 정보 = 4218
LOG 필요한 정보 =
LOG 필요한 정보 = 3743
LOG 필요한 정보 =
LOG 필요한 정보 = 101632
LOG 필요한 정보 =
LOG 필요한 정보 = 8175
LOG 필요한 정보 =
LOG 필요한 정보 = 3830
LOG 필요한 정보 =
LOG 필요한 정보 = 4310
LOG 필요한 정보 =
LOG 필요한 정보 = 33766
LOG 필요한 정보 =
LOG 필요한 정보 = 5974
LOG 필요한 정보 =
LOG 필요한 정보 = 3380
LOG 필요한 정보 =
LOG 필요한 정보 = 3806
LOG 필요한 정보 =
LOG 필요한 정보 = 43362
LOG 필요한 정보 =
LOG 필요한 정보 = 6177
LOG 필요한 정보 =
LOG 필요한 정보 = 3964
LOG 필요한 정보 =
LOG 필요한 정보 = 3873
LOG 필요한 정보 =
LOG 필요한 정보 = 43735
LOG 필요한 정보 =
LOG 필요한 정보 = 6232
LOG 필요한 정보 =
LOG 필요한 정보 = 4145
LOG 필요한 정보 =
LOG 필요한 정보 = 3612
LOG 필요한 정보 =
LOG 필요한 정보 = 45288
LOG 필요한 정보 =
LOG 필요한 정보 = 6192
LOG 필요한 정보 =
LOG 필요한 정보 = 4035
LOG 필요한 정보 =
LOG 필요한 정보 = 4044
LOG 필요한 정보 =
LOG 필요한 정보 = 42205
LOG 필요한 정보 =
LOG 필요한 정보 = 6837
LOG 필요한 정보 =
LOG 필요한 정보 = 4486
LOG 필요한 정보 =
LOG 필요한 정보 = 3884
LOG 필요한 정보 =
LOG 필요한 정보 = 45320
LOG 필요한 정보 =
LOG 필요한 정보 = 7483
LOG 필요한 정보 =
LOG 필요한 정보 = 4217
LOG 필요한 정보 =
LOG 필요한 정보 = 4227
LOG 필요한 정보 =
LOG 필요한 정보 = 37259
LOG 필요한 정보 =
LOG 필요한 정보 = 6980
LOG 필요한 정보 =
LOG 필요한 정보 = 4314
LOG 필요한 정보 =
LOG 필요한 정보 = 3954
LOG 필요한 정보 =
LOG 필요한 정보 = 40932
LOG 필요한 정보 =
LOG 필요한 정보 = 7390
LOG 필요한 정보 =
LOG 필요한 정보 = 4869
LOG 필요한 정보 =
LOG 필요한 정보 = 4340
LOG 필요한 정보 =
LOG 필요한 정보 = 36753
LOG 필요한 정보 =
LOG 필요한 정보 = 8176
LOG 필요한 정보 =
LOG 필요한 정보 = 5180
LOG 필요한 정보 =
LOG 필요한 정보 = 4133
LOG 필요한 정보 =
LOG 필요한 정보 = 57793
LOG 필요한 정보 =
LOG 필요한 정보 = 16424
LOG 필요한 정보 =
LOG 필요한 정보 = 9230
LOG 필요한 정보 =
LOG 필요한 정보 = 6440
LOG 필요한 정보 =
LOG 필요한 정보 = 41975
LOG 필요한 정보 =
LOG 필요한 정보 = 9540
LOG 필요한 정보 =
LOG 필요한 정보 = 6629
LOG 필요한 정보 =
LOG 필요한 정보 = 5149
LOG 필요한 정보 =
LOG 필요한 정보 = 16668
LOG 필요한 정보 =
LOG 필요한 정보 = 9210
LOG 필요한 정보 =
LOG 필요한 정보 = 3705
LOG 필요한 정보 =
LOG 필요한 정보 = 4004
LOG 필요한 정보 =
LOG 필요한 정보 = 5127
LOG 필요한 정보 =
LOG 필요한 정보 = 5120
LOG 필요한 정보 =
LOG 필요한 정보 = 5.700000
LOG 필요한 정보 =
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ김치국 드링킹
자 패스~
# session.getOutput
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getOutput();
log.then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG ffprobe version n5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///Users/onseoktae/Library/Developer/CoreSimulator/Devices/F207D495-B907-43C3-80A2-09A635DA06BB/data/Media/DCIM/100APPLE/IMG_0008.MP4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.44.100
Duration: 00:00:05.76, start: 0.000000, bitrate: 3956 kb/s
Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 3857 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/17/2020.
vendor_id : [0][0][0][0]
200572
47402
6784
5131
3646
51849
6661
6067
3642
43953
5562
3584
3579
43500
5496
3669
3355
41392
5571
3487
3135
40202
5817
3557
3427
40353
5794
4051
3716
55030
6560
3588
3947
45565
5614
3788
3361
40883
5708
3867
3566
39203
6061
3815
3506
39310
5763
3521
3607
39931
5735
3586
3497
40156
6022
3830
3597
104340
7485
3591
3621
38863
5449
2920
3525
47031
5764
3574
3564
44096
5841
4010
3679
44091
6321
3874
3945
44564
6486
4300
3931
43305
6364
4230
4026
42957
6475
4262
3975
51836
6901
4502
4035
43711
6544
4172
3938
43549
6270
4046
3793
44727
6319
3998
3883
42722
6528
4230
3909
41801
6815
3978
4094
40256
6366
4218
3743
101632
8175
3830
4310
33766
5974
3380
3806
43362
6177
3964
3873
43735
6232
4145
3612
45288
6192
4035
4044
42205
6837
4486
3884
45320
7483
4217
4227
37259
6980
4314
3954
40932
7390
4869
4340
36753
8176
5180
4133
57793
16424
9230
6440
41975
9540
6629
5149
16668
9210
3705
4004
5127
5120
5.700000
# session.getReturnCode
이건 성공했는지 안했는지에대한 상태코드를 return 하는 함수같다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getReturnCode();
log.then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG {}
음....?
알고보니 함수를 반환하는 함수이다 함수안에 함수라고 생각하면된다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getReturnCode();
log.then(res => {
console.log(res.isValueSuccess());
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG true
# session.getSessionId
단순 세션 아이디를 반환하는 함수이다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getSessionId();
console.log(log)
// log.then(res => {
// console.log(res.);
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG 28
# session.getState
현재상태를 반환하는 함수이다
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.getState();
// console.log(log)
log.then(res => {
console.log(res.toString());
})
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG 3
함수안을 들여다보면 enum 으로 정의되어있다.
현재 COMPLETED 한마디로 완료됬다는 상태를 반환하고있다.
# session.isFFmpeg
이건 FFmpeg이냐 아니냐인데 현재 나는 FFprobeKit 을 사용중이니 뭐...당연히 false 가 나올것이다.
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.isFFmpeg();
console.log(log)
// log.then(res => {
// console.log(res.toString());
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG false
# session.isFFprobe
이건 FFmpeg이냐 아니냐인데 현재 나는 FFprobeKit 을 사용중이니 뭐...당연히 true 가 나올것이다.
아직 왜 사용하는지는 감을 못잡았다...언젠간 쓰겠지뭐
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.isFFprobe();
console.log(log)
// log.then(res => {
// console.log(res.toString());
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG true
# session.isMediaInformation
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.isMediaInformation();
console.log(log)
// log.then(res => {
// console.log(res.toString());
// })
})
}
👇👇👇👇로그👇👇👇👇
LOG ======================
LOG false
이건 왜 false 인지 모르겠다... 추측이 안된다 npm 설명란에도 없는 내용이라...
일단 해석해보면... 미디어정보이냐? 이건데
음..뭘까... 패스
# session.thereAreAsynchronousMessagesInTransmit
해석을 해보자면 현재 전송중인 비동기 메시지가 있냐고 물어보는거다
promise 로 boolean 을 리턴하는데
나는 오류가 뜬다... 내가뭘 잘못한거지...?
뭐 일단...
이제 이게 마지막이다
이제지친다 ㅋㅋㅋㅋㅋㅋ
👇👇👇👇코드👇👇👇👇
const audio = async (command, videoURI) => {
FFprobeKit.executeAsync(command, async session => {
console.log('======================')
const log = session.thereAreAsynchronousMessagesInTransmit();
log.then(res => {
console.log(res);
})
})
}
👇👇👇👇로그👇👇👇👇
WARN Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not a function
TypeError: undefined is not a function
at thereAreAsynchronousMessagesInTransmit (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477900:96)
at ?anon_0_ (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477506:67)
at next (native)
at asyncGeneratorStep (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20527:26)
at _next (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20546:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20551:14)
at tryCallTwo (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:61:9)
at doResolve (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:216:25)
at Promise (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:82:14)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:20543:25)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:477512:29)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:479184:48)
at tryCallOne (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:53:16)
at anonymous (/Users/distiller/react-native/sdks/hermes/build_iphonesimulator/lib/InternalBytecode/InternalBytecode.js:139:27)
at apply (native)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26068:26)
at _callTimer (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:25987:17)
at _callReactNativeMicrotasksPass (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26017:17)
at callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:26180:44)
at __callReactNativeMicrotasks (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2401:46)
at anonymous (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2213:45)
at __guard (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2385:15)
at flushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2212:21)
at invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.baund:2206:33)
이게 마지막이였다
내결론은 이렇다
const ffmpegCommand = `-select_streams v -show_entries packet=size:stream=duration -of compact=p=0:nk=1 ${videoURI}`
이 커맨드 자체에서 필요한 정보만 얻고싶다는 커맨드를 만들어야 가능한거같다
분명 저기에 내가 필요하지 않은 정보를 요청해서 저렇게 나오는게 아닌가싶다
뭐 그래도 오늘 포스팅으로 언젠가는 두구두구 써먹을때가 있지않을까 싶다..
그럼 이것으로 오늘 포스팅을 마치도록 하겠다.
다음글 >
2023.01.20 - [개발/react-native] - [REACT-NATIVE] ffmpeg 사용하여 받은 오디오를 wave 형식으로 클라이언트에 보여주기
# 깃허브 주소
https://github.com/1domybest/react-native-baund-clone.git