fn:amc video codec at the end of Text

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
stoneii
Posts: 11
Joined: 08 May 2019, 11:28

fn:amc video codec at the end of Text

Post by stoneii » 08 May 2019, 11:42

I use the command in my windows terminal.

Code: Select all

filebot -script fn:amc "Y:\Downloads\ftp\TEST\NEW" --output "Y:\Downloads\ftp\TEST\Organized Media" -non-strict --lang de --def clean=y?
this works very well but wants to have the new output .

output folder and filneme is

Kingsman - The Secret Service (2015) or Kingsman - The Secret Service (2015).mkv

I would like to have the video codec at the end

Kingsman - The Secret Service (2015) x264 or Kingsman - The Secret Service (2015) x264.mkv

Can anyone help me

Thanks

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 08 May 2019, 12:06

Best to use the GUI first so you can play with custom formats:
https://www.filebot.net/naming.html

By default, the amc script is using the Plex format:
viewtopic.php?f=5&t=4116

So you can easily add extra information yourself as documented:

Code: Select all

{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Once you've prototyped your custom format in the GUI, you can read the amc script manual on how to integrate that into your command-line call.
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 08 May 2019, 12:46

Thanks
I know the gui.
and the plex format is great because I use plex

since I have been looking for two days, how is the exact input that I can use that

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 08 May 2019, 13:43

1.
Here's the example from the documentation:

Code: Select all

{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Here's what you want:

Code: Select all

{plex.derive{" [$vc]"}}

2.
Here's the example from the documentation:

Code: Select all

--def movieFormat="M:/{plex}" seriesFormat="S:/{plex}" animeFormat="T:/{plex}" musicFormat="N:/{plex}"
Here's what you want:

Code: Select all

--def movieFormat='{plex.derive{" [$vc]"}}' seriesFormat='{plex.derive{" [$vc]"}}' animeFormat='{plex.derive{" [$vc]"}}'
:!: We use PowerShell so we can use '...' to quote arguments since we can't use "..." since we're using "..." in our format already. If you want to use CMD, then you can use @file syntax to read the format code from a file.

:!: Here's a primer on how argument passing works: viewtopic.php?f=4&t=1899


3.
Here's the example from the documentation:

Code: Select all

filebot -script fn:amc --output "/path/to/output" --action duplicate -non-strict "/path/to/input" --log-file amc.log --def excludeList=amc.txt
Here's what you want:

Code: Select all

filebot -script fn:amc --output "Y:\Downloads\ftp\TEST\Organized Media" --action duplicate -non-strict "Y:\Downloads\ftp\TEST\NEW" --log-file amc.log --def excludeList=amc.txt --lang de --def clean=y --def movieFormat='{plex.derive{" [$vc]"}}' seriesFormat='{plex.derive{" [$vc]"}}' animeFormat='{plex.derive{" [$vc]"}}'
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 08 May 2019, 14:46

So who I start in the powerchell so I get these messages

i create a file args.txt

imput of file

movieFormat=Movies/{ny}/{fn}
seriesFormat=TV/{n}/{'S'+s}/{fn}
animeFormat=Anime/{n}/{fn}

file locate on C:\Program Files\FileBot\args.txt
PS C:\Program Files\FileBot> C:\Program Files\FileBot\rename2.ps1
Locking C:\Users\Administrator\AppData\Roaming\FileBot\logs\amc.log
filebot.exe : Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\FileBot\[$vc]}} ([$vc]}})
Bei C:\Program Files\FileBot\rename2.ps1:1 Zeichen:8
+ filebot <<<< -script fn:amc --output "Y:\Downloads\ftp\TEST\Organized Media" --action duplicate -non-strict "Y:\Downloads\ftp\TEST\NEW" --log-file am
c.log --def excludeList=amc.txt --lang de --def clean=y --def movieFormat='{plex.derive{" [$vc]"}}' seriesFormat='{plex.derive{" [$vc]"}}' animeFormat='
{plex.derive{" [$vc]"}}'
+ CategoryInfo : NotSpecified: (Illegal Argumen...vc]}} ([$vc]}}):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\FileBot\seriesFormat={plex.derive{ (seriesFormat={plex.derive{)

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\FileBot\[$vc]}} ([$vc]}})

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\FileBot\animeFormat={plex.derive{ (animeFormat={plex.derive{)

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\FileBot\[$vc]}} ([$vc]}})

