4.8.5 {video[0].FrameRate} results in [email protected]

All your suggestions, requests and ideas for future development
Post Reply
yhm28
Posts: 20
Joined: 24 Jan 2018, 07:20

4.8.5 {video[0].FrameRate} results in [email protected]

Post by yhm28 » 13 Oct 2019, 04:39

version 4.8.5
{video[0].FrameRate} results in [email protected]

confirmed -- error is not present in 4.8.3

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

Re: 4.8.5 {video[0].FrameRate} results in [email protected]

Post by rednoah » 13 Oct 2019, 06:20

What's the complete format you're using?
:idea: Please read the FAQ and How to Request Help.

yhm28
Posts: 20
Joined: 24 Jan 2018, 07:20

Re: 4.8.5 {video[0].FrameRate} results in [email protected]

Post by yhm28 » 13 Oct 2019, 19:51

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

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

Re: 4.8.5 {video[0].FrameRate} results in [email protected]

Post by rednoah » 14 Oct 2019, 01:57

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.
:idea: Please read the FAQ and How to Request Help.

Post Reply