small-video-record icon indicating copy to clipboard operation
small-video-record copied to clipboard

利用FFmpeg视频录制微信小视频与其压缩处理

Results 102 small-video-record issues
Sort by recently updated
recently updated
newest added

编译不通过, Build command failed. Error while executing process /Users/vittorio/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/vit/Desktop/small-video-record/SmallVideoRecord2/SmallVideoLib2/.externalNativeBuild/cmake/release/x86 --target jx_ffmpeg_jni} ninja: warning: premature end of file; recovering [1/14] Building CXX object CMakeFiles/jx_ffmpeg_jni.dir/src/main/cpp/jx_yuv_encode_h264.cpp.o [2/14] Building CXX...

#3002 SIGABRT 1 #00 pc 0001a764 /system/lib/libc.so (abort+63) [armeabi-v7a] -- 2 #01 pc 00354063 /system/lib/libart.so (art::Runtime::Abort(char const*)+262) [armeabi-v7a] 3 java: 4 java.lang.Thread.parkFor$(Thread.java:2137) 5 sun.misc.Unsafe.park(Unsafe.java:358) 6 java.util.concurrent.locks.LockSupport.park(LockSupport.java:190) 7 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059) 8 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1127)...

原因是竖屏宽高是反的,判断的时候判断反了,而且只判断一个宽可能另外的高有2个--不知道这样理解是不是对的 将MediaRecorderBase类prepareCameraParaments()第547行修改 if (size.width == SMALL_VIDEO_HEIGHT && size.height == SMALL_VIDEO_WIDTH) { mSupportedPreviewWidth = size.width; SMALL_VIDEO_HEIGHT = size.height; checkFullWidth(mSupportedPreviewWidth, SMALL_VIDEO_WIDTH); findWidth = true; break; } 然后全屏的时候也要传入屏幕宽度(最后会赋值给SMALL_VIDEO_WIDTH)

ffmpeg -y -i /storage/emulated/0/ruanchao/rc.mp4 -s 360*480 -r 10 /storage/emulated/0/ruanchao/rc1.gif ffmpeg -y -i /storage/emulated/0/rc.mp4 -i icon.png -filter_complex "[0][1]overlay=x=main_w-overlay_w:y=main_h-overlay_h[out]" -map '[out]' /storage/emulated/0/rc7.mp4 为什么这个ffmpeg这些基本的指令都不支持???

录制完视频, 为什么只能跳转 ? 启动录制视频 为什么不使用forresult方式启动, 录制完回到调用者...............

录制的视频没有声音,机型 三星note8