Run script [fn:amc] at [Wed May 08 16:41:32 CEST 2019]
Parameter: excludeList = amc.txt
Parameter: clean = y
Parameter: movieFormat = {plex.derive{
Argument[0]: Y:\Downloads\ftp\TEST\NEW
Argument[1]: File does not exist: [$vc]}}

Argument[2]: File does not exist: seriesFormat={plex.derive{

Argument[3]: File does not exist: [$vc]}}

Argument[4]: File does not exist: animeFormat={plex.derive{

Argument[5]: File does not exist: [$vc]}}

Use excludes: Y:\Downloads\ftp\TEST\Organized Media\amc.txt (2)
No files selected for processing

Done »\_(?)_/»

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 08 May 2019, 14:55

The error message shows that argument parsing is completely off, which means your command is just wrong, most likely due to not quoting things correctly as explained here:
viewtopic.php?f=4&t=1899

Since you posted neither your rename2.ps1 nor your args.txt I can't tell you what got wrong in any of these files.
:idea: Please read the FAQ and How to Request Help.

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 08 May 2019, 15:00

Just using @files and avoiding any kind of complexity on the command-line is a good idea though.

Code: Select all

filebot @X:/args.txt
cat args.txt

Code: Select all

-script
fn:amc
--output
Y:\Downloads\ftp\TEST\Organized Media
--action
duplicate
-non-strict
Y:\Downloads\ftp\TEST\NEW
--log-file
amc.log
--lang
de
--def
excludeList=amc.txt
clean=y
--def
movieFormat={plex.derive{" [$vc]"}}
seriesFormat={plex.derive{" [$vc]"}}
animeFormat={plex.derive{" [$vc]"}}
Now you don't have to know how command-line argument parsing works. It's just one argument per line. Easy. :ugeek:
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 08 May 2019, 19:52

So Thanks,
the scripr run!

I thought I'm so stupid now :oops:
Reason why come up so funny messages at the old windows 7 and powershell. this is apparently too old or incorrect.
I've tried all this on a Windows 10 and look there's safet. it works!!
Enclosed the powershell message

Code: Select all

