-
Mux 3gp audio file with jpg image to create video clip
So far I am getting various errors no matter what combination of things I try. Thanks.
C:Androidimages>C:Androidffmpeg-git-a254452-win32-staticbinffmpeg -y -f image2 -r .2 -i IMAG001.jpg -i “fold doblar.3gp” -acodec copy a.mp4
ffmpeg version N-32726-ga254452, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 19 2011 19:49:13 with gcc 4.6.1
configuration: –enable-gpl –enable-version3 –enable-runtime-cpudetect –enable-avisynth –enable-bzlib –enable-frei0r –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfreetype –enable-libgsm –enable-libmp3lame –enable-libopenjpeg –enable-librtmp –enable-libschroedinger —
enable-libspeex –enable-libtheora –enable-libvo-aacenc –enable-libvo-amrwbenc –enable-libvorbis –enable-libvpx –enable-libx264 –enable-libxavs –enable-libxvid –enable-zlib
libavutil 51. 16. 1 / 51. 16. 1
libavcodec 53. 16. 0 / 53. 16. 0
libavformat 53. 12. 0 / 53. 12. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 43. 2 / 2. 43. 2
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, image2, from ‘IMAG001.jpg’:
Duration: 00:00:05.00, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 3264×1952, 0.20 tbr, 0.20 tbn, 0.20 tbc
[amr @ 003DF5E0] max_analyze_duration 5000000 reached at 5000000
[amr @ 003DF5E0] Estimating duration from bitrate, this may be inaccurate
Input #1, amr, from ‘fold doblar.3gp’:
Duration: 00:00:14.82, bitrate: 12 kb/s
Stream #1.0: Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 channels, flt, 12 kb/s
[buffer @ 042720C0] w:3264 h:1952 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[libx264 @ 04247C20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 04247C20] profile High, level 5.1
[libx264 @ 04247C20] 264 – core 116 r2074 2641b9e – H.264/MPEG-4 AVC codec – Copyleft 2003-2011 – https://www.videolan.org/x264.html – options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,
11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.
0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 04260820] track 1: could not find tag, codec not currently supported in container
Output #0, mp4, to ‘a.mp4’:
Metadata:
encoder : Lavf53.12.0
Stream #0.0: Video: h264 (![0][0][0] / 0x0021), yuvj420p, 3264×1952, q=-1–1, 1 tbn, 0.20 tbc
Stream #0.1: Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 channels, 12 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mjpeg -> libx264)
Stream #1.0 -> #0.1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)