Synology DS718+ NAS에 두 가지 버전의 ffmpeg가 설치되어 있습니다. 기본 및 오래된 2.7.1과 함께 제공되지만 tvheadend의 mpeg-ts 생성 프로필을 사용하여 향상된 기능을 위해 synocommunity ffmpeg 패키지(4.2.1)도 설치했습니다.
이제 다음 명령줄이 있습니다.
ffmpeg -i pipe:0 -map a -map v -c:v libx264 -vf "yadif=1:-1:1, scale=720:576" -crf 24 -profile:v main -preset veryfast -c:a mp3 -b:a 96k -ac 2 -async 1 -sn -fflags +genpts -metadata service_provider=STRING -metadata service_name=STRING -f mpegts pipe:1
내가 사용한다면2.7.1작동합니다(c:a aac로 설정하면 2.7.1에 aac가 없기 때문에 작동하지 않습니다). 하지만 사용하면4.2.1그것은 나에게 이것을 제공합니다 :
spawn: Stream #0:1 -> #0:0 (mp2 (native) -> mp3 (libmp3lame))
spawn: Stream #0:2 -> #0:1 (mp2 (native) -> mp3 (libmp3lame))
spawn: Stream #0:0 -> #0:2 (mpeg2video (native) -> h264 (libx264))
spawn: -async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
spawn: Last message repeated 1 times
spawn: Error initializing output stream 0:2 -- Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height
spawn: Conversion failed!
이상하게도 c:a aac를 선택하면 충분합니다.4.2.1오디오 스트림에서 충돌이 발생합니다.
spawn: Stream #0:1 -> #0:0 (mp2 (native) -> aac (native))
spawn: Stream #0:2 -> #0:1 (mp2 (native) -> aac (native))
spawn: Stream #0:0 -> #0:2 (mpeg2video (native) -> h264 (libx264))
spawn: -async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
spawn: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
spawn: Conversion failed!
내가 뭘 잘못하고 있는지 모르겠습니다. 도와주세요.