Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Marth64 <marth64@proxyid.net>
To: Marth64 <marth64@proxyid.net>
Cc: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v2] dvdvideo: add DVD-Video demuxer, powered by libdvdnav and libdvdread
Date: Wed, 10 Jan 2024 10:48:09 -0600
Message-ID: <CA+28BfAXee=4AV2OdSpUx0gywqFiXHGv9E2LdoxSveXx5m+uww@mail.gmail.com> (raw)
In-Reply-To: <CA+28BfDmUYkkzNc7jiGB8sb=DYBtOKF0Jim-v3=oEmUOrOkSzg@mail.gmail.com>

To elaborate slightly: GENPTS is working within each segment, whose start
and end times I have from NAV packets

On Wed, Jan 10, 2024 at 10:25 Marth64 <marth64@proxyid.net> wrote:

> Thank you, Nicolas. I had tinkered with concat this way in the past as
> PGCs are indeed just a bunch of segments mushed together, but I had run
> into issues specifically with (1) concerns about forced subtitles that pop
> up mid stream and (2) unable to figure out custom IO with it. Since dvdnav
> is driving the navigation and reading of the disc, I do not have the luxury
> of knowing VOB addresses for a perfect read of the title (without fully
> playing back). So I don’t have a list of files and sectors to give concat.
> As DVD also has cell commands that drive direction of the stream, this
> complicates it further. The structure revealed by dvdread alone is not
> enough to properly play back; the dvdnav VM plays a key role. Finally, I
> had also worry about oddities when having demuxer->submuxer->subsubdemuxer.
>
> In my approach (using mpeg demux directly) there doesn’t seem to be any
> issue with concatenation/handling the gaps, and I am flushing the
> subdemuxer when they occur. Just the GENPTS sticks out as being a non-ideal
> thing to do.
>
> That said, I will take another look and see if I misunderstood at the time.
>
> Best,
>
> On Wed, Jan 10, 2024 at 04:17 Nicolas George <george@nsup.org> wrote:
>
>> Marth64 (12024-01-10):
>> > I will add that I still had to maintain a dependency on GENPTS for the
>> > inner MPEG demuxer. This is because dvdnav_get_current_time() does not
>> > provide exact stream-level PTS. However, the crashing/hanging is fixed
>> (by
>> > parsing NAV packets), and the output is produced smoothly. GENPTS fills
>> in
>> > the blanks.
>> >
>> > If anyone can think of a better way, please let me know. Right now, it
>> > works well.
>>
>> You could imitate what tools/dvd2concat does internally: use
>> libdvdread to get the structure of the DVD but let the concat demuxer
>> handle all the actual demuxing work.
>>
>> Regards,
>>
>> --
>>   Nicolas George
>>
>
_______________________________________________
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".

  reply	other threads:[~2024-01-10 16:48 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-09 10:06 [FFmpeg-devel] [PATCH] [WIP] [RFC] dvdvideo: initial contribution (DVD demuxer) Marth64
2023-12-10  2:27 ` Marth64
2023-12-10  3:03 ` Leo Izen
2023-12-10  3:16   ` Marth64
2023-12-10  3:47   ` Marth64
2023-12-13 20:45 ` Nicolas George
2024-01-06 22:32   ` Marth64
2024-01-10  8:46 ` [FFmpeg-devel] [PATCH v2] dvdvideo: add DVD-Video demuxer, powered by libdvdnav and libdvdread Marth64
2024-01-10  8:53   ` Marth64
2024-01-10 10:16     ` Nicolas George
2024-01-10 16:25       ` Marth64
2024-01-10 16:48         ` Marth64 [this message]
2024-01-11  3:46   ` [FFmpeg-devel] [PATCH v3] " Marth64
2024-01-11  3:48     ` Marth64
2024-01-24  0:17     ` Stefano Sabatini
2024-01-24  0:58       ` Marth64
2024-01-28 22:59   ` [FFmpeg-devel] [PATCH v5] libavformat: " Marth64
2024-01-31 23:57     ` Stefano Sabatini
2024-02-05  0:02     ` [FFmpeg-devel] [PATCH v6] libavformat/dvdvideo: add DVD-Video demuxer " Marth64
2024-02-05  0:09       ` Marth64
2024-02-05  5:48       ` [FFmpeg-devel] [PATCH v7 1/2] " Marth64
2024-02-05  5:48         ` [FFmpeg-devel] [PATCH v7 2/2] libavformat/dvdvideo: add DVD CLUT utilities and enable palette support Marth64
2024-02-07 18:09           ` Andreas Rheinhardt
2024-02-07 18:32             ` Marth64
2024-02-07  0:52         ` [FFmpeg-devel] [PATCH v7 1/2] libavformat/dvdvideo: add DVD-Video demuxer powered by libdvdnav and libdvdread Stefano Sabatini
2024-02-07  0:54           ` Marth64
2024-02-07 18:58         ` Andreas Rheinhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+28BfAXee=4AV2OdSpUx0gywqFiXHGv9E2LdoxSveXx5m+uww@mail.gmail.com' \
    --to=marth64@proxyid.net \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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