Rename existing T4/2 recordings

Discuss Beyonwiz related topics here if they don't fit in another forum.

Moderators: Gully, peteru

Post Reply
craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Rename existing T4/2 recordings

Post by craigh » Sun Jul 15, 2018 15:29

Hi
Is there an easy way to rename a large # of recordings for the eg short file name format to “event name first”.
At the file level it would need to renam all the associated files for each recording ?

Regards
Craig
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 15:32

No, and yes to the two questions.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Rename existing T4/2 recordings

Post by MrQuade » Sun Jul 15, 2018 15:33

You could write a snazzy script to do that from a command line level. My ability with regular expressions is limited to non-existant, so I can't provide assistance there though.

It gets trickier in that it is likely that an autimated rename script would need to determine how to differentiate between different episodes of a show. Something trickier might be able to pull something out of the metadata files to do that, but alas, show descriptions rarely contain season and episode number info, rather a episode title.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 15:36

I suspect that that may not count as "easy" for the OP.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 16:36

Also, what you need to do depends on why you want to rename the recordings.

The recording name is stored two ways, one, as part of the recording file names, and the other as the second line in the recording's .ts.meta file.

The name in the .meta file is the one used in the media selection screen (MEDIA from live TV). The recording file names are visible elsewhere, like in the File Commander (MENU>Sources / Files from live TV), and, of course, if you view the recordings on, say, Windows Explorer via a Windows share.

As for fancy regular expressions to rename the files, it's a bit hard to get one that will work in all circumstances. Here's a one-liner that will generate commands to change "standard" recording file names into "Event name first" format provided the event name contains no periods ("."), single quotes "'") or hyphens ("-").

ls *Mix* | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/"

Code: Select all

root@beyonwizu4:/media/hdd/movie# ls *Mix* | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/"
mv '20180527 1636 - ABC - The Mix.eit' 'The Mix - 20180527 1636_ABC.eit'
mv '20180527 1636 - ABC - The Mix.ts' 'The Mix - 20180527 1636_ABC.ts'
mv '20180527 1636 - ABC - The Mix.ts.ap' 'The Mix - 20180527 1636_ABC.ts.ap'
mv '20180527 1636 - ABC - The Mix.ts.cuts' 'The Mix - 20180527 1636_ABC.ts.cuts'
mv '20180527 1636 - ABC - The Mix.ts.meta' 'The Mix - 20180527 1636_ABC.ts.meta'
mv '20180527 1636 - ABC - The Mix.ts.sc' 'The Mix - 20180527 1636_ABC.ts.sc'
root@beyonwizu4:/media/hdd/movie#
Just change the file matching pattern to match the recordings whose names you want to change. To make it actually do something, pipe the output into the shell:

ls *Mix* | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/" | sh
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Rename existing T4/2 recordings

Post by adoxa » Sun Jul 15, 2018 16:38

craigh wrote:
Sun Jul 15, 2018 15:29
Is there an easy way to rename a large # of recordings for the eg short file name format to “event name first”.
Does that mean you have something like 20180715 - Name.* and you want Name - 20180715.*? If you have a Windows network my WRen utility could do that: wren "** - **.*" "$3 - $1.$5" (but that won't work if Name contains ., in which case it'd probably be easiest to do .eit and .ts* explicitly).

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 17:01

The actual match and replacement needs to take the service name into account as well as the date stamp, event name and extension.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Sun Jul 15, 2018 17:18

Thanks for the replies so far.

Yes i need to change the names from eg

20180712 - Criminal Minds_002.ts.* to
Criminal Minds_002 - 20180712.ts.*

I don't often use the media view on the BW to play any files.

I view them all through Kodi, so being able to sort by show name would make navigation easier.

I have changed the setting on the BW to Event Name First and that works well but i just want to modify all existing recordings.

I am using a Mac but could get windows in a VM if needed
Last edited by craigh on Sun Jul 15, 2018 17:26, edited 1 time in total.
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Sun Jul 15, 2018 17:20

With the new setting the look like this

House Rules - 20180715 1346_PRIME7 Canberra.ts.

They get time added and channel
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 17:31

To use my one-liner to convert all the old-format filenames at once:
ls [0-9][0-9][0-9][0-9]*.* | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/" | sh

provided that no existing "event name first" recordings have names starting with 4 digits, along with my other provisos above.

