خرید بک لینک

Vote count: 0

I use the code to covert a image and wav to a mp4:

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

But I got some errors:

 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 Chael 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!

I am a new for ffmpeg. Please help me , thank you! I am waiting for your reply.

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 20 ارديبهشت 1395 ساعت: 16:22

صفحه بندی