PS C:\> filebot @c:\args2.txt
Locking C:\Users\Michi\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Wed May 08 21:40:38 CEST 2019]
Parameter: excludeList = amc.txt
Parameter: clean = y
Parameter: movieFormat = {plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Parameter: seriesFormat = {plex.derive{" [$vc]"}}
Parameter: animeFormat = {plex.derive{" [$vc]"}}
Argument[0]: Y:\Downloads\ftp\TEST\NEW
Use excludes: Y:\Downloads\ftp\TEST\Organized Media\amc.txt
Input: Y:\Downloads\ftp\TEST\NEW\Koenige.der.Sonne.1963.German.DL.1080p.BluRay.x264-iNKLUSiON\inkl-kingssun-1080p.mkv
Input: Y:\Downloads\ftp\TEST\NEW\Lake.Placid.4.2012.GERMAN.AC3.1080p.HDTV.x264-DUNGHiLL\dung-lake_placid_4_2012_1080p.mkv
Group: [Movie:Könige der Sonne (1963), Series:null] => [inkl-kingssun-1080p.mkv]
Group: [Movie:Lake Placid 4 (2012), Series:null] => [dung-lake_placid_4_2012_1080p.mkv]
Rename movies using [TheMovieDB]
[DUPLICATE] from [Y:\Downloads\ftp\TEST\NEW\Koenige.der.Sonne.1963.German.DL.1080p.BluRay.x264-iNKLUSiON\inkl-kingssun-1080p.mkv] to [Y:\Downloads\ftp\TEST\Organized 
Media\Movies\Könige der Sonne (1963)\Könige der Sonne (1963) by J. Lee Thompson [1080p, x264, AC3].mkv]
Processed 1 files
Rename movies using [TheMovieDB]
[DUPLICATE] from [Y:\Downloads\ftp\TEST\NEW\Lake.Placid.4.2012.GERMAN.AC3.1080p.HDTV.x264-DUNGHiLL\dung-lake_placid_4_2012_1080p.mkv] to [Y:\Downloads\ftp\TEST\Organi
zed Media\Movies\Lake Placid 4 (2012)\Lake Placid 4 (2012) by Don Michael Paul [1080p, x264, AC3].mkv]
Processed 1 files
Done ?(?????)?

PS C:\>
what does not fit yet is that of the original place the fils are not deleted if everything was successful
if I do that I want to test times 50-100 film folder to work off

c:\args2.txt

Code: Select all

-script
fn:amc
--output
Y:\Downloads\ftp\TEST\Organized Media
--action
duplicate
-non-strict
Y:\Downloads\ftp\TEST\NEW
--log-file
amc.log
--lang
de
--def
excludeList=amc.txt
clean=y
--def
movieFormat={plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
seriesFormat={plex.derive{" [$vc]"}}
animeFormat={plex.derive{" [$vc]"}}

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 08 May 2019, 20:46

i have the solution --action move that's it

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 13 May 2019, 09:22

Hi I have a question

there is the possibility that the AMC after successful unpacking also the folder with content rar files clears to unload disk storage

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 13 May 2019, 09:30

Yes, the --def deleteAfterExtract=y option does what it says. :lol:
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 28 May 2019, 15:13

Can You Help me please

I would like to make a sorting of the films From 0-9 and A-Z but somehow he makes me with the entry always folder with Movie and Movie twice ....

Code: Select all

{plex.root} / {az} / {plex.tail}
how do I build the command or worth clean so that everything fits.

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 28 May 2019, 15:16

Please give an example of the file paths you'd like to generate.
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 28 May 2019, 16:43

this is my script is now works fine!

Code: Select all

-script
fn:amc
--output
Y:\Downloads\ftp\DONE-x264-1080p-ger.1
--action
move
-non-strict
--db TheMovieDB
Y:\Downloads\ftp\NEU-x264-1080p-ger.1
--log-file
amc.log
--lang
de
--def
excludeList=amc.txt
deleteAfterExtract=y
clean=y
--def
movieFormat={plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
seriesFormat={plex.derive{" [$vc]"}}
animeFormat={plex.derive{" [$vc]"}}

example of the file paths is

TV Shows/F/Firefly/Season 1/Firefly - S01E01 - The Train Job
Movies/S/Serenity (2005)/Serenity (2005)

and Movie Collection Naming

User avatar
rednoah
The Source
Posts: 16433
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: fn:amc video codec at the end of Text

Post by rednoah » 28 May 2019, 16:45

Series Format:

Code: Select all

TV Shows/{az}/{plex.tail}
Movie Format:

Code: Select all

Movie/{az}/{plex.tail}
:idea: Please read the FAQ and How to Request Help.

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 28 May 2019, 20:29

I DO NOT UNDERSTAND WHAT I INSERT THE LINE
HOW IT COMES FROM ME NOW

TEST1
movieFormat=Movie/{az}/{plex.tail}{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Y:\Downloads\ftp\DONE-x264-1080p-ger.1\Movie\A\Astrid (2018)\Astrid (2018)Movies\Astrid (2018)\Astrid (2018) by Pernille Fischer Christensen [1080p, x264, DTS]

TEST2
movieFormat=Movie/{az}/{plex.tail{" by $director"}{" [$vf, $vc, $ac]"}}
Y:\Downloads\ftp\DONE-x264-1080p-ger.1\Movie\M\.MKV

http://prntscr.com/nulosc

kim
Power User
Posts: 798
Joined: 15 May 2014, 16:17

Re: fn:amc video codec at the end of Text

Post by kim » 28 May 2019, 20:36

e.g.

Code: Select all

{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}}

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 28 May 2019, 21:08

So that's how it works now I understand that ...
{plex.tail.derive.xxx.yyy.sss

and so on now I have understood that, now you too thank you :mrgreen:

stoneii
Posts: 11
Joined: 08 May 2019, 11:28

Re: fn:amc video codec at the end of Text

Post by stoneii » 05 Aug 2019, 14:33

Hello It's Me,
I have now edited all my films and serien synonymous. Now I want to prepare my music collection for plex "with id tag"
question I can install that in my script and if so how do I do the line right attached my script

Code: Select all

-script
fn:amc
--output
Y:\Downloads\ftp\DONE-x265-2160p-ger
--action
move
-non-strict
--db TheMovieDB
Y:\Downloads\ftp\NEU-x265-2160p-ger
--log-file
amc.log
--lang
de
--def
excludeList=amc.txt
deleteAfterExtract=y
clean=y
--def
movieFormat=Movie/{az}/{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}}
seriesFormat={plex.derive{" [$vc]"}}
animeFormat={plex.derive{" [$vc]"}}
additionally, the line would start from animeFormat = {plex.derive {"[$ vc]"}}
I would have started like this
music format = {plex.derive

if that is not in the script, I'm synonymous for a replacement

Post Reply