HomeOfAviSynthPlusEvolution / L-SMASH-Works

Forked from VFR-maniac/L-SMASH-Works; hydra3333/L-SMASH-Works; l33tmeatwad/L-SMASH-Works; HolyWu/L-SMASH-Works; AkarinVS/L-SMASH-Works.
89 stars 15 forks source link

Add IMF Support inside LWLibavVideoSource() and LWLibavAudioSource() #16

Closed FranceBB closed 2 years ago

FranceBB commented 2 years ago

Hi there, essentially, FFMpeg supports IMF which is basically an xml file with the CPL describing which audio and which video should be taken and from where. In other words, if in FFMpeg someone does like ffmpeg -f imf -i "CPL.xml" etc it will decode video and audio correctly.

My proposal is to use the FFMpeg IMF decoder whenever an ".xml" file is passed to the indexer, hence adding the ability to index IMF packages inside Avisynth and VapourSynth. If the .xml file is just an xml, it will fail and you can parse the ffmpeg error or return whatever error you like.

I can provide a sample if needed.

Asd-g commented 2 years ago

Would you provide a sample?

FranceBB commented 2 years ago

Sure, there you go: IMF Sample

For more info, check this discussion on Doom9 https://forum.doom9.org/showthread.php?t=173372

kedaitinh12 commented 2 years ago

43,12 gb??? Can you upload small sample with hundreds mb??

FranceBB commented 2 years ago

Sure, but it's gonna take much longer 'cause I'm gonna have to create an IMF from scratch using Colorfront Transcoder here at work and we're all in Easter Break till Tuesday at the earliest. The thing with IMF is that if you trim the video you also gotta change the CPL.xml

P.s I've been generous here, real master files are like 800+ GB eheheheh

Asd-g commented 2 years ago

Try the attached version.

LSMASHSource.zip

Edit: try the latest version.

FranceBB commented 2 years ago

Sorry, I've been a bit overwhelmed. Testing first thing tomorrow, I promise.

kedaitinh12 commented 2 years ago

I think it's work check here @Asd-g https://forum.doom9.org/showthread.php?p=1968687#post1968687

FranceBB commented 2 years ago

Works like a charm, thanks @Asd-g ! :dagger:

image image image image image image

Asd-g commented 2 years ago

I have to mention that ASSETMAP.xml must be in the same place as the input CPL.

FranceBB commented 2 years ago

No problem. IMF packages always come as one big folder with all the files in it. ;)