Page 1 of 1

4.8.5 {video[0].FrameRate} results in Script1$_run_closure1@30bca03e

Posted: 13 Oct 2019, 04:39
by yhm28
version 4.8.5
{video[0].FrameRate} results in Script1$_run_closure1@30bca03e

confirmed -- error is not present in 4.8.3

Re: 4.8.5 {video[0].FrameRate} results in Script1$_run_closure1@30bca03e

Posted: 13 Oct 2019, 06:20
by rednoah
What's the complete format you're using?

Re: 4.8.5 {video[0].FrameRate} results in Script1$_run_closure1@30bca03e

Posted: 13 Oct 2019, 19:51
by yhm28

Code: Select all

{n}/{n} - {s00e00} - {t} - [{airdate}] {'['+vf+' '+mbps+' '+ac+' '+af+' '+{video[0].FrameRate}+' ' +vc.replace('Microsoft', 'VC-1').replace ('AVC','H.264').replace ('HEVC','x265') +']'}
As per your instructions:
yhm28 wrote: 24 Jan 2018, 09:24
rednoah wrote: 24 Jan 2018, 09:10
There is no convenience binding for the frame rate, so you'll have to grab it from the video stream directly:

Code: Select all

{video[0].FrameRate}
@see viewtopic.php?f=5&t=4285

Re: 4.8.5 {video[0].FrameRate} results in Script1$_run_closure1@30bca03e

Posted: 14 Oct 2019, 01:57
by rednoah
This will work:

Code: Select all

{n}/{n} - {s00e00} - {t} - [{airdate}] {'['+vf+' '+mbps+' '+ac+' '+af+' '+fps+' ' +vc.replace('Microsoft', 'VC-1').replace ('AVC','H.264').replace ('HEVC','x265') +']'}
:idea: viewtopic.php?f=5&t=1895

:idea: Although {x} (yields the value of x) would be correct, you're technically doing {{x}} (yields a closure that yields the value of x) which is not technically correct, but seems to accidentally have worked in older versions.

:idea: You can also use the fps binding instead of doing video[0].FrameRate to slightly simplify your format expression.