Problems with marq filter

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Mr.Madguy
New Cone
New Cone
Posts: 6
Joined: 04 Apr 2018 14:59

Problems with marq filter

Postby Mr.Madguy » 28 May 2022 09:58

First of all I want to provide some background. VLC has many problems with complex video conversion pipelines. Simply because it doesn't work well with nested quotes. "X"Y"Z" isn't treated as "Y" inside "X...Z". It's treated as "X" then Y then "Z". If I need to use nested quotes - I have to mix single quotes with double quotes. Problem is - sometimes VLC expects certain kind of quotes. For example sfilter expects double quotes and duplicate expects single ones. Such restrictions make it very hard to work with complex video conversion pipelines. I just hate programs, that require lots of trial'n'error to do anything.

So. Now about my problem. My task is simple - to apply sfilter="marq{marquee=Something,position=9}:marq{marquee=%d-%m-%Y %H:%M:%S,position=6}". After lots of trial'n'errors I've found out, that this is correct syntax, that actually works. Lack of double quotes causes ignoring second marq filter, so only first one is shown. Problem is - it works in Streaming GUI only. Now I need to automate this process via command line. I've made CMD file for this purpose. I know, that all special symbols should be escaped. So, command line looks like this sfilter=^"marq{marquee=Something,position=9}:marq{marquee=%%d-%%m-%%Y %%H:%%M:%%S,position=6}^". I've made dummy program, that simply echoes it's command line. It's 100% verified, that command line is exactly sfilter="marq{marquee=Something,position=9}:marq{marquee=%d-%m-%Y %H:%M:%S,position=6}". But it doesn't work. Second marq is ignored and I can't fix it. Everything else works as expected.

What is wrong with it?

P.S. I'm not sure, if it's problem or not. But I need to use transcode to convert 16:9 video to 3.666666:3 video format. Problem is - VLC shows it with wrong aspect ratio. I'm not sure, if it's conversion problem or displaying problem. I really hope, that it's displaying problem, but I'm not sure. Because if sfilter is applied after transcoding, not before, then text isn't distorted, so at the end it can be conversion problem. Video looks like it's "vetrical" instead of being "horizontal". Swapping width and height makes things even worse. I've played with width/height and canvas-width/canvas-height a lot, but nothing helped. How can I fix it?

Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 29 guests