NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 195 196 197 198 199 … 433 Next »
ReInsert metadata into ts recording

ReInsert metadata into ts recording
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#1
2015-01-12, 05:40 AM
I use

more < "%~1:metadata.xml" > "%~n1.xml"

to extract the metadata from recordings prior to cutting out the adds, but it won't use the extracted xml to re-import into Recordings therefore I would like to find out how to reinsert the previously extracted metadata into the edited ts file so I can easily re-import into Recordings through settings by using the ts option
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2015-01-12, 06:20 AM
Try setting <StoreSeparateMetadataXml> to true in config.xml then you shouldn't need to extract/reinsert
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2015-01-12, 08:44 AM
did you try simply reversing the original command to re-insert? I think it should work.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#4
2015-01-12, 10:21 AM
I do have storeSeperateMetadata set as true, but NextPVR won't use it (or the extracted metadata which is slightly different) to import into Recordings... for the life of me I can't see why it shouldn't use the stuff it creates itself for this but it doesn't..

No I haven't tried reversing the command, but your quite right that does seem the logical thing to try..... doh!!
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#5
2015-01-12, 07:09 PM
Just to tidy this up if anyone else finds this thread when searching for this feature in the future

I now have a MetadataExtract.bat file that is
Code:
more < "%~1:metadata.xml" > "%~n1.xml"
and a MetadataInsert.bat file that is
Code:
more < "%~n1.xml" > "%~1:metadata.xml"

all I do is drop the .ts onto whichever I need at the time & it works great...
InVermont
Offline

Member

Posts: 157
Threads: 10
Joined: Mar 2007
#6
2015-01-12, 08:33 PM
Jaggy Wrote:(or the extracted metadata which is slightly different)

If memory serves, they are different. The embedded XML (:metadata.xml) is formatted like this:

<?xml version="1.0" encoding="UTF-8"?>
<recording>
<filename></filename>
<channel></channel>
<status></status>
<startTime></startTime>
<endTime></endTime>
<title></title>
<subtitle></subtitle>
<description></description>
<uid></uid>
<genres>
<genre></genre>
</genres>
</recording>

and the XML file with the same name is formatted like this

<Title>
<FullTitle></FullTitle>
<LocalTitle></LocalTitle>
<ProductionYear></ProductionYear>
<RunningTime></RunningTime>
<Description></Description>
<DataProvider></DataProvider>
<DataProviderId/>
<Rating></Rating>
<Covers>
<Front></Front>
</Covers>
<Genres></Genres>
</Title>
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#7
2015-01-12, 11:06 PM
Not for recordings. Here is one of mine with StoreSeparateMetadataXml set to true:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
  <filename>S:\2 Broke Girls\2 Broke Girls_20140505_20002030.ts</filename>
  <channel>WLKYDT</channel>
  <status>READY</status>
  <startTime>2014-05-05 19:59:00</startTime>
  <endTime>2014-05-05 20:32:00</endTime>
  <channel_OID>7395</channel_OID>
  <title>2 Broke Girls</title>
  <subtitle>And the First Degree</subtitle>
  <description>When Caroline learns that Max didn&apos;t graduate high school after missing only one exam, she determines to help Max earn her diploma and reconnect with her mother.</description>
  <uid>EP014198720072</uid>
  <firstrun>true</firstrun>
  <original_air_date>2014-05-05T00:00:00.0000000</original_air_date>
  <rating>TV-14</rating>
  <audio>stereo</audio>
  <quality>HDTV</quality>
  <genres>
    <genre>Sitcom</genre>
  </genres>
</recording>

and with it set to false (embedded metadata in another recording):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<recording>
  <filename>R:\2 Broke Girls\2 Broke Girls_20130218_21002131.ts</filename>
  <channel>WLKYDT</channel>
  <status>READY</status>
  <startTime>2013-02-18 20:59:00</startTime>
  <endTime>2013-02-18 21:33:00</endTime>
  <channel_OID>912</channel_OID>
  <title>2 Broke Girls *</title>
  <subtitle>And the Broken Hip</subtitle>
  <description>Caroline and Max pay a steep price for trying to remove a street performer from the entry of their shop.</description>
  <uid></uid>
  <firstrun>true</firstrun>
  <original_air_date>2013-02-18T00:00:00.0000000</original_air_date>
  <rating>TV-14</rating>
  <audio>stereo</audio>
  <aspect>16:9</aspect>
  <quality>HDTV</quality>
  <genres>
    <genre>Comedy</genre>
  </genres>
</recording>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#8
2015-01-12, 11:17 PM
I can't see NextPVR using markup like

<DataProvider></DataProvider>

In any case Jaggy's scripte create the xml file from the embedded xml data stream, so it will be the embedded xml.

Martin
InVermont
Offline

Member

Posts: 157
Threads: 10
Joined: Mar 2007
#9
2015-01-13, 02:26 PM
whurlston Wrote:Not for recordings

Yes, I was remembering Video metadata, not recordings (http://www.nextpvr.com/nwiki/pmwiki.php?...eoMetadata)
Jaggy
Offline

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#10
2015-01-14, 01:13 AM
Oh poos...... after all that to get the embedded MetaData part back in the recordings, the Recordings Import .ts part is buggy & displays the wrong record times (UTC I guess) & the wrong channel logo in the details screen..... bugger poos Sad

Manually entering data into a recording-dump type file seems the only way to do it & get everything working, but that is open to all sorts of user error with all the bits that need to be entered....
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording movies / TV to XBMC directory stucture spinnaker 10 3,779 2024-06-03, 03:56 AM
Last Post: Rod Hutchinson
  Not recording errors vidwiz 4 1,129 2024-04-17, 05:39 PM
Last Post: mvallevand
  Add Series/Episode Info to Recording Metadata andrewj 2 1,181 2023-11-20, 03:42 PM
Last Post: sub
  Recording to a network drive woes. 2leftfeet 12 7,516 2022-04-05, 08:03 PM
Last Post: mvallevand
  device needed for recording David209 2 1,814 2021-04-04, 08:47 AM
Last Post: David209
  PC not going to sleep after recording LeoL 7 3,498 2021-04-01, 07:17 PM
Last Post: Handy.Man
  HDHomerun recording bizzarely not working Jean0987654321 3 2,155 2021-03-27, 03:23 PM
Last Post: Jean0987654321
Video Restrict Recording Space foucomm 1 1,394 2021-01-30, 09:25 PM
Last Post: mvallevand
  Directory dropdown on the recording edit dialog MicahMakenzie 1 1,572 2021-01-11, 04:37 PM
Last Post: Graham
  Recording service stopped or not running at scheduled time MattInetroit 3 1,981 2021-01-08, 12:03 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode