Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg: rework setting sub2video parameters
       [not found] <20230531142612.443E941082C@natalya.videolan.org>
@ 2023-06-07 19:17 ` Michael Niedermayer
  2023-06-14 16:51   ` Anton Khirnov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Niedermayer @ 2023-06-07 19:17 UTC (permalink / raw)
  To: ffmpeg-devel


[-- Attachment #1.1: Type: text/plain, Size: 1727 bytes --]

On Wed, May 31, 2023 at 02:26:11PM +0000, Anton Khirnov wrote:
> ffmpeg | branch: master | Anton Khirnov <anton@khirnov.net> | Tue May 23 22:54:23 2023 +0200| [20cacfe4936a8d5b643421b5ca93bb098f6b76dd] | committer: Anton Khirnov
> 
> fftools/ffmpeg: rework setting sub2video parameters
> 
> Set them in ifilter_parameters_from_dec(), similarly to audio/video
> streams. This reduces the extent to which sub2video filters need to be
> treated specially.
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20cacfe4936a8d5b643421b5ca93bb098f6b76dd
> ---
> 
>  fftools/ffmpeg.c        |  6 ++---
>  fftools/ffmpeg_demux.c  | 21 ++++++++++++++++++
>  fftools/ffmpeg_filter.c | 58 +++++++++++++++----------------------------------
>  3 files changed, 41 insertions(+), 44 deletions(-)

This breaks subtitle location and size

./ffmpeg -i ~/tickets/4752/dump_dvbsubtitles.mp4 -y  -ss 5 -t 1 -filter_complex '[0:v][0:s]overlay' /tmp/file4752.ts && ffplay /tmp/file4752.ts

https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4752/dump_dvbsubtitles.mp4


Before this commit the subtitles are centered at the bottom of the screen
after this patch the subtitles are tiny in the left middle of the screen

In the following case the subtitles disappear completely:

./ffmpeg -i ~/tickets/679/subtitles.ts -filter_complex '[0:v][0:s:0]overlay[vid]' -map  '[vid]' -bitexact  -t 3 file-4744-3.avi

https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4744/subtitles.ts

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg: rework setting sub2video parameters
  2023-06-07 19:17 ` [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg: rework setting sub2video parameters Michael Niedermayer
@ 2023-06-14 16:51   ` Anton Khirnov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Khirnov @ 2023-06-14 16:51 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

Quoting Michael Niedermayer (2023-06-07 21:17:06)
> On Wed, May 31, 2023 at 02:26:11PM +0000, Anton Khirnov wrote:
> > ffmpeg | branch: master | Anton Khirnov <anton@khirnov.net> | Tue May 23 22:54:23 2023 +0200| [20cacfe4936a8d5b643421b5ca93bb098f6b76dd] | committer: Anton Khirnov
> > 
> > fftools/ffmpeg: rework setting sub2video parameters
> > 
> > Set them in ifilter_parameters_from_dec(), similarly to audio/video
> > streams. This reduces the extent to which sub2video filters need to be
> > treated specially.
> > 
> > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20cacfe4936a8d5b643421b5ca93bb098f6b76dd
> > ---
> > 
> >  fftools/ffmpeg.c        |  6 ++---
> >  fftools/ffmpeg_demux.c  | 21 ++++++++++++++++++
> >  fftools/ffmpeg_filter.c | 58 +++++++++++++++----------------------------------
> >  3 files changed, 41 insertions(+), 44 deletions(-)
> 
> This breaks subtitle location and size
> 
> ./ffmpeg -i ~/tickets/4752/dump_dvbsubtitles.mp4 -y  -ss 5 -t 1 -filter_complex '[0:v][0:s]overlay' /tmp/file4752.ts && ffplay /tmp/file4752.ts
> 
> https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4752/dump_dvbsubtitles.mp4
> 
> 
> Before this commit the subtitles are centered at the bottom of the screen
> after this patch the subtitles are tiny in the left middle of the screen
> 
> In the following case the subtitles disappear completely:
> 
> ./ffmpeg -i ~/tickets/679/subtitles.ts -filter_complex '[0:v][0:s:0]overlay[vid]' -map  '[vid]' -bitexact  -t 3 file-4744-3.avi
> 
> https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4744/subtitles.ts

Should be fixed in the patchset I just sent.

Cheers,
-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-14 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230531142612.443E941082C@natalya.videolan.org>
2023-06-07 19:17 ` [FFmpeg-devel] [FFmpeg-cvslog] fftools/ffmpeg: rework setting sub2video parameters Michael Niedermayer
2023-06-14 16:51   ` Anton Khirnov

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git