microshow / RxFFmpeg

🔥💥RxFFmpeg 是基于 ( FFmpeg 4.0 + X264 + mp3lame + fdk-aac + opencore-amr + openssl ) 编译的适用于 Android 平台的音视频编辑、视频剪辑的快速处理框架,包含以下功能:视频拼接,转码,压缩,裁剪,片头片尾,分离音视频,变速,添加静态贴纸和gif动态贴纸,添加字幕,添加滤镜,添加背景音乐,加速减速视频,倒放音视频,音频裁剪,变声,混音,图片合成视频,视频解码图片,抖音首页,视频播放器及支持 OpenSSL https 等主流特色功能
4.46k stars 748 forks source link

找不着文件 #115

Closed wxjer closed 4 years ago

wxjer commented 4 years ago

你好,最近遇到一个小问题: 日志: D/TAG_FFMPEG: All info found D/TAG_FFMPEG: After avformat_find_stream_info() pos: 652494 bytes read:280118 seeks:1 frames:48 I/TAG_FFMPEG: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/Camera/VID_20200227_232117.mp4': I/TAG_FFMPEG: Metadata: I/TAG_FFMPEG: major_brand : I/TAG_FFMPEG: mp42 I/TAG_FFMPEG: minor_version : I/TAG_FFMPEG: 0 I/TAG_FFMPEG: compatible_brands: I/TAG_FFMPEG: isommp42 I/TAG_FFMPEG: creation_time : I/TAG_FFMPEG: 2020-02-27T15:21:21.000000Z I/TAG_FFMPEG: com.android.version: I/TAG_FFMPEG: 10 I/TAG_FFMPEG: Duration: I/TAG_FFMPEG: 00:00:02.33 I/TAG_FFMPEG: , start: I/TAG_FFMPEG: 0.000000 I/TAG_FFMPEG: , bitrate: I/TAG_FFMPEG: 21607 kb/s I/TAG_FFMPEG: Stream #0:0 I/TAG_FFMPEG: (eng) D/TAG_FFMPEG: , 1, 1/90000 I/TAG_FFMPEG: : Video: h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 20178 kb/s I/TAG_FFMPEG: , SAR 1:1 DAR 16:9 I/TAG_FFMPEG: , I/TAG_FFMPEG: 29.77 fps, I/TAG_FFMPEG: 29.75 tbr, I/TAG_FFMPEG: 90k tbn, I/TAG_FFMPEG: 180k tbc I/TAG_FFMPEG: (default) I/TAG_FFMPEG: Metadata: I/TAG_FFMPEG: rotate : I/TAG_FFMPEG: 90 I/TAG_FFMPEG: creation_time : I/TAG_FFMPEG: 2020-02-27T15:21:21.000000Z I/TAG_FFMPEG: handler_name : I/TAG_FFMPEG: VideoHandle I/TAG_FFMPEG: Side data: I/TAG_FFMPEG:
I/TAG_FFMPEG: displaymatrix: rotation of -90.00 degrees I/TAG_FFMPEG: Stream #0:1 I/TAG_FFMPEG: (eng) D/TAG_FFMPEG: , 47, 1/48000 I/TAG_FFMPEG: : Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s I/TAG_FFMPEG: (default) I/TAG_FFMPEG: Metadata: I/TAG_FFMPEG: creation_time : I/TAG_FFMPEG: 2020-02-27T15:21:21.000000Z I/TAG_FFMPEG: handler_name : I/TAG_FFMPEG: SoundHandle D/TAG_FFMPEG: Successfully opened the file. D/TAG_FFMPEG: Parsing a group of options: output url /storage/emulated/0/chosen_media/transcode/1582821847051_transcode.mp4. D/TAG_FFMPEG: Applying option s (set frame size (WxH or abbreviation)) with argument 640x480. D/TAG_FFMPEG: Applying option b (video bitrate (please use -b:v)) with argument 500k. W/TAG_FFMPEG: Please use -b:a or -b:v, -b is ambiguous D/TAG_FFMPEG: Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264. D/TAG_FFMPEG: Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 25. D/TAG_FFMPEG: Successfully parsed a group of options. D/TAG_FFMPEG: Opening an output file: /storage/emulated/0/chosen_media/transcode/1582821847051_transcode.mp4. V/TAG_FFMPEG: Matched encoder 'libx264' for codec 'h264'. D/TAG_FFMPEG: Statistics: 280118 bytes read, 1 seeks D/TAG_FFMPEG: Setting default whitelist 'file,crypto' D/TAG_FFMPEG: Successfully opened the file. I/TAG_FFMPEG: Hyper fast Audio and Video encoder I/TAG_FFMPEG: usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... W/TAG_FFMPEG: Use -h to get full help or, even better, run 'man ffmpeg' 找不到文件

直接gradle依赖2.2版本 ffmpeg -i /storage/emulated/0/DCIM/Camera/VID_20200227_232117.mp4 -s 640x480 -b 500k -vcodec h264 -r 25 /storage/emulated/0/chosen_media/transcode/1582822367765_transcode.mp4

读写权限有,文件也创建成功了,提示找不到文件 求指点 多谢

wxjer commented 4 years ago

手机:essential phone 系统:10 build number :QP1A 191005

wxjer commented 4 years ago

原因应该是提前为ffmpeg创建好了生成文件