gpt4 book ai didi

android - ffmpeg 中的 "No opaque field provided"是什么意思?

转载 作者:行者123 更新时间:2023-12-04 23:27:40 30 4
gpt4 key购买 nike

我使用代码将图像和 wav 转换为 mp4:

ffmpeg -loop 1 -i img.jpg -i audio.wav -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest out.mp4

但是我遇到了一些错误:
 05-09 17:00:23.473 26907-27514/com.tian.example E/xx: ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: built on May 9 2016 16:36:21 with gcc 4.9 20150123 (prerelease)
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/Users/tian/Documents/adt/android-ndk-r9c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- --sysroot=/Users/tian/Documents/adt/android-ndk-r9c/platforms/android-16/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon -fPIE -pie' --extra-ldflags='-L../x264 -fPIE -pie' --enable-version3 --enable-gpl --disable-doc --enable-yasm --disable-decoders --enable-decoder=mjpeg --enable-decoder=aac --enable-decoder=h264 --disable-encoders --enable-encoder=libx264 --enable-encoder=aac --enable-encoder=h264 --enable-muxers --disable-demuxers --enable-demuxer=image2 --enable-demuxer=wav --disable-parsers --disable-protocols --enable-protocol=file --disable-filters --disable-avresample --disable-libfreetype --disable-indevs --disable-indev=lavfi --disable-outdevs --enable- libavutil 51. 54.100 / 51. 54.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libavcodec 54. 23.100 / 54. 23.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libavformat 54. 6.100 / 54. 6.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libavdevice 54. 0.100 / 54. 0.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libavfilter 2. 77.100 / 2. 77.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libswscale 2. 1.100 / 2. 1.100

05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libswresample 0. 15.100 / 0. 15.100
05-09 17:00:23.473 26907-27514/com.tian.example E/xx: libpostproc 52. 0.100 / 52. 0.100
05-09 17:00:23.553 26907-27514/com.tian.example E/xx: [image2 @ 0xb6042100] max_analyze_duration 5000000 reached at 5000000
05-09 17:00:23.553 26907-27514/com.tian.example E/xx: Input #0, image2, from '/storage/emulated/0/Android/data/com.tian.example/files/tian/frame.jpg':
05-09 17:00:23.553 26907-27514/com.tian.example E/xx: Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
05-09 17:00:23.553 26907-27514/com.tian.example E/xx: Stream #0:0: Video: mjpeg, yuvj420p, 320x240 [SAR 72:72 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 25 tbc
05-09 17:00:23.573 26907-27514/com.tian.example E/xx: Guessed Channel Layout for Input Stream #1.0 : mono
05-09 17:00:23.573 26907-27514/com.tian.example E/xx: Input #1, wav, from '/storage/emulated/0/Android/data/com.tian.example/files/tian/example/回声_2016_05_07_22_23_20.wav':

05-09 17:00:23.573 26907-27514/com.tian.example E/xx: Duration: 00:00:02.65, bitrate: 705 kb/s
05-09 17:00:23.573 26907-27514/com.tian.example E/xx: Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, 705 kb/s
05-09 17:00:23.593 26907-27514/com.tian.example E/xx: [buffer @ 0xb6052070] w:320 h:240 pixfmt:yuvj420p tb:1/25 sar:72/72 sws_param:flags=2
05-09 17:00:23.593 26907-27514/com.tian.example E/xx: [buffersink @ 0xb60520a0] No opaque field provided

05-09 17:00:23.593 26907-27514/com.tian.example E/xx: [abuffer @ 0xb6052100] Invalid sample format (null).
05-09 17:00:23.593 26907-27514/com.tian.example E/xx: Error opening filters!

我是ffmpeg的新手。

最佳答案

我的错。添加解码器 pcm_s16le,很好用!

关于android - ffmpeg 中的 "No opaque field provided"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37111718/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com