filter: subtitles and special chars
Hello, Due to the fact that I cannot get "-i my.srt" and "sub_charenc" to work, even after ( I guess ) satisfying 'iconv' requirements during the compile of N-83701-g70ebc05-1 20170205, I found the "subtitles" filter and 'charenc=CP1250' perfectly doing the job. The only small issues is that the subtitle filename.srt can not use any characters that need to be escaped, such as '[' ']' etc. When issuing this option: -filter:v scale=960:-1,subtitles=myvidfile\[1of3\].srt:charenc=CP1250:force_style='Fontsize=24:original_size=hd480' the "myvidfile\[1of10\].srt" name causes ffmpeg to error out with: [Parsed_subtitles_1 @ 0x5635ef66d280] Unable to open myvidfile [AVFilterGraph @ 0x5635ef667560] Error initializing filter 'subtitles' with args 'myvidfile' wrapping the myvidfile[1of10].srt in double or single quotes does not help... Thank you! Mike
Le duodi 12 ventôse, an CCXXV, Mike F a écrit :
Hello,
Hello. You just hijacked a thread. It is forbidden on this list. I suggest you re-read the posting guidelines carefully in order to not do anything forbidden again.
The only small issues is that the subtitle filename.srt can not use any characters that need to be escaped, such as '[' ']' etc.
This is not specific to the subtitles filter. The escaping rules are documented, you just need to read them. Of course, you have to take into account the escaping required by your shell.
-filter:v scale=960:-1,subtitles=myvidfile\[1of3\].srt:charenc=CP1250:force_style='Fontsize=24:original_size=hd480'
the "myvidfile\[1of10\].srt" name causes ffmpeg to error out with:
The fact that the file name does not match is rather worrisome. If you want useful help, you have to be very careful that the commands you show here match exactly the one you tested and the errors you report. Regards, -- Nicolas George
On Thu, Mar 02, 2017 at 21:21:01 +0100, Nicolas George wrote:
Hello. You just hijacked a thread. It is forbidden on this list. I suggest you re-read the posting guidelines carefully in order to not do anything forbidden again.
Are you sure? I see no "In-Reply-To:" header. I do see a "References:" header, but it seems to (sort of) refer to its own Message-ID. This should be fine. What is your mai user agent showing? Moritz
Le duodi 12 ventôse, an CCXXV, Moritz Barsnick a écrit :
Are you sure? I see no "In-Reply-To:" header. I do see a "References:" header, but it seems to (sort of) refer to its own Message-ID. This should be fine. What is your mai user agent showing?
My bad, I was fooled by the strange references header. Still, someone is doing something seriously wrong here. Regards, -- Nicolas George
Am 02.03.2017 um 21:21 schrieb Nicolas George:
Le duodi 12 ventôse, an CCXXV, Mike F a écrit :
Hello,
Hello. You just hijacked a thread. It is forbidden on this list. I suggest you re-read the posting guidelines carefully in order to not do anything forbidden again
WTF - show the message he replied to with changing the topic the message you answered was by no question a thread start Date: Thu, 2 Mar 2017 18:55:37 +0000 (UTC) From: Mike F <paziu-at-yahoo.com@ffmpeg.org> To: "ffmpeg-user@ffmpeg.org" <ffmpeg-user@ffmpeg.org> Message-ID: <282123591.607216.1488480937672@mail.yahoo.com> MIME-Version: 1.0 References: <282123591.607216.1488480937672.ref@mail.yahoo.com> Subject: [FFmpeg-user] filter: subtitles and special chars X-BeenThere: ffmpeg-user@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg user questions <ffmpeg-user.ffmpeg.org> List-Unsubscribe: <http://ffmpeg.org/mailman/options/ffmpeg-user>, <mailto:ffmpeg-user-request@ffmpeg.org?subject=unsubscribe> List-Archive: <http://ffmpeg.org/pipermail/ffmpeg-user/> List-Post: <mailto:ffmpeg-user@ffmpeg.org> List-Help: <mailto:ffmpeg-user-request@ffmpeg.org?subject=help> List-Subscribe: <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>, <mailto:ffmpeg-user-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg user questions <ffmpeg-user@ffmpeg.org> Errors-To: ffmpeg-user-bounces@ffmpeg.org Sender: ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64
participants (4)
-
Mike F -
Moritz Barsnick -
Nicolas George -
Reindl Harald