[FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters

Soft Works softworkz at hotmail.com
Sat Dec 11 18:24:14 EET 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Michael
> Niedermayer
> Sent: Saturday, December 11, 2021 4:33 PM
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod,
> censor and show_speaker filters
> 
> On Fri, Dec 10, 2021 at 09:37:53PM +0000, Soft Works wrote:
> > - textmod {S -> S)
> >   Modify subtitle text in a number of ways
> >
> > - censor {S -> S)
> >   Censor subtitles using a word list
> >
> > - show_speaker {S -> S)
> >   Prepend speaker names from ASS subtitles to the visible text lines
> >
> > Signed-off-by: softworkz <softworkz at hotmail.com>
> > ---
> >  doc/filters.texi         | 206 ++++++++++++
> >  libavfilter/Makefile     |   5 +
> >  libavfilter/allfilters.c |   3 +
> >  libavfilter/sf_textmod.c | 697 +++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 911 insertions(+)
> >  create mode 100644 libavfilter/sf_textmod.c
> 
> doesnt apply (using git am with the email, the other patches
> with lower numbers all applied with no such issues)
> 
> Applying: avfilter/textmod: Add textmod, censor and show_speaker filters
> .git/rebase-apply/patch:269: trailing whitespace.
> /*
> .git/rebase-apply/patch:270: trailing whitespace.
>  * Copyright (c) 2021 softworkz
> .git/rebase-apply/patch:271: trailing whitespace.
>  *
> .git/rebase-apply/patch:272: trailing whitespace.
>  * This file is part of FFmpeg.
> .git/rebase-apply/patch:273: trailing whitespace.
>  *
> warning: squelched 692 whitespace errors
> warning: 697 lines add whitespace errors.
> Using index info to reconstruct a base tree...
> M	libavfilter/Makefile
> M	libavfilter/allfilters.c
> .git/rebase-apply/patch:269: trailing whitespace.
> /*
> .git/rebase-apply/patch:270: trailing whitespace.
>  * Copyright (c) 2021 softworkz
> .git/rebase-apply/patch:271: trailing whitespace.
>  *
> .git/rebase-apply/patch:272: trailing whitespace.
>  * This file is part of FFmpeg.
> .git/rebase-apply/patch:273: trailing whitespace.
>  *
> error: patch failed: doc/filters.texi:25644
> error: doc/filters.texi: patch does not apply
> error: patch failed: libavfilter/Makefile:553
> error: libavfilter/Makefile: patch does not apply
> error: patch failed: libavfilter/allfilters.c:544
> error: libavfilter/allfilters.c: patch does not apply
> error: Did you hand edit your patch?
> It does not apply to blobs recorded in its index.
> Patch failed at 0001 avfilter/textmod: Add textmod, censor and show_speaker
> filters
> Use 'git am --show-current-patch' to see the failed patch
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> 
> [...]
> --


Hi Michael,

I have no idea what is going on here.

When I look at those lines in the file that was generated
by git format-patch, there isn't any trailing white space.
Same is true when I look at this e-mail as I have received
it from the ML, and when downloading the M-Box from patchwork,
it hasn't any trailing whitespace either.

There are lines with a single space between hunks,
but all files generated by git format-patch have that.
I have double-checked all involved source files and none of them 
has any trailing white space anymore.

Yesterday, Andreas had pointed out the whitespace messages 
would only be warnings, but then I wouldn't know what's 
causing this, as it doesn't seem to be a line ending issue
either. Patchwork could apply it, interestingly.

I have attached the full patchset as zip. Hopefully this will
apply at least.

Thanks,
softworkz



Application: Microsoft.Office.Interop.Outlook.ApplicationClass
Class: 43
Session: System.__ComObject
Parent: System.__ComObject
Actions: System.__ComObject
Attachments: System.__ComObject
BillingInformation: 
Body: 

> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Michael
> Niedermayer
> Sent: Saturday, December 11, 2021 4:33 PM
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod,
> censor and show_speaker filters
> 
> On Fri, Dec 10, 2021 at 09:37:53PM +0000, Soft Works wrote:
> > - textmod {S -> S)
> >   Modify subtitle text in a number of ways
> >
> > - censor {S -> S)
> >   Censor subtitles using a word list
> >
> > - show_speaker {S -> S)
> >   Prepend speaker names from ASS subtitles to the visible text lines
> >
> > Signed-off-by: softworkz <softworkz at hotmail.com>
> > ---
> >  doc/filters.texi         | 206 ++++++++++++
> >  libavfilter/Makefile     |   5 +
> >  libavfilter/allfilters.c |   3 +
> >  libavfilter/sf_textmod.c | 697 +++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 911 insertions(+)
> >  create mode 100644 libavfilter/sf_textmod.c
> 
> doesnt apply (using git am with the email, the other patches
> with lower numbers all applied with no such issues)
> 
> Applying: avfilter/textmod: Add textmod, censor and show_speaker filters
> .git/rebase-apply/patch:269: trailing whitespace.
> /*
> .git/rebase-apply/patch:270: trailing whitespace.
>  * Copyright (c) 2021 softworkz
> .git/rebase-apply/patch:271: trailing whitespace.
>  *
> .git/rebase-apply/patch:272: trailing whitespace.
>  * This file is part of FFmpeg.
> .git/rebase-apply/patch:273: trailing whitespace.
>  *
> warning: squelched 692 whitespace errors
> warning: 697 lines add whitespace errors.
> Using index info to reconstruct a base tree...
> M	libavfilter/Makefile
> M	libavfilter/allfilters.c
> .git/rebase-apply/patch:269: trailing whitespace.
> /*
> .git/rebase-apply/patch:270: trailing whitespace.
>  * Copyright (c) 2021 softworkz
> .git/rebase-apply/patch:271: trailing whitespace.
>  *
> .git/rebase-apply/patch:272: trailing whitespace.
>  * This file is part of FFmpeg.
> .git/rebase-apply/patch:273: trailing whitespace.
>  *
> error: patch failed: doc/filters.texi:25644
> error: doc/filters.texi: patch does not apply
> error: patch failed: libavfilter/Makefile:553
> error: libavfilter/Makefile: patch does not apply
> error: patch failed: libavfilter/allfilters.c:544
> error: libavfilter/allfilters.c: patch does not apply
> error: Did you hand edit your patch?
> It does not apply to blobs recorded in its index.
> Patch failed at 0001 avfilter/textmod: Add textmod, censor and show_speaker
> filters
> Use 'git am --show-current-patch' to see the failed patch
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> 
> [...]
> --


Hi Michael,

I have no idea what is going on here.

When I look at those lines in the file that was generated
by git format-patch, there isn't any trailing white space.
Same is true when I look at this e-mail as I have received
it from the ML, and when downloading the M-Box from patchwork,
it hasn't any trailing whitespace either.

There are lines with a single space between hunks,
but all files generated by git format-patch have that.
I have double-checked all involved source files and none of them 
has any trailing white space anymore.

Yesterday, Andreas had pointed out the whitespace messages 
would only be warnings, but then I wouldn't know what's 
causing this, as it doesn't seem to be a line ending issue
either. Patchwork could apply it, interestingly.

I have attached the full patchset as zip. Hopefully this will
apply at least.

Thanks,
softworkz




Categories: 
Companies: 
ConversationIndex: 0101D7EE0E3097BC542CE25E8F449EA54DC82CBAE9E7AC2D6CB800800008FC40
ConversationTopic: [PATCH 1/1] Test ref file change
CreationTime: 11 Dec 2021 17:05:25
EntryID: 00000000BEFAAEED30DFDF43976487F12A562A600700DEB68488D92E8146A5C16995B1AE958D00000000010F0000DEB68488D92E8146A5C16995B1AE958D000570B7A2E30000
FormDescription: System.__ComObject
GetInspector: System.__ComObject
Importance: 1
LastModificationTime: 11 Dec 2021 17:05:25
MessageClass: IPM.Note
Mileage: 
NoAging: False
OutlookInternalVersion: 1614701
OutlookVersion: 16.0
Saved: False
Sensitivity: 0
Size: 12686
Subject: RE: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters
UnRead: True
UserProperties: System.__ComObject
AlternateRecipientAllowed: True
AutoForwarded: False
BCC: 
CC: 
DeferredDeliveryTime: 1 Jan 4501 00:00:00
DeleteAfterSubmit: False
ExpiryTime: 1 Jan 4501 00:00:00
FlagRequest: 
HTMLBody: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 16.0.14701.20038">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<BR>

<P><FONT SIZE=2>> -----Original Message-----<BR>
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Michael<BR>
> Niedermayer<BR>
> Sent: Saturday, December 11, 2021 4:33 PM<BR>
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org><BR>
> Subject: Re: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod,<BR>
> censor and show_speaker filters<BR>
><BR>
> On Fri, Dec 10, 2021 at 09:37:53PM +0000, Soft Works wrote:<BR>
> > - textmod {S -> S)<BR>
> >   Modify subtitle text in a number of ways<BR>
> ><BR>
> > - censor {S -> S)<BR>
> >   Censor subtitles using a word list<BR>
> ><BR>
> > - show_speaker {S -> S)<BR>
> >   Prepend speaker names from ASS subtitles to the visible text lines<BR>
> ><BR>
> > Signed-off-by: softworkz <softworkz at hotmail.com><BR>
> > ---<BR>
> >  doc/filters.texi         | 206 ++++++++++++<BR>
> >  libavfilter/Makefile     |   5 +<BR>
> >  libavfilter/allfilters.c |   3 +<BR>
> >  libavfilter/sf_textmod.c | 697 +++++++++++++++++++++++++++++++++++++++<BR>
> >  4 files changed, 911 insertions(+)<BR>
> >  create mode 100644 libavfilter/sf_textmod.c<BR>
><BR>
> doesnt apply (using git am with the email, the other patches<BR>
> with lower numbers all applied with no such issues)<BR>
><BR>
> Applying: avfilter/textmod: Add textmod, censor and show_speaker filters<BR>
> .git/rebase-apply/patch:269: trailing whitespace.<BR>
> /*<BR>
> .git/rebase-apply/patch:270: trailing whitespace.<BR>
>  * Copyright (c) 2021 softworkz<BR>
> .git/rebase-apply/patch:271: trailing whitespace.<BR>
>  *<BR>
> .git/rebase-apply/patch:272: trailing whitespace.<BR>
>  * This file is part of FFmpeg.<BR>
> .git/rebase-apply/patch:273: trailing whitespace.<BR>
>  *<BR>
> warning: squelched 692 whitespace errors<BR>
> warning: 697 lines add whitespace errors.<BR>
> Using index info to reconstruct a base tree...<BR>
> M     libavfilter/Makefile<BR>
> M     libavfilter/allfilters.c<BR>
> .git/rebase-apply/patch:269: trailing whitespace.<BR>
> /*<BR>
> .git/rebase-apply/patch:270: trailing whitespace.<BR>
>  * Copyright (c) 2021 softworkz<BR>
> .git/rebase-apply/patch:271: trailing whitespace.<BR>
>  *<BR>
> .git/rebase-apply/patch:272: trailing whitespace.<BR>
>  * This file is part of FFmpeg.<BR>
> .git/rebase-apply/patch:273: trailing whitespace.<BR>
>  *<BR>
> error: patch failed: doc/filters.texi:25644<BR>
> error: doc/filters.texi: patch does not apply<BR>
> error: patch failed: libavfilter/Makefile:553<BR>
> error: libavfilter/Makefile: patch does not apply<BR>
> error: patch failed: libavfilter/allfilters.c:544<BR>
> error: libavfilter/allfilters.c: patch does not apply<BR>
> error: Did you hand edit your patch?<BR>
> It does not apply to blobs recorded in its index.<BR>
> Patch failed at 0001 avfilter/textmod: Add textmod, censor and show_speaker<BR>
> filters<BR>
> Use 'git am --show-current-patch' to see the failed patch<BR>
> When you have resolved this problem, run "git am --continue".<BR>
> If you prefer to skip this patch, run "git am --skip" instead.<BR>
> To restore the original branch and stop patching, run "git am --abort".<BR>
><BR>
> [...]<BR>
> --<BR>
<BR>
<BR>
Hi Michael,<BR>
<BR>
I have no idea what is going on here.<BR>
<BR>
When I look at those lines in the file that was generated<BR>
by git format-patch, there isn't any trailing white space.<BR>
Same is true when I look at this e-mail as I have received<BR>
it from the ML, and when downloading the M-Box from patchwork,<BR>
it hasn't any trailing whitespace either.<BR>
<BR>
There are lines with a single space between hunks,<BR>
but all files generated by git format-patch have that.<BR>
I have double-checked all involved source files and none of them<BR>
has any trailing white space anymore.<BR>
<BR>
Yesterday, Andreas had pointed out the whitespace messages<BR>
would only be warnings, but then I wouldn't know what's<BR>
causing this, as it doesn't seem to be a line ending issue<BR>
either. Patchwork could apply it, interestingly.<BR>
<BR>
I have attached the full patchset as zip. Hopefully this will<BR>
apply at least.<BR>
<BR>
Thanks,<BR>
softworkz<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
OriginatorDeliveryReportRequested: False
ReadReceiptRequested: False
ReceivedByEntryID: 
ReceivedByName: 
ReceivedOnBehalfOfEntryID: 
ReceivedOnBehalfOfName: 
ReceivedTime: 11 Dec 2021 17:24:00
RecipientReassignmentProhibited: False
Recipients: System.__ComObject
ReminderOverrideDefault: False
ReminderPlaySound: False
ReminderSet: False
ReminderSoundFile: 
ReminderTime: 1 Jan 4501 00:00:00
RemoteStatus: 0
ReplyRecipientNames: 
ReplyRecipients: System.__ComObject
SaveSentMessageFolder: System.__ComObject
SenderName: 
Sent: False
SentOn: 1 Jan 4501 00:00:00
SentOnBehalfOfName: softworkz at hotmail.com
Submitted: False
To: FFmpeg development discussions and patches
VotingOptions: 
VotingResponse: 
ItemProperties: System.__ComObject
BodyFormat: 1
DownloadState: 1
InternetCodepage: 65001
MarkForDownload: 0
IsConflict: False
AutoResolvedWinner: False
Conflicts: System.__ComObject
SenderEmailAddress: softworkz at hotmail.com
SenderEmailType: EX
Permission: 0
PermissionService: 0
PropertyAccessor: System.__ComObject
SendUsingAccount: System.__ComObject
TaskSubject: RE: [FFmpeg-devel] [PATCH v23 16/21] avfilter/textmod: Add textmod, censor and show_speaker filters
TaskDueDate: 1 Jan 4501 00:00:00
TaskStartDate: 1 Jan 4501 00:00:00
TaskCompletedDate: 1 Jan 4501 00:00:00
ToDoTaskOrdinal: 1 Jan 4501 00:00:00
IsMarkedAsTask: False
ConversationID: 
Sender: System.__ComObject
RTFBody: System.Byte[]
RetentionExpirationDate: 1 Jan 4501 00:00:00
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patches.zip
Type: application/x-zip-compressed
Size: 136969 bytes
Desc: patches.zip
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211211/2c9684dd/attachment.bin>


More information about the ffmpeg-devel mailing list