I strongly recommend checking the names to be converted first, with
ls [0-9][0-9][0-9][0-9]*.ts
or
[0-9][0-9][0-9][0-9]*.ts | less

and also review the results of:
ls [0-9][0-9][0-9][0-9]*.ts | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/"
before pushing all the rename (mv) commands into the shell.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 18:36

craigh wrote:
Sun Jul 15, 2018 17:18
I am using a Mac but could get windows in a VM if needed

The commands I've been suggesting can run directly on the PVR. You just need to set the password on the PVR (MENU>Setup>Network>Password) and then use telnet in a Mac Terminal window to connect to the PVR's Linux commandline interface. Log in as user root with the password you set.

Alternatively, if you mount the PVR's movies directory as a share on the Mac, you could run the same commands on the Mac. It's "Unixy" enough for them to work there, too".

I'm doing all this from a Mac, though I use ssh rather than telnet to connect.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Sun Jul 15, 2018 20:52

Hi Peter

I cleaned the recordings directory to just items in the format 20180712 - Criminal Minds_002.ts.*

I used the mounted drive method to my Mac then in terminal went to the mount point for the T4....

Ran your line without passing it to Shell and got the result below ....not what I expected. (I thought it was meant to build the command strings for mv.


From terminal....
HHome:Recordings HHome$ ls [0-9][0-9][0-9][0-9]*.ts | sed "s/\(........ ....\) - \(.*\) - \([^.]*\)\(.*\)/mv '&' '\3 - \1_\2\4'/"
20150129 - WIN News Nana.ts
20151016 - Death Race.ts
20151031 - The Rocky Horror Show Live.ts
20151220 - 12 Dates Of Christmas.ts
20160110 - Total Recall.ts
20160124 - This is Spinal Tap.ts
20160130 - Movie_ The X-Files (1998).ts
20160213 - Movie_ The Secret Life Of Walter Mitty .ts
20160312 - The X-Files.ts
20160319 - Planes.ts
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sun Jul 15, 2018 21:15

That's because the filenames are in "short" format, not in "standard" format as I expected. I'll post something that will work tomorrow.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Rename existing T4/2 recordings

Post by Grumpy_Geoff » Sun Jul 15, 2018 21:23

As prl has posted - naming mismatch.

You're using short filenames e.g.
20180409 - Antiques Roadshow.ts

Whereas prl's command is expecting standard filenames e.g.
20180409 1022 - ABC - Antiques Roadshow.ts

You're wanting Event name first e.g.
Antiques Roadshow - 20180409 1026_ABC.ts


[examples shamelessly nicked from Issue #637 :)]

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Mon Jul 16, 2018 11:48

prl wrote:
Sun Jul 15, 2018 21:15
That's because the filenames are in "short" format, not in "standard" format as I expected. I'll post something that will work tomorrow.
Thanks Peter

BTW Your original command string fixed all my older recordings in standard format
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Mon Jul 16, 2018 19:20

I had a play with this today and am getting closer

Came up with this from Peters examples

ls [0-9][0-9][0-9][0-9]*.* | sed "s/\(........\) - \([^.]*\)\(.*\)/mv ‘&’ ‘\2 - \1\3'/"

mv ‘20180713 - Today.ts.cuts’ ‘Today - 20180713.ts.cuts'
mv ‘20180713 - Today Extra.ts.ap’ ‘Today Extra - 20180713.ts.ap'
mv ‘20180713 - Today Extra.ts.cuts’ ‘Today Extra - 20180713.ts.cuts'
mv ‘20180713 - Today Extra.ts.meta’ ‘Today Extra - 20180713.ts.meta'
mv ‘20180713 - Today Extra.ts.sc’ ‘Today Extra - 20180713.ts.sc'
mv ‘20180713 - Today.eit’ ‘Today - 20180713.eit'
mv ‘20180713 - Today.ts’ ‘Today - 20180713.ts'
mv ‘20180713 - Today.ts.ap’ ‘Today - 20180713.ts.ap'

However when I add the | sh
ls [0-9][0-9][0-9][0-9]*.* | sed "s/\(........\) - \([^.]*\)\(.*\)/mv ‘&’ ‘\2 - \1\3'/" | sh
I get

usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Mon Jul 16, 2018 19:29

Some of your quotes are normal quotes, and some are backquotes. They should all be normal single quotes apart from the double quotes surrounding the whole s/.../.../ expression.. I.e. ' and not `

The shell uses backquote for something very different from normal single and double quotes.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Mon Jul 16, 2018 19:57

prl wrote:
Mon Jul 16, 2018 19:29
Some of your quotes are normal quotes, and some are backquotes. They should all be normal single quotes apart from the double quotes surrounding the whole s/.../.../ expression.. I.e. ' and not `

The shell uses backquote for something very different from normal single and double quotes.
Thanks Peter

I had trouble seeing the difference on the screen so i copied the string into RCode and then i could see what you meant.

ls [0-9][0-9][0-9][0-9]*.* | sed "s/\(........\) - \([^.]*\)\(.*\)/mv '&' '\2 - \1\3'/" | sh


It works for all files except those that contain a ' in the title

mv '20170420 - David Attenborough's Natural Curiosities.ts.sc' 'David Attenborough's Natural Curiosities - 20170420.ts.sc'
mv '20180306 - Marvel's Agents Of S_H_I_E_L_D_.eit' 'Marvel's Agents Of S_H_I_E_L_D_ - 20180306.eit'

So it only missed about 30 in the directory but processed the others perfectly
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Rename existing T4/2 recordings

Post by adoxa » Mon Jul 16, 2018 20:07

craigh wrote:
Mon Jul 16, 2018 19:57
It works for all files except those that contain a ' in the title
Just swap the quotes (i.e. sed '...mv "&"...') and you should catch those.

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Mon Jul 16, 2018 20:14

adoxa wrote:
Mon Jul 16, 2018 20:07
craigh wrote:
Mon Jul 16, 2018 19:57
It works for all files except those that contain a ' in the title
Just swap the quotes (i.e. sed '...mv "&"...') and you should catch those.
Perfect

Thanks Peter
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Mon Jul 16, 2018 20:32

That was adoxa, not me. :)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Mon Jul 16, 2018 21:18

craigh wrote:
Mon Jul 16, 2018 20:14
adoxa wrote:
Mon Jul 16, 2018 20:07
craigh wrote:
Mon Jul 16, 2018 19:57
It works for all files except those that contain a ' in the title
Just swap the quotes (i.e. sed '...mv "&"...') and you should catch those.
Perfect

Thanks Peter
Thank you both
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Mon Jul 16, 2018 21:26

Oh, and by the way, just swapping the double and single quotes around probably won't work. Double and single quotes are similar in the shell, but differ in how, for example, backslash is handled.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Mon Jul 16, 2018 22:50

Here's something that should work for titles with single quotes in them:
ls [0-9][0-9][0-9][0-9]*.* | sed -ne "s/'/'\\\\''/g" -e 's/\(........\) - \([^.]*\)\(.*\)/mv '\''&'\'' '\''\2 - \1\3/p'

It's ugly, but it works on the examples you listed:

Code: Select all

root@beyonwizu4:/media/hdd/logs# cat gaga | sed -ne "s/'/'\\\\''/g" -e 's/\(........\) - \([^.]*\)\(.*\)/mv '\''&'\'' '\''\2 - \1\3/p'
mv '20170420 - David Attenborough'\''s Natural Curiosities.ts.sc' 'David Attenborough'\''s Natural Curiosities - 20170420.ts.sc
mv '20180306 - Marvel'\''s Agents Of S_H_I_E_L_D_.eit' 'Marvel'\''s Agents Of S_H_I_E_L_D_ - 20180306.eit
root@beyonwizu4:/media/hdd/logs#
'\'' is a way to insert a single quote into a single-quoted string.

Code: Select all

root@beyonwizu4:/media/hdd/logs# echo 'Here'\''s how it looks'
Here's how it looks
root@beyonwizu4:/media/hdd/logs# 
When you're happy with the output, pipe it into sh to do the work.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Rename existing T4/2 recordings

Post by MrQuade » Mon Jul 16, 2018 23:00

Something like this might be handy to add into series2folder as an optional action on move.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Tue Jul 17, 2018 10:15

Specifying what you want may be tricky. The last lot of renames that craigh did were to a filename format that's not possible to set for recordings.

I'm also not sure that Series2Folder would be the logical place to implement it, if that was to be done. File Commander perhaps?
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Tue Jul 17, 2018 11:24

I am happy with the outcome.

All new shows are in this format

Marvel's Agents Of S_H_I_E_L_D_ - 20180716 2336_7flix.ts.*

And old ones have been swapped to

Marvel's Agents Of S_H_I_E_L_D_ - 20180709.ts.*

Now they sort well on my Kodi boxes that are used for playback. Previously i could only sort by date but now I can do by name as well.

(For the old ones the only files that don't sort 100% properly are when you have more than one in a day. eg) Criminal Minds_001 - 20180405.ts The new file names with a time stamp in the file name fix that issue.

Would be nice if there was an option to have "Event Name" less the channel included
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Rename existing T4/2 recordings

Post by adoxa » Tue Jul 17, 2018 12:00

craigh wrote:
Tue Jul 17, 2018 11:24
Would be nice if there was an option to have "Event Name" less the channel included
Here's a patch to add composition "Name and time" to do just that.

Simplest way to install is to extract to a USB drive, plug it in the Wiz, live TV >> MENU >> Sources / Files, navigate to the USB and the directory, select setup.sh and "Run script" (repeat to remove). Restart for it to take effect.
Attachments
nametime.zip
(27.43 KiB) Downloaded 39 times

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Tue Jul 17, 2018 15:10

adoxa wrote:
Tue Jul 17, 2018 12:00
craigh wrote:
Tue Jul 17, 2018 11:24
Would be nice if there was an option to have "Event Name" less the channel included
Here's a patch to add composition "Name and time" to do just that.

Simplest way to install is to extract to a USB drive, plug it in the Wiz, live TV >> MENU >> Sources / Files, navigate to the USB and the directory, select setup.sh and "Run script" (repeat to remove). Restart for it to take effect.
Thanks for that.

Tried to install but got the following error..."could not import runpy module"

I am still on a firmware from March 2017 so that may be the issue
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Rename existing T4/2 recordings

Post by adoxa » Tue Jul 17, 2018 16:09

craigh wrote:
Tue Jul 17, 2018 15:10
Tried to install but got the following error..."could not import runpy module"

I am still on a firmware from March 2017 so that may be the issue
Oh, sorry, it was supposed to say 20180417 was required if you had less than that, but maybe your version is too old for that test to work. Here's a version which I think will work, but if you're not able to run tar remotely you may want to give it a miss (or take the opportunity to upgrade...).
Attachments
nametime.zip
(36.22 KiB) Downloaded 46 times

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Tue Jul 17, 2018 16:21

adoxa wrote:
Tue Jul 17, 2018 16:09
craigh wrote:
Tue Jul 17, 2018 15:10
Tried to install but got the following error..."could not import runpy module"

I am still on a firmware from March 2017 so that may be the issue
Oh, sorry, it was supposed to say 20180417 was required if you had less than that, but maybe your version is too old for that test to work. Here's a version which I think will work, but if you're not able to run tar remotely you may want to give it a miss (or take the opportunity to upgrade...).
Installed with no errors but did not work

Thanks anyway, I will add the firmware update to my task list :-)
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Rename existing T4/2 recordings

Post by adoxa » Tue Jul 17, 2018 17:02

craigh wrote:
Tue Jul 17, 2018 16:21
Installed with no errors but did not work
Worked for me, albeit on 20180714. After a restart (necessary!) you should have "Name and time" after "Event name first" in the composition option.

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Tue Jul 17, 2018 17:12

adoxa wrote:
Tue Jul 17, 2018 17:02
craigh wrote:
Tue Jul 17, 2018 16:21
Installed with no errors but did not work
Worked for me, albeit on 20180714. After a restart (necessary!) you should have "Name and time" after "Event name first" in the composition option.
My Bad, I thought you had just changed "Event Name First". ...so I just tested a new recording

Just installed again and now have the option ...

Will reboot after current recording finishes
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

craigh
Wizard
Posts: 1767
Joined: Tue Jul 03, 2007 08:41
Location: SouthEast

Re: Rename existing T4/2 recordings

Post by craigh » Tue Jul 17, 2018 19:34

Works perfectly on 16.x firmware - thanks
Craig
T4 + Kodi + Foxtel IQ2 > Yamaha RX-V2700 > Panasonic Plasma
T2 + Kodi Player > Pioneer Plasma
5 x Kodi + Enigma Plugin > LCD TV's
Retired - S1, P1, P1, FLV1, H1, H1
Foxtel IQ3 > Digi-MOD RL-DM1102 - SD DTV RF Modulator > All TV's
Remotes - Pronto TSU9400's + TSU7500's

kmwa
On probation
Posts: 2
Joined: Wed Oct 30, 2019 18:22

Re: Rename existing T4/2 recordings

Post by kmwa » Sat Apr 04, 2020 14:36

I was struggling to rename Beyonwiz recordings, for convenience and also because copying recordings across to a Windows PC and back again was messing with filenames (colons such as Movie: Star Wars are OK in Linux on the Beyonwiz, but are not accepted by Windows, which renames it to Movie_Star Wars. Like Indiana Jones with snakes, I hate underscores). Sorry, I digress.
I couldn't find anything meaningful about the format of eit and meta files, regrettably Beyonwiz don't seem to have released anything about them.
However, I found a program called edEIT designed to edit eit and meta files. I can edit files on the Beyonwiz from my laptop, because both devices are on the same wireless network.
edEIT is free and you can find it here https://dreambox.de/board/index.php?thr ... ditor/&l=2
Some notes from another user here https://www.techkings.org/threads/editi ... gs.106779/
Unlike what he says, I confirm that it can be used to edit both eit and meta files.
But like him, I've also been pranking my wife. She is an avid fan of Neighbours, so I've been messing with the program descriptions...
Follow the personal dramas of a bunch of daft twats living in the fictional Melbourne suburb of Erinsborough.
I know this doesn't really answer the original poster's question (about bulk changes), but at least it lets you change individual files one at a time in a fairly easy manner.
Another use for edEIT is attaching names and descriptions to mp4 files downloaded with Allavsoft from SBS On Demand. I have a lot of these on a USB drive connected to the Beyonwiz, for watching if I ever get stuck in the house for long periods. Like now.

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: Rename existing T4/2 recordings

Post by MrQuade » Sat Apr 04, 2020 16:18

kmwa wrote:
Sat Apr 04, 2020 14:36
I couldn't find anything meaningful about the format of eit and meta files, regrettably Beyonwiz don't seem to have released anything about them.
It's all documented in the source here.
kmwa wrote:
Sat Apr 04, 2020 14:36
However, I found a program called edEIT designed to edit eit and meta files. I can edit files on the Beyonwiz from my laptop, because both devices are on the same wireless network.
edEIT is free and you can find it here https://dreambox.de/board/index.php?thr ... ditor/&l=2
Some notes from another user here https://www.techkings.org/threads/editi ... gs.106779/
Sounds like a handy tool :).
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Rename existing T4/2 recordings

