Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#25321 | Link | |
Moderator
![]() Join Date: Feb 2005
Location: Spain
Posts: 7,271
|
Quote:
Try then GraphEdit to verify if LAV filter decoder is also affected: |
|
![]() |
![]() |
![]() |
#25322 | Link | |
Registered User
Join Date: Dec 2008
Posts: 2,240
|
Quote:
This is where another problem arises. Naive users believe the stupid AI and start writing its answers on the Internet as a good solution. This creates even more garbage on the Internet. I hope that in the future, publishing AI "answers" on many forums will be considered flooding.
__________________
MPC-BE 1.8.5 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource |
|
![]() |
![]() |
![]() |
#25323 | Link |
Registered User
Join Date: Apr 2006
Posts: 167
|
Sure, with 32-bit from MPC-HC. https://i.imgur.com/JTSgI5T.png
A second sample, pourque.ec3, problem at 41728 right at the start. Only on the first playback. Maybe ffmpeg has processor-specific code, so it only happens sometimes? https://pixeldrain.com/u/AFU54eoF |
![]() |
![]() |
![]() |
#25325 | Link | |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,385
|
Quote:
As a general rule for anyone ever reading this, any AI interaction will instantly get your post dismissed and probably ridiculed. Developers should know better.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 7th May 2025 at 09:37. |
|
![]() |
![]() |
![]() |
#25326 | Link | |
*****
Join Date: Feb 2005
Posts: 5,722
|
Quote:
I suggest putting the sample files on FFmpeg bug tracker.
__________________
MPC-HC 2.4.3.6 |
|
![]() |
![]() |
![]() |
#25328 | Link | |
Software Developer
Join Date: Oct 2001
Location: Israel
Posts: 1,019
|
Quote:
The issue itself still stands. When performing a seek action on a remote Emby server or switching subtitle tracks, with libVLC the action is near-instant while in DirectShow using LAV Source, it can take 1-30 seconds. Is there any way I can help you debug this issue, taking into consideration that I limited understanding of the code itself? Is there a build that outputs a debug log that may help trace the issue? Last edited by Blight; 10th May 2025 at 12:38. |
|
![]() |
![]() |
![]() |
#25329 | Link |
*****
Join Date: Feb 2005
Posts: 5,722
|
A track change triggers a flush in the splitter. That is needed to acquire data packets for the new subtitle track, which can be located before current parsing position.
But perhaps an optimization could be done. If the splitter stores the end timestamp of the last processed sub packet, then it could decide if it is possible to skip the flush of audio and video queues, if last packet end time is in the past.
__________________
MPC-HC 2.4.3.6 |
![]() |
![]() |
![]() |
#25330 | Link |
Registered User
Join Date: Mar 2017
Posts: 86
|
Support request #43
@Nevcairiel
I'm noticed that LIVE-streams(HLS or MPEG-TS) that have subtitle track in it, lead a Graph Studio to crash right after trying to render a Video pin. Example(This site works only in Russia. Please use VPN): https://rt-ural-sur-htlive.cdn.ngeni...7/variant.m3u8 Stream contain this subtitle track: MEDIATYPE_Subtitle {E487EB08-6B26-4BE9-9DD3-993434D313FD} MEDIASUBTYPE_UTF8 {87C0B230-03A8-4FDF-8010-B27A5848200D} FORMAT_SubtitleInfo {A33D2F7D-96BC-4337-B23B-A8B9FBC295E9} p.s. I have no no crash only if I render a Subtitle pin first and only then render a Video pin. Any feedback would be appreciated. Last edited by max79; 11th May 2025 at 21:42. |
![]() |
![]() |
![]() |
#25332 | Link | |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,385
|
Quote:
https://github.com/Nevcairiel/LAVFil...ettings.h#L405
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
|
![]() |
![]() |
![]() |
#25334 | Link | |
Software Developer
Join Date: Oct 2001
Location: Israel
Posts: 1,019
|
Quote:
I noticed the output pin on LAV Video decoder exposes "MEDIATYPE_DTVCCData" instead of the expected "MEDIATYPE_AUXLine21Data" which may be the cause. Is there something I'm not taking into consideration? |
|
![]() |
![]() |
![]() |
#25335 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,385
|
Its designed to be CEA 708 DTV CC data, not the older Line 21 data.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
![]() |
![]() |
![]() |
#25336 | Link | |
Software Developer
Join Date: Oct 2001
Location: Israel
Posts: 1,019
|
Quote:
I even tried passing it through the SAMI (CC) Parser filter with no success (error 0x80004002) https://learn.microsoft.com/en-us/wi...-parser-filter Can it be used with any existing DirectShow components? I searched but it's not very clear. Last edited by Blight; 19th May 2025 at 17:35. |
|
![]() |
![]() |
![]() |
#25337 | Link |
Registered User
Join Date: Nov 2015
Posts: 644
|
You could try MPC-BE's decoder with EVR-CP to verify whether or not it works with the media you're working with and go from there. "Line 21 Decoder - enabled for Microsoft DTV-DVD Video Decoder and EVR-CP". Not sure if you also need to check on the line 21 checkbox in the DVD settings (present in both HC and BE) for streams, or if the checkbox is only for DVD.
|
![]() |
![]() |
![]() |
#25338 | Link | |
Software Developer
Join Date: Oct 2001
Location: Israel
Posts: 1,019
|
Quote:
I tried to see if MPC-BE works any better, it doesn't detect the closed captions at all. For reference, I'm not playing a DVD, this is a live stream. |
|
![]() |
![]() |
![]() |
#25339 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,385
|
The data is not being translated, its exposed as-is from the video bitstream if present (typically from SEI NALs). Basically the data FFmpeg exposes as AV_FRAME_DATA_A53_CC (eg. "ATSC A53 Part 4 Closed Captions.", also known as CTA-708 (formerly EIA-708 and CEA-708))
The data format consists of a number of cc_data_pkt (definition of which can be seen in the CTA-708 specification), the number can be obtained from buffer size / 3 (as each cc_data_pkt is 3 bytes, one control byte and two CC data bytes). I have no idea if any existing filter exists that can handle it - make your own if needed. I know for a fact that the LAV data is being used for subtitles successfully with custom filters. Microsoft abandoned DirectShow a long time ago. The Microsoft provided filters are stuck in a state from 15 years ago or so. This format is the digital successor to Line21 data, which is also mandatory in US broadcasts, so should always be available.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 20th May 2025 at 09:23. |
![]() |
![]() |
![]() |
#25340 | Link | |
Software Developer
Join Date: Oct 2001
Location: Israel
Posts: 1,019
|
Quote:
Unfortunately, my expertise lies in user interfaces and less so in filter development, which is why I hoped for something off the shelf I could integrate rather than telling people to switch to the libVLC engine. Would it be possible to translate this format to a subtitle format on the output pin? Last edited by Blight; 20th May 2025 at 13:42. |
|
![]() |
![]() |
![]() |
Tags |
decoders, directshow, filters, splitter |
Thread Tools | Search this Thread |
Display Modes | |
|
|