amerge
.mp3 파일과 .webm 파일 을 시도한 후 "(잘못된 코덱 매개 변수)"오류가 발생했습니다.
출력 형식은 .webm입니다.
내 ffmpeg 명령은 다음과 같습니다.
ffmpeg -y -i native.mp3 -i 530f79494f2610e5058b4c73.webm -filter_complex \
'[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a1]; \
[1:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.5[a2]; \
[a1][a2]amerge,pan=stereo:c0<c0+c2:c1<c1+c3[out]' -map 1:v -map '[out]' -c:v copy \
-c:a libfdk_aac -shortest -f webm output.webm
그리고 로그 :
ffmpeg version N-60332-ga0d5204 Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 4 2014 21:31:51 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 49.101 / 55. 49.101
libavformat 55. 29.101 / 55. 29.101
libavdevice 55. 7.100 / 55. 7.100
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mp3, from 'native.mp3':
Metadata:
artist : Freddie O. Moises
title : Native Blue
Duration: 00:05:28.54, start: 0.025056, bitrate: 150 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 150 kb/s
Stream #0:1: Video: mjpeg, yuvj420p(pc), 93x82, 90k tbr, 90k tbn, 90k tbc
Metadata:
title : None
comment : Cover (front)
Input #1, matroska,webm, from '530f79494f2610e5058b4c73.webm':
Metadata:
encoder : Lavf55.18.100
Duration: 00:00:15.00, start: 0.000000, bitrate: 251 kb/s
Stream #1:0(eng): Video: vp8, yuv420p, 484x252, SAR 112:121 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
Stream #1:1(eng): Audio: vorbis, 44100 Hz, stereo, fltp (default)
[Parsed_pan_5 @ 0x7febd3e01e60] This syntax is deprecated. Use '|' to separate the list items.
[Parsed_amerge_4 @ 0x7febd3e016a0] No channel layout for input 1
[Parsed_amerge_4 @ 0x7febd3e016a0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
[libvpx @ 0x7febd5000000] v1.3.0
[webm @ 0x7febd5009000] Only VP8,VP9 video and Vorbis,Opus(experimental, use -strict -2) audio and WebVTT subtitles are supported for WebM.
Output #0, webm, to 'output.webm':
Metadata:
artist : Freddie O. Moises
title : Native Blue
encoder : Lavf55.29.101
Stream #0:0(eng): Video: vp8 (libvpx), yuv420p, 484x252 [SAR 112:121 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 24 tbc (default)
Stream #0:1: Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 128 kb/s (default)
Stream mapping:
Stream #0:0 (mp3) -> aformat (graph 0)
Stream #1:1 (vorbis) -> aformat (graph 0)
Stream #1:0 -> #0:0 (vp8 -> libvpx)
pan (graph 0) -> Stream #0:1 (libfdk_aac)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
추신 : 스트림에 libfdk_aac
필요하다고 생각 pan
합니다. 흠, 내가 틀렸다면 바로 잡아 줘.
libvpx
vcodec 및 acodec 에 vp8을libvorbis
사용했습니다. 그러나 그냥 코덱을 변경하려고합니다. 고마워요! :) 감사합니다.