Hi Everyone
I am trying this..
string srt = @"C\:/Users/Toy/AppData/Roaming/TeknikForce/Live Caster Pro/sub.ass";
Console.Write(startInfo.FileName);
startInfo.Arguments = @"-re -i file:" + "\"" + vid + "\"" + " -vf ass=" + "\"" + srt + "\"" + " -vcodec libx264 -crf 23 -c:a copy " + "\"" + output + "\"" + "";
but it did not work???
Please help me..!
+ Reply to Thread
Results 1 to 8 of 8
-
-
shahid109, , please do not double post. I've deleted the other duplicate post. If you want to move a topic to another forum, PM a Mod.
Moderator redwudz -
What language is that? It doesn't look like command line. "C"?
-
Please follow sneaker's link. Learn how to do it from a normal ffmpeg command line. Then translate that command into C# or whatever.
You need to tell people what language you are using if you want help with it. Also, if you want help, an exact error message is needed -- "didn't work" does not work.
My C# is super rusty, but it looks like you're trying to escape a literal (@"...") string:msdn.microsoft.com: String literals (C#)
Code:string e = "Joe said \"Hello\" to me"; // Joe said "Hello" to me string f = @"Joe said ""Hello"" to me"; // Joe said "Hello" to me string g = "\\\\server\\share\\file.txt"; // \\server\share\file.txt string h = @"\\server\share\file.txt"; // \\server\share\file.txt
-
"e" is not a valid argument to the -r parameter. Also, you have to specify an output filename, not a path.
-
Just an added 2 cents to the excellent advise above... What you want to end up with is :
Code:ffmpeg -i "C:\Path To Video\Video.mp4" -ss 00:00:00.000 -to 99:00:00.000 -vf "ass='C\:\\Path\\To\\Subtitle\\srt2.ass'",scale=640:360,pad=640:360:0:0 -vcodec libx264 -crf 22 -r 30.000 -acodec aac -ac 2 -ar 44.1k -b:a 128k "C:\Path\To\Output\New_Video.mp4"
Notice the double quotes around "ass=..." and the single quotes around the actual ASS path in case of space as mention above. Also the "\" escape in front of all the subtitle path special characters. Quirk of FFMPEG.
I too am VERY rusty on C# but it works with this format using Visual Basic. Verification shown below.
Similar Threads
-
Vertical line spacing in ass subtitle file
By spopic in forum SubtitleReplies: 3Last Post: 21st Jun 2017, 03:07 -
problem with hardsubbing .ass file (karaoke effects) using FFmpeg
By yakov in forum SubtitleReplies: 1Last Post: 9th Jan 2016, 13:54 -
Muxing Software with cluster function and support ASS subtitle file
By 2awm366 in forum ComputerReplies: 8Last Post: 20th May 2015, 19:44 -
Problem adding .ass subtitle file into mkv with mkvmergeGUI
By Imationer in forum SubtitleReplies: 0Last Post: 31st Mar 2013, 13:24 -
.Ass subtitle with fuzzy fonts hardsubbed on HD mp4 video file.
By OutStanding in forum SubtitleReplies: 0Last Post: 4th Aug 2012, 12:18