Guest User

Untitled

a guest
Mar 7th, 2024
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. {
  2. "Name": "2pass",
  3. "Type": 0,
  4. "Revision": 5,
  5. "Properties": {
  6. "Description": "A blank video file template with a single \u0022Video File\u0022 input flow element.",
  7. "Tags": [
  8. "Video",
  9. "Basic"
  10. ],
  11. "Author": "FileFlows",
  12. "Fields": [],
  13. "Variables": {}
  14. },
  15. "Parts": [
  16. {
  17. "Uid": "8476a054-b364-4be9-add4-1ad3c602bf84",
  18. "Name": "",
  19. "ReadOnly": false,
  20. "FlowElementUid": "FileFlows.VideoNodes.VideoFile",
  21. "xPos": 160,
  22. "yPos": 60,
  23. "Icon": "fas fa-video",
  24. "Label": "",
  25. "Inputs": 0,
  26. "Outputs": 1,
  27. "OutputConnections": [
  28. {
  29. "Input": 1,
  30. "Output": 1,
  31. "InputNode": "f0ab5ada-c38e-4e2d-abab-bf7d9fcf464c"
  32. }
  33. ],
  34. "Type": 0,
  35. "Model": {
  36. "ProbeSize": 25
  37. }
  38. },
  39. {
  40. "Uid": "f0ab5ada-c38e-4e2d-abab-bf7d9fcf464c",
  41. "Name": "Run 1st pass",
  42. "Color": "",
  43. "ReadOnly": false,
  44. "FlowElementUid": "FileFlows.BasicNodes.Functions.Function",
  45. "xPos": 160,
  46. "yPos": 170,
  47. "Icon": "fas fa-code",
  48. "Label": "",
  49. "Inputs": 1,
  50. "Outputs": 1,
  51. "OutputConnections": [
  52. {
  53. "Input": 1,
  54. "Output": 1,
  55. "InputNode": "c1fd57c3-3988-412e-874f-b952dcf847c1"
  56. }
  57. ],
  58. "Type": 3,
  59. "Model": {
  60. "Outputs": 1,
  61. "Code": "let output = Flow.TempPath \u002B \u0027/\u0027 \u002B Flow.NewGuid() \u002B \u0027.mkv\u0027;\nlet ffmpeg = Flow.GetToolPath(\u0027ffmpeg\u0027);\nlet process = Flow.Execute({\n\tcommand: ffmpeg,\n\targumentList: [\n\t\t\u0027-y\u0027,\n\t\t\u0027-i\u0027, Variables.file.FullName,\n\t\t\u0027-map\u0027, \u00270\u0027, \u0027-map\u0027, \u0027-0:d\u0027,\n\t\t\u0027-c:v\u0027, \u0027libx265\u0027,\n\t\t\u0027-preset\u0027, \u0027slow\u0027,\n\t\t\u0027-profile:v\u0027, \u0027main10\u0027,\n\t\t\u0027-x265-params\u0027, \u0027pass=1\u0027,\n\t\t\u0027-b:v\u0027, \u00273000k\u0027,\n\t\t\u0027-minrate\u0027, \u00272000k\u0027,\n\t\t\u0027-maxrate\u0027, \u00275000k\u0027,\n\t\t\u0027-bufsize\u0027, \u002710000k\u0027,\n\t\t\u0027-c:a\u0027, \u0027copy\u0027,\n\t\t\u0027-c:s\u0027, \u0027copy\u0027,\n\t\t\u0027-f\u0027, \u0027matroska\u0027, \u0027/dev/null\u0027\n\t],\n\tworkingDirectory: Flow.TempPath \u002B \u0027/\u0027,\n});\n\nif(process.standardOutput)\n\tLogger.ILog(\u0027Standard output: \u0027 \u002B process.standardOutput);\nif(process.standardError)\n\tLogger.ILog(\u0027Standard error: \u0027 \u002B process.standardError);\n\nif(process.exitCode !== 0){\n\tLogger.ELog(\u0027Failed processing ffmpeg: \u0027 \u002B process.exitCode);\n\treturn -1;\n}\n\nreturn 1;"
  62. }
  63. },
  64. {
  65. "Uid": "c1fd57c3-3988-412e-874f-b952dcf847c1",
  66. "Name": "Run 2nd pass",
  67. "Color": "",
  68. "ReadOnly": false,
  69. "FlowElementUid": "FileFlows.BasicNodes.Functions.Function",
  70. "xPos": 160,
  71. "yPos": 300,
  72. "Icon": "fas fa-code",
  73. "Label": "",
  74. "Inputs": 1,
  75. "Outputs": 1,
  76. "OutputConnections": [
  77. {
  78. "Input": 1,
  79. "Output": 1,
  80. "InputNode": "31f913b2-e7ab-4016-be2e-490efa83a83e"
  81. }
  82. ],
  83. "Type": 3,
  84. "Model": {
  85. "Outputs": 1,
  86. "Code": "let output = Flow.TempPath \u002B \u0027/\u0027 \u002B Flow.NewGuid() \u002B \u0027.mkv\u0027;\nlet ffmpeg = Flow.GetToolPath(\u0027ffmpeg\u0027);\nlet process = Flow.Execute({\n\tcommand: ffmpeg,\n\targumentList: [\n\t\t\u0027-y\u0027,\n\t\t\u0027-i\u0027, Variables.file.FullName,\n\t\t\u0027-map\u0027, \u00270\u0027, \u0027-map\u0027, \u0027-0:d\u0027,\n\t\t\u0027-c:v\u0027, \u0027libx265\u0027,\n\t\t\u0027-preset\u0027, \u0027slow\u0027,\n\t\t\u0027-profile:v\u0027, \u0027main10\u0027,\n\t\t\u0027-x265-params\u0027, \u0027pass=2\u0027,\n\t\t\u0027-b:v\u0027, \u00273000k\u0027,\n\t\t\u0027-minrate\u0027, \u00272000k\u0027,\n\t\t\u0027-maxrate\u0027, \u00275000k\u0027,\n\t\t\u0027-bufsize\u0027, \u002710000k\u0027,\n\t\t\u0027-c:a\u0027, \u0027copy\u0027,\n\t\t\u0027-c:s\u0027, \u0027copy\u0027,\n\t\toutput\n\t],\n\tworkingDirectory: Flow.TempPath \u002B \u0027/\u0027,\n});\n\nif(process.standardOutput)\n\tLogger.ILog(\u0027Standard output: \u0027 \u002B process.standardOutput);\nif(process.standardError)\n\tLogger.ILog(\u0027Standard error: \u0027 \u002B process.standardError);\n\nif(process.exitCode !== 0){\n\tLogger.ELog(\u0027Failed processing ffmpeg: \u0027 \u002B process.exitCode);\n\treturn -1;\n}\n\nFlow.SetWorkingFile(output);\nreturn 1;"
  87. }
  88. },
  89. {
  90. "Uid": "31f913b2-e7ab-4016-be2e-490efa83a83e",
  91. "Name": "",
  92. "Color": "",
  93. "ReadOnly": false,
  94. "FlowElementUid": "FileFlows.BasicNodes.File.MoveFile",
  95. "xPos": 160,
  96. "yPos": 410,
  97. "Icon": "fas fa-file-export",
  98. "Label": "",
  99. "Inputs": 1,
  100. "Outputs": 2,
  101. "Type": 2,
  102. "Model": {
  103. "InputFile": null,
  104. "DestinationPath": "/media/testfileflows/output",
  105. "DestinationFile": null,
  106. "MoveFolder": false,
  107. "DeleteOriginal": false,
  108. "AdditionalFiles": null,
  109. "AdditionalFilesFromOriginal": false,
  110. "PreserverOriginalDates": false
  111. }
  112. }
  113. ]
  114. }
Advertisement
Add Comment
Please, Sign In to add comment