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. |
3rd May 2011, 10:40 | #2361 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
There, i implemented ITrackInfo, well, some of the functions anyway. Most of the GetTrackCodec* functions are silly, and will only return NULL in LAV Splitter.
GetTrackCount, GetTrackInfo, GetTrackExtendedInfo, GetTrackName and GetTrackCodecName will work now - well as soon as i check the changes in when i get home.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 3rd May 2011 at 10:43. |
3rd May 2011, 10:51 | #2363 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
If someone can't deal with a NULL return, its their damn fault. Its perfectly valid to indicate that there is just no value for this field.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
3rd May 2011, 10:57 | #2364 | Link | |
Registered User
Join Date: Oct 2009
Location: France
Posts: 616
|
Quote:
__________________
HTPC : i7 920 6Go Win10(x64) / Nvidia 1050Ti / P6T Deluxe / Harman-Kardon AVR-355. |
|
3rd May 2011, 11:03 | #2366 | Link |
Registered User
Join Date: Dec 2007
Posts: 1,138
|
IIRC LAV could detect PGS subtitles language no? But now (Nevcairiel-LAVFSplitter-054fb45) it can't, it only shows PGS!
__________________
Intel UHD Graphics 750; Win 10 22H2 Last edited by Mercury_22; 3rd May 2011 at 11:05. |
3rd May 2011, 11:04 | #2367 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
The stream language is independent of the codec used. Anyhow, for m2ts files on Blu-rays, you need to actually open the Blu-ray (index.bdmv or a .mpls file) for languages to be detected. The language is not contained in the m2ts, its in the special Blu-ray files.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
3rd May 2011, 11:16 | #2368 | Link | |
Registered User
Join Date: Jun 2009
Location: London
Posts: 378
|
Quote:
Could anyone upload a x64 build as well, so I can test if its maybe x86 that's bit broken on my side? Thanks
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1) |
|
3rd May 2011, 11:33 | #2369 | Link | |
Registered User
Join Date: Dec 2007
Posts: 1,138
|
Quote:
__________________
Intel UHD Graphics 750; Win 10 22H2 Last edited by Mercury_22; 3rd May 2011 at 11:39. |
|
3rd May 2011, 12:14 | #2371 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
m2ts on Blu-rays typically don't contain the language code at all, at least on the discs i tested with. If it did, it would show there.
Anyhow, the MPC-HC splitter reads that info from the playlist/clip info files, so does LAV Splitter - but only if you open the playlist. I don't see the use for adding hacks to make it load the clip infos if you directly open the .m2ts, you're supposed to run the playlist, only then it can ensure 100% proper playback.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 3rd May 2011 at 12:27. |
3rd May 2011, 12:30 | #2372 | Link | |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
|
|
3rd May 2011, 12:34 | #2373 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
The main problem is that the default operation mode for LAV Splitter is now to not open files directly, but let the default "File Source (Async)" open the file. The exception from this rule is Blu-ray playback, because there it is required to open multiple files.
Due to not handling File IO myself, i don't even know the file name, or where it is, so i cannot try to assume its a Blu-ray file and try to find a clipinfo in a BDMV structure. I know where the language info is, all i'm saying is that its not worth the effort to find it if you're opening the m2ts directly, rather then going through the Blu-ray handling. Especially because behavior would be inconsistent, depending if you're going through The LAV source filter, or the File Source and only using LAV for splitting. If anyone so desperately needs this to function, it shouldn't be that much work, and can probably be done in a day or so - you're welcome to supply patches.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders Last edited by nevcairiel; 3rd May 2011 at 12:39. |
3rd May 2011, 12:56 | #2374 | Link |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
It would be pretty easy to call the upstream filter's "IFileSourceFilter::GetCurFile()" method (madVR does that, too, no problems at all) and from there to find the clipinfo file. Personally, I don't really care if this feature gets implemented or not. Just saying that it'd be pretty easy to do.
Last edited by madshi; 3rd May 2011 at 13:00. |
3rd May 2011, 12:59 | #2375 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
Yeah its easy, just figure out the path, check if there is something like BDMV/STREAM in the path, and if so get the proper clipinfo file and feed it through libblurays clpi parser.
Since there is only me thats know the code, i increased my time estimation to a day - which then includes some learning phase. I can surely put it on my list of things to do, but it will not be anywhere high up.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
3rd May 2011, 13:02 | #2376 | Link |
*****
Join Date: Feb 2005
Posts: 5,647
|
Couldn't you just query the filename info from the (third party) source filter? I know that ffdshow does that as well for some functionality like settings profiles.
Good to know that a tray icon is now a possible future addition. It is essential for players that do not have their own stream selection functionality. For example WMP only allows selecting audio, not video/subs. And even with MPC-HC its useful for those who are used to configuring stuff though the tray icons of the various active filters.
__________________
MPC-HC 2.2.1 |
3rd May 2011, 13:05 | #2377 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
Since i'm currently sitting at work being bored a bit, i will actually give it a shot right now.. i have some test blu-ray structure around here somewhere..
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
3rd May 2011, 14:21 | #2380 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
I suppose considering the short break i took in between, it really did only take one hour. Oh well, new feature!
Also nearly time to go home now, off doign some real work for a change.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
Tags |
decoders, directshow, filters, splitter |
|
|