2011-10-05, 05:34 PM
Does anyone have a batch file for extracting the ADS metadata.xml from a .ts recording and saving it in a suitably named .xml file?
2011-10-05, 05:34 PM
Does anyone have a batch file for extracting the ADS metadata.xml from a .ts recording and saving it in a suitably named .xml file?
2011-10-05, 11:31 PM
It should be possible by copying the metadata part from the original .ts file, but when the recording filename contains spaces it does not work. I'v got around this by setting <StoreSeparateMetadataXml>true</StoreSeparateMetadataXml> in config.xml.
"I'd rather have a bottle in front of me than a frontal lobotomy"
2011-10-05, 11:50 PM
Here is how you might extract metadata.xml to another file name;
Code: rem without paths Martin
2011-10-05, 11:54 PM
Reddwarf Wrote:It should be possible by copying the metadata part from the original .ts file, but when the recording filename contains spaces it does not work. I'v got around this by setting <StoreSeparateMetadataXml>true</StoreSeparateMetadataXml> in config.xml.Thanks for that - so instead of playing about with batch files, I can just get the skutters to do it...
2011-10-08, 04:59 PM
mvallevand Wrote:Here is how you might extract metadata.xml to another file name;Thanks for that Martin... I'm using Reddwarf's suggestion to create the xml file, but my video editor loses the ADS, so to put it back in I'm using Code: more < "%~n1.metadata.xml" > "%~1:metadata.xml" Alex
2011-10-08, 08:58 PM
ACTCMS Wrote:Thanks for that Martin... I'm using Reddwarf's suggestion to create the xml file, but my video editor loses the ADS, so to put it back in I'm usingInteresting, does it work? "I'd rather have a bottle in front of me than a frontal lobotomy"
2011-10-13, 10:19 PM
Reddwarf Wrote:Interesting, does it work?Yes and No... I foolishly Googled "Alternate Data Streams" and ended up disappearing down a rabbit hole from which I've only just emerged...:eek: I eventually found Frank Heyne's excellent LADS utility which helped clear up a few things. I ended up with two fairly basic batch files which for ease of use I added to the Windows Explorer context menu for .ts files... MetadataExtract.bat containing Code: echo "Extract metadata" Code: echo "Insert metadata" One problem which confused my early testing was - in Videos, if a .ts file has a corresponding .xml file as created by the config.xml option Code: <StoreSeparateMetadataXml>true</StoreSeparateMetadataXml> Alex
2011-10-14, 05:40 PM
i'd like to say that %~d1%~p1%~n1 ist the same as %~dpn1
2011-10-14, 08:23 PM
ACTCMS Wrote:I don't know much about batch files and I'm sure they could be improved on, speising Wrote:i'd like to say that %~d1%~p1%~n1 ist the same as %~dpn1That's much more elegant - thanks... Alex |
|