невозможно найти подходящий выходной формат для 'ΓÇô'

1357
jobin

Я пытаюсь кодировать видео для потоковой передачи mpeg, я использовал следующую команду (я привел ее из этой статьи: http://blog.streamroot.io/encode-multi-bitrate-videos-mpeg-dash-mse-based -media-player / ):

cd c:\ffmpeg\bin set inputFile="C:\park.mp4" set outputFile="C:\content\park"  ffmpeg -y -i %inputFile% -c:a libfdk_aac -ac 2 -ab 128k -c:v libx264 -r 24 – g 24 -b:v 1500k -maxrate 1500k -bufsize 1000k -vf "scale=-1:720" %outputFile%_720.mp4 

после запуска команды появляется следующая проблема:

[NULL @ 0000000002f43dc0] Unable to find a suitable output format for 'ΓÇô' ΓÇô: Invalid argument 

Я пробовал другие видео, но ошибка та же.

Как мне решить это?

0
Судя по тому, как выглядит заголовок на моем компьютере, может показаться, что может быть проблема с кодировкой символов в команде, которую вы пытаетесь выполнить. Я использую последнюю версию Firefox, но после слова «для» в вашем названии выглядит бред. Может быть, у ffmpeg тоже проблемы с этим. Trav 8 лет назад 0

2 ответа на вопрос

3
Mokubai

The problem is that you have a "special" hyphen followed by a space before the "g" in the middle of your command line, it is known as an "en dash" and it is confusing your parser.

To compare:

Hyphen: - Em dash: — En dash: – 

Your script should be (to the best of my knowledge):

cd c:\ffmpeg\bin set inputFile="C:\park.mp4" set outputFile="C:\content\park" ffmpeg -y -i %inputFile% -c:a libfdk_aac -ac 2 -ab 128k -c:v libx264 -r 24 -g 24 -b:v 1500k -maxrate 1500k -bufsize 1000k -vf "scale=-1:720" %outputFile%_720.mp4 

I would assume that the article you copied the script from was created using some kind of word processor which automatically substituted the em-dash after a space was accidentally typed before the "g" and from there it got copied and pasted into the rest of the article.

Hint garnered from this SO question

1
occvtech

First thing I see: you have a space between the dash and the g for specifying gop length. I think FFmpeg believes you are trying to save an output with the name "-". Try deleting the space.

Похожие вопросы