Hi, I'm a cat. Yes is true, a cat
please consider that I have a .avs file that
contain, for example,
simply with a batch procedure I need to removeCode:vid=LSMASHVideoSource("V:\osmoRiccione\mxf\IMX\concatHD.mov").crop(0,32,0,0).IResize(1920,1080).colorMatrix(mode="Rec.601->Rec.709")Consider that the there are present double quotes inside the mode="Rec.601->Rec.709"Code:.colorMatrix(mode="Rec.601->Rec.709")
How I can do?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 17 of 17
Thread
-
-
I use EditPadPro to edit multiple text files simultaneously. You can open 100 AVS scripts at once and do a Find Replace operation in a few clicks.
Last edited by Aludin; 4th Aug 2019 at 09:16. Reason: what am i smoking
-
You can do it with powershell, see https://blogs.msdn.microsoft.com/zainnab/2007/07/08/grep-and-sed-with-powershell/, or find an implementation of SED for windows, or Windows Subsystem for Linux.
-
I have an old version of sed for Windows that can do it with:
Code:g:\utils\sed s/".colorMatrix(mode=\"Rec.601-^>Rec.709\")"// input.txt >output.txt
-
[Attachment 49740 - Click to enlarge]
Code:IF NOT "%dvcamOrIMX%"=="1" v:\sed.exe s/".colorMatrix(mode=\"Rec.601-^>Rec.709\")"// "%cd%\avsInput.avs">"%cd%\avsInputMod.avs"
-
By the way, sed can modify the original file directly if you use the -i switch
Code:sed -i s/text_to_replace/replacment_text/ filename.txt
-
oh wowcat
Code:IF NOT "%dvcamOrIMX%"=="1" v:\sed.exe -i s/".colorMatrix(mode=\"Rec.601-^>Rec.709\")"// "%cd%\avsInput.avs"
-
sed works but it generate some temporary files for example called sedM0g3Ot or sedfunTE that I don't want.
Is there a way to tell to sed.exe to don't generate they? -
Probably not. "In place" in your version of sed may mean it creates its own temporary file with the new text, deletes the original file, then renames the temporary file with the original name. The version I have doesn't seem to do that but I haven't tested it with a really long file where it would be noticeable.
-
An half-solution:
in the clean-up routine I putted
Code:if exist sed*.* del sed*.*
-
Hi, I'm a cat. Yes is true, a cat
Not averse to helping, but until you wake up and upgrade, and until you get over your fixation with felines, this is the only kind of comment you'll get from me. -
The "cat" thing is so juvenile and stupid. I could help him with his many requests, but refuse to do so because of this. I too asked him to stop, but he thinks he is being "cute" and won't stop.
-
-
I am the Egg Man. Koo-koo-ka-choo.
I am Death, destroyer of worlds.
I am a catatonic caterpillar. -
Similar Threads
-
Converting rec.709 to rec.601?
By killerteengohan in forum RestorationReplies: 22Last Post: 13th Jun 2020, 16:19 -
10-bit encodes with REC.709
By snadge in forum Newbie / General discussionsReplies: 2Last Post: 31st Jul 2019, 14:14 -
Premiere Frameserves SD in Rec 709?
By koberulz in forum Newbie / General discussionsReplies: 158Last Post: 3rd Oct 2018, 00:52 -
can x264vfw do change rec.601 --> rec.709?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 9th Mar 2017, 15:06 -
Virtualdub rec.601 <--> rec.709 colormatrix conversion
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 18th Sep 2014, 19:06