尝试在本地反应

时间:2017-11-10 17:00:56

标签: android react-native ffmpeg

我目前正在使用库react-native-video-processing在android上压缩10秒的视频。但这是我在尝试压缩它时遇到的错误。

有任何想法建议吗?

  

可能未处理的Promise拒绝(id:0):错误:压缩错误:   失败。 ffmpeg版本3.3.5版权所有(c)2000-2017 FFmpeg   使用gcc 4.8(GCC)配置构建的开发人员: - target-os = linux   --cross前缀= /用户/克莎/项目/ ffmpeg的-机器人/工具链-机器人/ bin中/臂-Linux的androideabi-   --arch = arm --cpu = cortex-a8 --enable-runtime-cpudetect --sysroot = / Users / kesha / Projects / ffmpeg-android / toolchain-android / sysroot   --enable-libx264 --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable -ffplay --disable-ffprobe --enable-yasm --disable -doc --disable-shared --enable-static --enable-nonfree --disable-network --enable-gpl --enable -ffmpeg --enable-small --disable-filters --enable-filter = copy - -enable-filter = trim --enable-filter = crop --enable-filter = scale --enable-filter = format --pkg-config = / Users / kesha / Projects / ffmpeg-android / ffmpeg-3.3-pkg- config --prefix = / Users / kesha / Projects / ffmpeg-android / build / armeabi-v7a --extra-cflags =' -I / Users / kesha / Projects / ffmpeg-android / toolchain-android / include   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE = 2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags =' -L / Users / kesha / Projects / ffmpeg-android / toolchain-android / lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags = --extra-libs =' -lx264 -lm' libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 /   6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100Input#0,mov,mp4,m4a,3gp,3g2,mj2,from   '文件:///storage/emulated/0/Movies/VID_20171110_195700.mp4' ;:   元数据:major_brand:mp42 minor_version:0
  compatible_brands:isommp42 creation_time:   2017-11-10T16:57:05.000000Z com.android.version:7.1.1持续时间:   00:00:03.10,开始:0.000000,比特率:2094 kb / s流#0:0(eng):   视频:h264(avc1 / 0x31637661),yuvj420p(pc,smpte170m),720x480,   1991 kb / s,SAR 1:1 DAR 3:2,30 fps,30 tbr,90k tbn,180k tbc   (默认)元数据:rotate:270 creation_time
  :2017-11-10T16:57:05.000000Z handler_name:VideoHandle
  边数据:displaymatrix:旋转90.00度流

     

0:1(eng):音频:aac(mp4a / 0x6134706D),48000 Hz,立体声,fltp,95 kb / s(默认)元数据:creation_time:

     

2017-11-10T16:57:05.000000Z handler_name:SoundHandleStream   映射:流#0:0 - > #0:0(h264(原生) - > h264(libx264))   流#0:1 - > #0:1(aac(原生) - > aac(原生))按[q]停止,   [?] for helpError重新初始化过滤器!无法将帧注入   过滤网络:处理解码数据时出现内存不足错误   for stream#0:0 [aac @ 0xf6f04c00] Qavg:12036.106 [aac @ 0xf6f04c00] 2   在closingConversion上留在队列中的帧失败了!错误:压缩   错误:失败。 ffmpeg版本3.3.5版权所有(c)2000-2017 FFmpeg   使用gcc 4.8(GCC)配置构建的开发人员: - target-os = linux   --cross前缀= /用户/克莎/项目/ ffmpeg的-机器人/工具链-机器人/ bin中/臂-Linux的androideabi-   --arch = arm --cpu = cortex-a8 --enable-runtime-cpudetect --sysroot = / Users / kesha / Projects / ffmpeg-android / toolchain-android / sysroot   --enable-libx264 --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable -ffplay --disable-ffprobe --enable-yasm --disable -doc --disable-shared --enable-static --enable-nonfree --disable-network --enable-gpl --enable -ffmpeg --enable-small --disable-filters --enable-filter = copy - -enable-filter = trim --enable-filter = crop --enable-filter = scale --enable-filter = format --pkg-config = / Users / kesha / Projects / ffmpeg-android / ffmpeg-3.3-pkg- config --prefix = / Users / kesha / Projects / ffmpeg-android / build / armeabi-v7a --extra-cflags =' -I / Users / kesha / Projects / ffmpeg-android / toolchain-android / include   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE = 2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags =' -L / Users / kesha / Projects / ffmpeg-android / toolchain-android / lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags = --extra-libs =' -lx264 -lm' libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 /   6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100Input#0,mov,mp4,m4a,3gp,3g2,mj2,from   '文件:///storage/emulated/0/Movies/VID_20171110_195700.mp4' ;:   元数据:major_brand:mp42 minor_version:0
  compatible_brands:isommp42 creation_time:   2017-11-10T16:57:05.000000Z com.android.version:7.1.1持续时间:   00:00:03.10,开始:0.000000,比特率:2094 kb / s流#0:0(eng):   视频:h264(avc1 / 0x31637661),yuvj420p(pc,smpte170m),720x480,   1991 kb / s,SAR 1:1 DAR 3:2,30 fps,30 tbr,90k tbn,180k tbc   (默认)元数据:rotate:270 creation_time
  :2017-11-10T16:57:05.000000Z handler_name:VideoHandle
  边数据:displaymatrix:旋转90.00度流

     

0:1(eng):音频:aac(mp4a / 0x6134706D),48000 Hz,立体声,fltp,95 kb / s(默认)元数据:creation_time:

     

2017-11-10T16:57:05.000000Z handler_name:SoundHandleStream   映射:流#0:0 - > #0:0(h264(原生) - > h264(libx264))   流#0:1 - > #0:1(aac(原生) - > aac(原生))按[q]停止,   [?] for helpError重新初始化过滤器!无法将帧注入   过滤网络:处理解码数据时出现内存不足错误   for stream#0:0 [aac @ 0xf6f04c00] Qavg:12036.106 [aac @ 0xf6f04c00] 2   在closingConversion上留在队列中的帧失败了!       at createErrorFromErrorData(http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1807:15)       在http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1760:25       在MessageQueue .__ invokeCallback(http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2118:16)       在http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1935:16       在MessageQueue .__ guard(http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2053:9)       在MessageQueue.invokeCallbackAndReturnFlushedQueue(http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:1934:12)       在http://localhost:8081/debugger-ui/debuggerWorker.js:72:58

0 个答案:

没有答案