Post by prl » Sat Apr 04, 2020 16:49

MrQuade wrote:
Sat Apr 04, 2020 16:18
kmwa wrote:
Sat Apr 04, 2020 14:36
I couldn't find anything meaningful about the format of eit and meta files, regrettably Beyonwiz don't seem to have released anything about them.
It's all documented in the source here.

To clarify, while it's in the source repository, it's actually a plain text documentation file. MrQuade isn't saying "the source is the documentation", though that is true for a lot of the firmware ;)

That documentation is quite good for the .meta and .cuts files, but it doesn't say much about the structure of the .eit file. There you really do need to consult the source code and the DVB standards. :(

But if you have a program to do make the changes you want, then you're in the fortunate position of having someone else read the documentation for you :)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

paullings
Master
Posts: 247
Joined: Sat Dec 13, 2014 06:37
Location: Newcastle

Re: Rename existing T4/2 recordings

Post by paullings » Sat Apr 04, 2020 17:47

kmwa wrote:
Sat Apr 04, 2020 14:36
edEIT is free and you can find it here https://dreambox.de/board/index.php?thr ... ditor/&l=2
Some notes from another user here https://www.techkings.org/threads/editi ... gs.106779/

Thanks for this. It works really well. Easy to tidy up some of the program descriptions that had strange characters in them.
Robert

U4 2TB (Jan 2018) 19.3.20211010 , HDMI
T3 1TB (Dec 2014) 19.3.20211010 , Front Panel 20057, HDMI, Warkus'd 2018 & still going
IceTV, Series2Folder, OverlayHD 1.70
Samsung 55"OLED TV, Apple TV, ReadyNAS 214, Sonos Arc, Harmony Ultimate One
Windows 10

Post Reply

Return to “General Discussion”