active_encode 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/active_encode.gemspec +1 -2
  3. data/lib/active_encode/version.rb +1 -1
  4. metadata +3 -273
  5. data/spec/controllers/encode_record_controller_spec.rb +0 -53
  6. data/spec/fixtures//"file_with_double_quote/".low.mp4 +0 -0
  7. data/spec/fixtures//"file_with_double_quote/".mp4 +0 -0
  8. data/spec/fixtures/'file_with_single_quote'.low.mp4 +0 -0
  9. data/spec/fixtures/'file_with_single_quote'.mp4 +0 -0
  10. data/spec/fixtures/@/341/213/210/341/213/263/341/214/205/341/210/205 /341/210/233/341/210/255 /341/211/242. /341/210/206/341/212/225 /341/214/250/341/210/255/341/210/265. /341/210/205 /341/212/240/341/211/265/341/210/213/341/210/260!@#$^^&$%&.low.mov +0 -0
  11. data/spec/fixtures/@/341/213/210/341/213/263/341/214/205/341/210/205 /341/210/233/341/210/255 /341/211/242. /341/210/206/341/212/225 /341/214/250/341/210/255/341/210/265. /341/210/205 /341/212/240/341/211/265/341/210/213/341/210/260!@#$^^&$%&.mov +0 -0
  12. data/spec/fixtures/Bars_512kb.mp4 +0 -0
  13. data/spec/fixtures/elastic_transcoder/input_completed.json +0 -1
  14. data/spec/fixtures/elastic_transcoder/input_generic.json +0 -1
  15. data/spec/fixtures/elastic_transcoder/input_progressing.json +0 -1
  16. data/spec/fixtures/elastic_transcoder/job_canceled.json +0 -1
  17. data/spec/fixtures/elastic_transcoder/job_completed.json +0 -1
  18. data/spec/fixtures/elastic_transcoder/job_created.json +0 -1
  19. data/spec/fixtures/elastic_transcoder/job_failed.json +0 -1
  20. data/spec/fixtures/elastic_transcoder/job_progressing.json +0 -1
  21. data/spec/fixtures/elastic_transcoder/output_canceled.json +0 -1
  22. data/spec/fixtures/elastic_transcoder/output_completed.json +0 -1
  23. data/spec/fixtures/elastic_transcoder/output_failed.json +0 -1
  24. data/spec/fixtures/elastic_transcoder/output_progressing.json +0 -1
  25. data/spec/fixtures/elastic_transcoder/output_submitted.json +0 -1
  26. data/spec/fixtures/ffmpeg/cancelled-id/cancelled +0 -0
  27. data/spec/fixtures/ffmpeg/cancelled-id/error.log +0 -0
  28. data/spec/fixtures/ffmpeg/cancelled-id/exit_status.code +0 -1
  29. data/spec/fixtures/ffmpeg/cancelled-id/input_metadata +0 -90
  30. data/spec/fixtures/ffmpeg/cancelled-id/pid +0 -1
  31. data/spec/fixtures/ffmpeg/cancelled-id/progress +0 -11
  32. data/spec/fixtures/ffmpeg/completed-id/error.log +0 -0
  33. data/spec/fixtures/ffmpeg/completed-id/exit_status.code +0 -1
  34. data/spec/fixtures/ffmpeg/completed-id/input_metadata +0 -102
  35. data/spec/fixtures/ffmpeg/completed-id/output_metadata-high +0 -90
  36. data/spec/fixtures/ffmpeg/completed-id/output_metadata-low +0 -90
  37. data/spec/fixtures/ffmpeg/completed-id/pid +0 -1
  38. data/spec/fixtures/ffmpeg/completed-id/progress +0 -11
  39. data/spec/fixtures/ffmpeg/completed-id/video-high.mp4 +0 -0
  40. data/spec/fixtures/ffmpeg/completed-id/video-low.mp4 +0 -0
  41. data/spec/fixtures/ffmpeg/completed-with-warnings-id/error.log +0 -3
  42. data/spec/fixtures/ffmpeg/completed-with-warnings-id/exit_status.code +0 -1
  43. data/spec/fixtures/ffmpeg/completed-with-warnings-id/input_metadata +0 -102
  44. data/spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-high +0 -90
  45. data/spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-low +0 -90
  46. data/spec/fixtures/ffmpeg/completed-with-warnings-id/pid +0 -1
  47. data/spec/fixtures/ffmpeg/completed-with-warnings-id/progress +0 -11
  48. data/spec/fixtures/ffmpeg/completed-with-warnings-id/video-high.mp4 +0 -0
  49. data/spec/fixtures/ffmpeg/completed-with-warnings-id/video-low.mp4 +0 -0
  50. data/spec/fixtures/ffmpeg/failed-id/error.log +0 -1
  51. data/spec/fixtures/ffmpeg/failed-id/exit_status.code +0 -1
  52. data/spec/fixtures/ffmpeg/failed-id/input_metadata +0 -90
  53. data/spec/fixtures/ffmpeg/failed-id/pid +0 -1
  54. data/spec/fixtures/ffmpeg/failed-id/progress +0 -11
  55. data/spec/fixtures/ffmpeg/incomplete-id/error.log +0 -0
  56. data/spec/fixtures/ffmpeg/incomplete-id/exit_status.code +0 -1
  57. data/spec/fixtures/ffmpeg/incomplete-id/input_metadata +0 -102
  58. data/spec/fixtures/ffmpeg/incomplete-id/output_metadata-high +0 -90
  59. data/spec/fixtures/ffmpeg/incomplete-id/output_metadata-low +0 -90
  60. data/spec/fixtures/ffmpeg/incomplete-id/pid +0 -1
  61. data/spec/fixtures/ffmpeg/incomplete-id/progress +0 -11
  62. data/spec/fixtures/ffmpeg/incomplete-id/video-high.mp4 +0 -0
  63. data/spec/fixtures/ffmpeg/incomplete-id/video-low.mp4 +0 -0
  64. data/spec/fixtures/ffmpeg/running-id/error.log +0 -0
  65. data/spec/fixtures/ffmpeg/running-id/input_metadata +0 -90
  66. data/spec/fixtures/ffmpeg/running-id/pid +0 -1
  67. data/spec/fixtures/ffmpeg/running-id/progress +0 -11
  68. data/spec/fixtures/file with space.low.mp4 +0 -0
  69. data/spec/fixtures/file with space.mp4 +0 -0
  70. data/spec/fixtures/file.with :=+%sp3c!l-ch4cts().mp4 +0 -0
  71. data/spec/fixtures/file.with...periods.mp4 +0 -0
  72. data/spec/fixtures/file_without_metadata.low.webm +0 -0
  73. data/spec/fixtures/file_without_metadata.mp4 +0 -0
  74. data/spec/fixtures/file_without_metadata.webm +0 -0
  75. data/spec/fixtures/fireworks.low.mp4 +0 -0
  76. data/spec/fixtures/fireworks.mp4 +0 -0
  77. data/spec/fixtures/matterhorn/cancelled_response.xml +0 -323
  78. data/spec/fixtures/matterhorn/completed_response.xml +0 -4
  79. data/spec/fixtures/matterhorn/create_response.xml +0 -300
  80. data/spec/fixtures/matterhorn/delete_track_response.xml +0 -2
  81. data/spec/fixtures/matterhorn/failed_response.xml +0 -4
  82. data/spec/fixtures/matterhorn/purged_response.xml +0 -342
  83. data/spec/fixtures/matterhorn/running_response.xml +0 -1
  84. data/spec/fixtures/matterhorn/stop_completed_response.xml +0 -228
  85. data/spec/fixtures/matterhorn/stop_running_response.xml +0 -339
  86. data/spec/fixtures/media_convert/endpoints.json +0 -1
  87. data/spec/fixtures/media_convert/job_canceled.json +0 -412
  88. data/spec/fixtures/media_convert/job_canceling.json +0 -1
  89. data/spec/fixtures/media_convert/job_completed.json +0 -359
  90. data/spec/fixtures/media_convert/job_completed_detail.json +0 -1
  91. data/spec/fixtures/media_convert/job_completed_detail_query.json +0 -1
  92. data/spec/fixtures/media_convert/job_completed_empty_detail.json +0 -1
  93. data/spec/fixtures/media_convert/job_created.json +0 -408
  94. data/spec/fixtures/media_convert/job_failed.json +0 -406
  95. data/spec/fixtures/media_convert/job_progressing.json +0 -414
  96. data/spec/fixtures/pass_through/cancelled-id/cancelled +0 -0
  97. data/spec/fixtures/pass_through/cancelled-id/input_metadata +0 -90
  98. data/spec/fixtures/pass_through/completed-id/completed +0 -0
  99. data/spec/fixtures/pass_through/completed-id/input_metadata +0 -102
  100. data/spec/fixtures/pass_through/completed-id/output_metadata-high +0 -90
  101. data/spec/fixtures/pass_through/completed-id/output_metadata-low +0 -90
  102. data/spec/fixtures/pass_through/completed-id/video-high.mp4 +0 -0
  103. data/spec/fixtures/pass_through/completed-id/video-low.mp4 +0 -0
  104. data/spec/fixtures/pass_through/failed-id/error.log +0 -1
  105. data/spec/fixtures/pass_through/failed-id/input_metadata +0 -90
  106. data/spec/fixtures/pass_through/running-id/input_metadata +0 -90
  107. data/spec/fixtures/zencoder/job_create.json +0 -1
  108. data/spec/fixtures/zencoder/job_details_cancelled.json +0 -1
  109. data/spec/fixtures/zencoder/job_details_completed.json +0 -1
  110. data/spec/fixtures/zencoder/job_details_create.json +0 -1
  111. data/spec/fixtures/zencoder/job_details_failed.json +0 -73
  112. data/spec/fixtures/zencoder/job_details_running.json +0 -1
  113. data/spec/fixtures/zencoder/job_progress_cancelled.json +0 -13
  114. data/spec/fixtures/zencoder/job_progress_completed.json +0 -13
  115. data/spec/fixtures/zencoder/job_progress_create.json +0 -1
  116. data/spec/fixtures/zencoder/job_progress_failed.json +0 -13
  117. data/spec/fixtures/zencoder/job_progress_running.json +0 -1
  118. data/spec/integration/elastic_transcoder_adapter_spec.rb +0 -218
  119. data/spec/integration/ffmpeg_adapter_spec.rb +0 -535
  120. data/spec/integration/matterhorn_adapter_spec.rb +0 -130
  121. data/spec/integration/media_convert_adapter_spec.rb +0 -321
  122. data/spec/integration/pass_through_adapter_spec.rb +0 -293
  123. data/spec/integration/zencoder_adapter_spec.rb +0 -391
  124. data/spec/rails_helper.rb +0 -25
  125. data/spec/routing/encode_record_controller_routing_spec.rb +0 -10
  126. data/spec/spec_helper.rb +0 -20
  127. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -16
  128. data/spec/units/callbacks_spec.rb +0 -66
  129. data/spec/units/core_spec.rb +0 -160
  130. data/spec/units/engine_adapter_spec.rb +0 -67
  131. data/spec/units/file_locator_spec.rb +0 -129
  132. data/spec/units/filename_sanitizer_spec.rb +0 -20
  133. data/spec/units/global_id_spec.rb +0 -50
  134. data/spec/units/input_spec.rb +0 -40
  135. data/spec/units/output_spec.rb +0 -42
  136. data/spec/units/persistence_spec.rb +0 -61
  137. data/spec/units/polling_job_spec.rb +0 -87
  138. data/spec/units/polling_spec.rb +0 -23
  139. data/spec/units/status_spec.rb +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8c41200059443abc28d64ef9748086b36a4a1c97537138da24bd1b5016e902d
4
- data.tar.gz: 3fec8ac243d8e7ff3c96abaa26b08c23e5c409337c2f63463f465096e29e7cba
3
+ metadata.gz: 20e6ade3d61ad1841bcc39b5fbb7b2574a193c420cd2de46ccd8870673e2a97b
4
+ data.tar.gz: daa888be0970d54530da2d1dcbc3fcb0eb4e254ba52e219e6e83c8a054c6e445
5
5
  SHA512:
6
- metadata.gz: 5cae3d56d8c068e3cb73e01b4d15d7ba99d305f6c7bd09e7de51def230d247fa3b423d8b32674cadbf66ad7845ce235399b6b53fa068ef305b65bfad1c829f85
7
- data.tar.gz: 7265200be814de1969887dd1275a8e89da3e0befe6a92542800c42119f93307f0bf7584a70dcfe8127ef11c7a7a76f5f14fab7b9a5f47ef9408cb474f64d2039
6
+ metadata.gz: ea736ead421bf6640916c675ba1b6f2529206ababccf9dd25776ba049a9eedd390171d0e2dd87c61c3fc68acdd80731cd86b8f35798435153fe6289f7c8fa8d0
7
+ data.tar.gz: 753701c6f655a8ae671d1dd4c2538a5ae2ef47abe797297e9ffdd3c810f7c995ce2949a047b721405f34b4c83c132c29981bdb7e2416ac49813e18257e20bd40
@@ -15,9 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = "https://github.com/samvera-labs/active_encode"
16
16
  spec.license = "Apache-2.0"
17
17
 
18
- spec.files = `git ls-files -z`.split("\x0")
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
20
  spec.require_paths = ["lib"]
22
21
  spec.metadata = { "rubygems_mfa_required" => "true" }
23
22
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveEncode
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_encode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein, Chris Colvard, Phuong Dinh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-10 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -298,141 +298,6 @@ files:
298
298
  - lib/active_encode/technical_metadata.rb
299
299
  - lib/active_encode/version.rb
300
300
  - lib/file_locator.rb
301
- - spec/controllers/encode_record_controller_spec.rb
302
- - spec/fixtures/"file_with_double_quote".low.mp4
303
- - spec/fixtures/"file_with_double_quote".mp4
304
- - spec/fixtures/'file_with_single_quote'.low.mp4
305
- - spec/fixtures/'file_with_single_quote'.mp4
306
- - spec/fixtures/@ወዳጅህ ማር ቢ. ሆን ጨርስ. ህ አትላሰ!@#$^^&$%&.low.mov
307
- - spec/fixtures/@ወዳጅህ ማር ቢ. ሆን ጨርስ. ህ አትላሰ!@#$^^&$%&.mov
308
- - spec/fixtures/Bars_512kb.mp4
309
- - spec/fixtures/elastic_transcoder/input_completed.json
310
- - spec/fixtures/elastic_transcoder/input_generic.json
311
- - spec/fixtures/elastic_transcoder/input_progressing.json
312
- - spec/fixtures/elastic_transcoder/job_canceled.json
313
- - spec/fixtures/elastic_transcoder/job_completed.json
314
- - spec/fixtures/elastic_transcoder/job_created.json
315
- - spec/fixtures/elastic_transcoder/job_failed.json
316
- - spec/fixtures/elastic_transcoder/job_progressing.json
317
- - spec/fixtures/elastic_transcoder/output_canceled.json
318
- - spec/fixtures/elastic_transcoder/output_completed.json
319
- - spec/fixtures/elastic_transcoder/output_failed.json
320
- - spec/fixtures/elastic_transcoder/output_progressing.json
321
- - spec/fixtures/elastic_transcoder/output_submitted.json
322
- - spec/fixtures/ffmpeg/cancelled-id/cancelled
323
- - spec/fixtures/ffmpeg/cancelled-id/error.log
324
- - spec/fixtures/ffmpeg/cancelled-id/exit_status.code
325
- - spec/fixtures/ffmpeg/cancelled-id/input_metadata
326
- - spec/fixtures/ffmpeg/cancelled-id/pid
327
- - spec/fixtures/ffmpeg/cancelled-id/progress
328
- - spec/fixtures/ffmpeg/completed-id/error.log
329
- - spec/fixtures/ffmpeg/completed-id/exit_status.code
330
- - spec/fixtures/ffmpeg/completed-id/input_metadata
331
- - spec/fixtures/ffmpeg/completed-id/output_metadata-high
332
- - spec/fixtures/ffmpeg/completed-id/output_metadata-low
333
- - spec/fixtures/ffmpeg/completed-id/pid
334
- - spec/fixtures/ffmpeg/completed-id/progress
335
- - spec/fixtures/ffmpeg/completed-id/video-high.mp4
336
- - spec/fixtures/ffmpeg/completed-id/video-low.mp4
337
- - spec/fixtures/ffmpeg/completed-with-warnings-id/error.log
338
- - spec/fixtures/ffmpeg/completed-with-warnings-id/exit_status.code
339
- - spec/fixtures/ffmpeg/completed-with-warnings-id/input_metadata
340
- - spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-high
341
- - spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-low
342
- - spec/fixtures/ffmpeg/completed-with-warnings-id/pid
343
- - spec/fixtures/ffmpeg/completed-with-warnings-id/progress
344
- - spec/fixtures/ffmpeg/completed-with-warnings-id/video-high.mp4
345
- - spec/fixtures/ffmpeg/completed-with-warnings-id/video-low.mp4
346
- - spec/fixtures/ffmpeg/failed-id/error.log
347
- - spec/fixtures/ffmpeg/failed-id/exit_status.code
348
- - spec/fixtures/ffmpeg/failed-id/input_metadata
349
- - spec/fixtures/ffmpeg/failed-id/pid
350
- - spec/fixtures/ffmpeg/failed-id/progress
351
- - spec/fixtures/ffmpeg/incomplete-id/error.log
352
- - spec/fixtures/ffmpeg/incomplete-id/exit_status.code
353
- - spec/fixtures/ffmpeg/incomplete-id/input_metadata
354
- - spec/fixtures/ffmpeg/incomplete-id/output_metadata-high
355
- - spec/fixtures/ffmpeg/incomplete-id/output_metadata-low
356
- - spec/fixtures/ffmpeg/incomplete-id/pid
357
- - spec/fixtures/ffmpeg/incomplete-id/progress
358
- - spec/fixtures/ffmpeg/incomplete-id/video-high.mp4
359
- - spec/fixtures/ffmpeg/incomplete-id/video-low.mp4
360
- - spec/fixtures/ffmpeg/running-id/error.log
361
- - spec/fixtures/ffmpeg/running-id/input_metadata
362
- - spec/fixtures/ffmpeg/running-id/pid
363
- - spec/fixtures/ffmpeg/running-id/progress
364
- - spec/fixtures/file with space.low.mp4
365
- - spec/fixtures/file with space.mp4
366
- - spec/fixtures/file.with :=+%sp3c!l-ch4cts().mp4
367
- - spec/fixtures/file.with...periods.mp4
368
- - spec/fixtures/file_without_metadata.low.webm
369
- - spec/fixtures/file_without_metadata.mp4
370
- - spec/fixtures/file_without_metadata.webm
371
- - spec/fixtures/fireworks.low.mp4
372
- - spec/fixtures/fireworks.mp4
373
- - spec/fixtures/matterhorn/cancelled_response.xml
374
- - spec/fixtures/matterhorn/completed_response.xml
375
- - spec/fixtures/matterhorn/create_response.xml
376
- - spec/fixtures/matterhorn/delete_track_response.xml
377
- - spec/fixtures/matterhorn/failed_response.xml
378
- - spec/fixtures/matterhorn/purged_response.xml
379
- - spec/fixtures/matterhorn/running_response.xml
380
- - spec/fixtures/matterhorn/stop_completed_response.xml
381
- - spec/fixtures/matterhorn/stop_running_response.xml
382
- - spec/fixtures/media_convert/endpoints.json
383
- - spec/fixtures/media_convert/job_canceled.json
384
- - spec/fixtures/media_convert/job_canceling.json
385
- - spec/fixtures/media_convert/job_completed.json
386
- - spec/fixtures/media_convert/job_completed_detail.json
387
- - spec/fixtures/media_convert/job_completed_detail_query.json
388
- - spec/fixtures/media_convert/job_completed_empty_detail.json
389
- - spec/fixtures/media_convert/job_created.json
390
- - spec/fixtures/media_convert/job_failed.json
391
- - spec/fixtures/media_convert/job_progressing.json
392
- - spec/fixtures/pass_through/cancelled-id/cancelled
393
- - spec/fixtures/pass_through/cancelled-id/input_metadata
394
- - spec/fixtures/pass_through/completed-id/completed
395
- - spec/fixtures/pass_through/completed-id/input_metadata
396
- - spec/fixtures/pass_through/completed-id/output_metadata-high
397
- - spec/fixtures/pass_through/completed-id/output_metadata-low
398
- - spec/fixtures/pass_through/completed-id/video-high.mp4
399
- - spec/fixtures/pass_through/completed-id/video-low.mp4
400
- - spec/fixtures/pass_through/failed-id/error.log
401
- - spec/fixtures/pass_through/failed-id/input_metadata
402
- - spec/fixtures/pass_through/running-id/input_metadata
403
- - spec/fixtures/zencoder/job_create.json
404
- - spec/fixtures/zencoder/job_details_cancelled.json
405
- - spec/fixtures/zencoder/job_details_completed.json
406
- - spec/fixtures/zencoder/job_details_create.json
407
- - spec/fixtures/zencoder/job_details_failed.json
408
- - spec/fixtures/zencoder/job_details_running.json
409
- - spec/fixtures/zencoder/job_progress_cancelled.json
410
- - spec/fixtures/zencoder/job_progress_completed.json
411
- - spec/fixtures/zencoder/job_progress_create.json
412
- - spec/fixtures/zencoder/job_progress_failed.json
413
- - spec/fixtures/zencoder/job_progress_running.json
414
- - spec/integration/elastic_transcoder_adapter_spec.rb
415
- - spec/integration/ffmpeg_adapter_spec.rb
416
- - spec/integration/matterhorn_adapter_spec.rb
417
- - spec/integration/media_convert_adapter_spec.rb
418
- - spec/integration/pass_through_adapter_spec.rb
419
- - spec/integration/zencoder_adapter_spec.rb
420
- - spec/rails_helper.rb
421
- - spec/routing/encode_record_controller_routing_spec.rb
422
- - spec/spec_helper.rb
423
- - spec/test_app_templates/lib/generators/test_app_generator.rb
424
- - spec/units/callbacks_spec.rb
425
- - spec/units/core_spec.rb
426
- - spec/units/engine_adapter_spec.rb
427
- - spec/units/file_locator_spec.rb
428
- - spec/units/filename_sanitizer_spec.rb
429
- - spec/units/global_id_spec.rb
430
- - spec/units/input_spec.rb
431
- - spec/units/output_spec.rb
432
- - spec/units/persistence_spec.rb
433
- - spec/units/polling_job_spec.rb
434
- - spec/units/polling_spec.rb
435
- - spec/units/status_spec.rb
436
301
  homepage: https://github.com/samvera-labs/active_encode
437
302
  licenses:
438
303
  - Apache-2.0
@@ -457,139 +322,4 @@ rubygems_version: 3.1.6
457
322
  signing_key:
458
323
  specification_version: 4
459
324
  summary: Declare encode job classes that can be run by a variety of encoding services
460
- test_files:
461
- - spec/controllers/encode_record_controller_spec.rb
462
- - spec/fixtures/"file_with_double_quote".low.mp4
463
- - spec/fixtures/"file_with_double_quote".mp4
464
- - spec/fixtures/'file_with_single_quote'.low.mp4
465
- - spec/fixtures/'file_with_single_quote'.mp4
466
- - spec/fixtures/@ወዳጅህ ማር ቢ. ሆን ጨርስ. ህ አትላሰ!@#$^^&$%&.low.mov
467
- - spec/fixtures/@ወዳጅህ ማር ቢ. ሆን ጨርስ. ህ አትላሰ!@#$^^&$%&.mov
468
- - spec/fixtures/Bars_512kb.mp4
469
- - spec/fixtures/elastic_transcoder/input_completed.json
470
- - spec/fixtures/elastic_transcoder/input_generic.json
471
- - spec/fixtures/elastic_transcoder/input_progressing.json
472
- - spec/fixtures/elastic_transcoder/job_canceled.json
473
- - spec/fixtures/elastic_transcoder/job_completed.json
474
- - spec/fixtures/elastic_transcoder/job_created.json
475
- - spec/fixtures/elastic_transcoder/job_failed.json
476
- - spec/fixtures/elastic_transcoder/job_progressing.json
477
- - spec/fixtures/elastic_transcoder/output_canceled.json
478
- - spec/fixtures/elastic_transcoder/output_completed.json
479
- - spec/fixtures/elastic_transcoder/output_failed.json
480
- - spec/fixtures/elastic_transcoder/output_progressing.json
481
- - spec/fixtures/elastic_transcoder/output_submitted.json
482
- - spec/fixtures/ffmpeg/cancelled-id/cancelled
483
- - spec/fixtures/ffmpeg/cancelled-id/error.log
484
- - spec/fixtures/ffmpeg/cancelled-id/exit_status.code
485
- - spec/fixtures/ffmpeg/cancelled-id/input_metadata
486
- - spec/fixtures/ffmpeg/cancelled-id/pid
487
- - spec/fixtures/ffmpeg/cancelled-id/progress
488
- - spec/fixtures/ffmpeg/completed-id/error.log
489
- - spec/fixtures/ffmpeg/completed-id/exit_status.code
490
- - spec/fixtures/ffmpeg/completed-id/input_metadata
491
- - spec/fixtures/ffmpeg/completed-id/output_metadata-high
492
- - spec/fixtures/ffmpeg/completed-id/output_metadata-low
493
- - spec/fixtures/ffmpeg/completed-id/pid
494
- - spec/fixtures/ffmpeg/completed-id/progress
495
- - spec/fixtures/ffmpeg/completed-id/video-high.mp4
496
- - spec/fixtures/ffmpeg/completed-id/video-low.mp4
497
- - spec/fixtures/ffmpeg/completed-with-warnings-id/error.log
498
- - spec/fixtures/ffmpeg/completed-with-warnings-id/exit_status.code
499
- - spec/fixtures/ffmpeg/completed-with-warnings-id/input_metadata
500
- - spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-high
501
- - spec/fixtures/ffmpeg/completed-with-warnings-id/output_metadata-low
502
- - spec/fixtures/ffmpeg/completed-with-warnings-id/pid
503
- - spec/fixtures/ffmpeg/completed-with-warnings-id/progress
504
- - spec/fixtures/ffmpeg/completed-with-warnings-id/video-high.mp4
505
- - spec/fixtures/ffmpeg/completed-with-warnings-id/video-low.mp4
506
- - spec/fixtures/ffmpeg/failed-id/error.log
507
- - spec/fixtures/ffmpeg/failed-id/exit_status.code
508
- - spec/fixtures/ffmpeg/failed-id/input_metadata
509
- - spec/fixtures/ffmpeg/failed-id/pid
510
- - spec/fixtures/ffmpeg/failed-id/progress
511
- - spec/fixtures/ffmpeg/incomplete-id/error.log
512
- - spec/fixtures/ffmpeg/incomplete-id/exit_status.code
513
- - spec/fixtures/ffmpeg/incomplete-id/input_metadata
514
- - spec/fixtures/ffmpeg/incomplete-id/output_metadata-high
515
- - spec/fixtures/ffmpeg/incomplete-id/output_metadata-low
516
- - spec/fixtures/ffmpeg/incomplete-id/pid
517
- - spec/fixtures/ffmpeg/incomplete-id/progress
518
- - spec/fixtures/ffmpeg/incomplete-id/video-high.mp4
519
- - spec/fixtures/ffmpeg/incomplete-id/video-low.mp4
520
- - spec/fixtures/ffmpeg/running-id/error.log
521
- - spec/fixtures/ffmpeg/running-id/input_metadata
522
- - spec/fixtures/ffmpeg/running-id/pid
523
- - spec/fixtures/ffmpeg/running-id/progress
524
- - spec/fixtures/file with space.low.mp4
525
- - spec/fixtures/file with space.mp4
526
- - spec/fixtures/file.with :=+%sp3c!l-ch4cts().mp4
527
- - spec/fixtures/file.with...periods.mp4
528
- - spec/fixtures/file_without_metadata.low.webm
529
- - spec/fixtures/file_without_metadata.mp4
530
- - spec/fixtures/file_without_metadata.webm
531
- - spec/fixtures/fireworks.low.mp4
532
- - spec/fixtures/fireworks.mp4
533
- - spec/fixtures/matterhorn/cancelled_response.xml
534
- - spec/fixtures/matterhorn/completed_response.xml
535
- - spec/fixtures/matterhorn/create_response.xml
536
- - spec/fixtures/matterhorn/delete_track_response.xml
537
- - spec/fixtures/matterhorn/failed_response.xml
538
- - spec/fixtures/matterhorn/purged_response.xml
539
- - spec/fixtures/matterhorn/running_response.xml
540
- - spec/fixtures/matterhorn/stop_completed_response.xml
541
- - spec/fixtures/matterhorn/stop_running_response.xml
542
- - spec/fixtures/media_convert/endpoints.json
543
- - spec/fixtures/media_convert/job_canceled.json
544
- - spec/fixtures/media_convert/job_canceling.json
545
- - spec/fixtures/media_convert/job_completed.json
546
- - spec/fixtures/media_convert/job_completed_detail.json
547
- - spec/fixtures/media_convert/job_completed_detail_query.json
548
- - spec/fixtures/media_convert/job_completed_empty_detail.json
549
- - spec/fixtures/media_convert/job_created.json
550
- - spec/fixtures/media_convert/job_failed.json
551
- - spec/fixtures/media_convert/job_progressing.json
552
- - spec/fixtures/pass_through/cancelled-id/cancelled
553
- - spec/fixtures/pass_through/cancelled-id/input_metadata
554
- - spec/fixtures/pass_through/completed-id/completed
555
- - spec/fixtures/pass_through/completed-id/input_metadata
556
- - spec/fixtures/pass_through/completed-id/output_metadata-high
557
- - spec/fixtures/pass_through/completed-id/output_metadata-low
558
- - spec/fixtures/pass_through/completed-id/video-high.mp4
559
- - spec/fixtures/pass_through/completed-id/video-low.mp4
560
- - spec/fixtures/pass_through/failed-id/error.log
561
- - spec/fixtures/pass_through/failed-id/input_metadata
562
- - spec/fixtures/pass_through/running-id/input_metadata
563
- - spec/fixtures/zencoder/job_create.json
564
- - spec/fixtures/zencoder/job_details_cancelled.json
565
- - spec/fixtures/zencoder/job_details_completed.json
566
- - spec/fixtures/zencoder/job_details_create.json
567
- - spec/fixtures/zencoder/job_details_failed.json
568
- - spec/fixtures/zencoder/job_details_running.json
569
- - spec/fixtures/zencoder/job_progress_cancelled.json
570
- - spec/fixtures/zencoder/job_progress_completed.json
571
- - spec/fixtures/zencoder/job_progress_create.json
572
- - spec/fixtures/zencoder/job_progress_failed.json
573
- - spec/fixtures/zencoder/job_progress_running.json
574
- - spec/integration/elastic_transcoder_adapter_spec.rb
575
- - spec/integration/ffmpeg_adapter_spec.rb
576
- - spec/integration/matterhorn_adapter_spec.rb
577
- - spec/integration/media_convert_adapter_spec.rb
578
- - spec/integration/pass_through_adapter_spec.rb
579
- - spec/integration/zencoder_adapter_spec.rb
580
- - spec/rails_helper.rb
581
- - spec/routing/encode_record_controller_routing_spec.rb
582
- - spec/spec_helper.rb
583
- - spec/test_app_templates/lib/generators/test_app_generator.rb
584
- - spec/units/callbacks_spec.rb
585
- - spec/units/core_spec.rb
586
- - spec/units/engine_adapter_spec.rb
587
- - spec/units/file_locator_spec.rb
588
- - spec/units/filename_sanitizer_spec.rb
589
- - spec/units/global_id_spec.rb
590
- - spec/units/input_spec.rb
591
- - spec/units/output_spec.rb
592
- - spec/units/persistence_spec.rb
593
- - spec/units/polling_job_spec.rb
594
- - spec/units/polling_spec.rb
595
- - spec/units/status_spec.rb
325
+ test_files: []
@@ -1,53 +0,0 @@
1
- # frozen_string_literal: true
2
- require 'rails_helper'
3
-
4
- describe ActiveEncode::EncodeRecordController, type: :controller, db_clean: true do
5
- routes { ActiveEncode::Engine.routes }
6
-
7
- let(:encode_record) { ActiveEncode::EncodeRecord.create(id: 1, global_id: "app://ActiveEncode/Encode/1", state: "running", adapter: "ffmpeg", title: "Test", raw_object: raw_object, progress: 100) }
8
- let(:raw_object) do
9
- "{\"input\":{\"url\":\"file:///Users/cjcolvar/Documents/Code/samvera/active_encode/spec/fixtures/fireworks.mp4\",\"width\":960.0,\"height\":540.0,\"frame_rate\":29.671,\"duration\":6024,\"file_size\":1629578,\"audio_codec\":\"mp4a-40-2\",\"video_codec\":\"avc1\",\"audio_bitrate\":69737,\"video_bitrate\":2092780,\"created_at\":\"2018-12-17T16:54:50.401-05:00\",\"updated_at\":\"2018-12-17T16:54:50.401-05:00\",\"id\":\"8156\"},\"options\":{},\"id\":\"35efa965-ec51-409d-9495-2ae9669adbcc\",\"output\":[{\"url\":\"file:///Users/cjcolvar/Documents/Code/samvera/active_encode/.internal_test_app/encodes/35efa965-ec51-409d-9495-2ae9669adbcc/outputs/fireworks-low.mp4\",\"label\":\"low\",\"id\":\"8156-low\",\"created_at\":\"2018-12-17T16:54:50.401-05:00\",\"updated_at\":\"2018-12-17T16:54:59.169-05:00\",\"width\":640.0,\"height\":480.0,\"frame_rate\":29.671,\"duration\":6038,\"file_size\":905987,\"audio_codec\":\"mp4a-40-2\",\"video_codec\":\"avc1\",\"audio_bitrate\":72000,\"video_bitrate\":1126859},{\"url\":\"file:///Users/cjcolvar/Documents/Code/samvera/active_encode/.internal_test_app/encodes/35efa965-ec51-409d-9495-2ae9669adbcc/outputs/fireworks-high.mp4\",\"label\":\"high\",\"id\":\"8156-high\",\"created_at\":\"2018-12-17T16:54:50.401-05:00\",\"updated_at\":\"2018-12-17T16:54:59.169-05:00\",\"width\":1280.0,\"height\":720.0,\"frame_rate\":29.671,\"duration\":6038,\"file_size\":2102027,\"audio_codec\":\"mp4a-40-2\",\"video_codec\":\"avc1\",\"audio_bitrate\":72000,\"video_bitrate\":2721866}],\"state\":\"completed\",\"errors\":[],\"created_at\":\"2018-12-17T16:54:50.401-05:00\",\"updated_at\":\"2018-12-17T16:54:59.169-05:00\",\"current_operations\":[],\"percent_complete\":100,\"global_id\":{\"uri\":\"gid://ActiveEncode/Encode/35efa965-ec51-409d-9495-2ae9669adbcc\"}}"
10
- end
11
-
12
- before do
13
- encode_record
14
- end
15
-
16
- describe 'GET show' do
17
- before do
18
- get :show, params: { id: record_id }
19
- end
20
-
21
- context 'when record exists' do
22
- let(:record_id) { 1 }
23
-
24
- it "responds with a 200 status code" do
25
- expect(response.status).to eq 200
26
- end
27
-
28
- it "responds with JSON" do
29
- expect(response.content_type).to include "application/json"
30
- end
31
-
32
- it "returns the encode record's raw json object" do
33
- expect(response.body).to eq raw_object
34
- end
35
- end
36
-
37
- context 'when record does not exist' do
38
- let(:record_id) { "non-existant" }
39
-
40
- it "responds with a 404 status code" do
41
- expect(response.status).to eq 404
42
- end
43
-
44
- it "responds with JSON" do
45
- expect(response.content_type).to include "application/json"
46
- end
47
-
48
- it "returns the encode record's raw json object" do
49
- expect(response.body).to eq "{\"message\":\"Couldn't find ActiveEncode::EncodeRecord with 'id'=#{record_id}\"}"
50
- end
51
- end
52
- end
53
- end
Binary file
@@ -1 +0,0 @@
1
- {"key":"somefile.mp4","detected_properties":{"width":1280,"height":720,"frame_rate":"25","file_size":21069678,"duration_millis":117312}}
@@ -1 +0,0 @@
1
- {"key":"somefile.mp4"}
@@ -1 +0,0 @@
1
- {"key":"somefile.mp4","detected_properties":{"width":1280,"height":720,"frame_rate":"25","file_size":21069678,"duration_millis":117312}}
@@ -1 +0,0 @@
1
- {"id":"cancelled-id","arn":"arn:aws:elastictranscoder:us-west-2:039358184980:job/1471963629141-kmcocm","pipeline_id":"1470797373927-1ukxrn","output_key_prefix":"elastic-transcoder-samples/output/hls/","playlists":[],"status":"Canceled","timing":{"submit_time_millis":1471963629189,"finish_time_millis":1471975185271}}
@@ -1 +0,0 @@
1
- {"id":"completed-id","arn":"arn:aws:elastictranscoder:us-west-2:039358184980:job/1471963629141-kmcocm","pipeline_id":"1470797373927-1ukxrn","output_key_prefix":"elastic-transcoder-samples/output/hls/","playlists":[],"status":"Complete","timing":{"submit_time_millis":1471963629189,"start_time_millis":1471975169865,"finish_time_millis":1471975185271}}
@@ -1 +0,0 @@
1
- {"id":"1471963629141-kmcocm-created","arn":"arn:aws:elastictranscoder:us-west-2:039358184980:job/1471963629141-kmcocm","pipeline_id":"1470797373927-1ukxrn","input":{"key":"somefile.mp4"},"output":{"id":"1","key":"hlsAudio/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200071","segment_duration":"2.0","status":"Submitted","watermarks":[]},"output_key_prefix":"elastic-transcoder-samples/output/hls/","playlists":[],"status":"Submitted","timing":{"submit_time_millis":1471963629189}}
@@ -1 +0,0 @@
1
- {"id":"failed-id","arn":"arn:aws:elastictranscoder:us-west-2:039358184980:job/1471963629141-kmcocm","pipeline_id":"1470797373927-1ukxrn","output_key_prefix":"elastic-transcoder-samples/output/hls/","playlists":[],"status":"Error","timing":{"submit_time_millis":1471963629189,"start_time_millis":1471975169865,"finish_time_millis":1471975185271}}
@@ -1 +0,0 @@
1
- {"id":"running-id","arn":"arn:aws:elastictranscoder:us-west-2:039358184980:job/1471963629141-kmcocm","pipeline_id":"1470797373927-1ukxrn","output_key_prefix":"elastic-transcoder-samples/output/hls/","playlists":[],"status":"Progressing","timing":{"submit_time_millis":1471963629189,"start_time_millis":1471975169865}}
@@ -1 +0,0 @@
1
- {"id":"2","key":"hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200050","segment_duration":"2.0","status":"Canceled","watermarks":[]}
@@ -1 +0,0 @@
1
- {"id":"2","key":"hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200050","segment_duration":"2.0","status":"Complete","status_detail":"The input file for this job contains 6 audio channels and the preset is configured for 2 audio channels. Amazon Elastic Transcoder audio-channel mapping may not result in the desired audio. Some individual segment files for this output have a higher bit rate than the average bit rate of the transcoded media. Playlists including this output will record a higher bit rate than the rate specified by the preset.","duration":118,"width":400,"height":224,"frame_rate":"25","file_size":6901104,"duration_millis":117353,"watermarks":[]}
@@ -1 +0,0 @@
1
- {"id":"2","key":"hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200050","segment_duration":"2.0","status":"Error","status_detail":"3002 0419623b-342f-4bde-9e3a-439477a95f2c: The specified object could not be saved in the specified bucket because an object by that name already exists: bucket=elasticbeanstalk-us-west-2-039358184980, key=elastic-transcoder-samples/output/hls/hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a00000.ts.","watermarks":[]}
@@ -1 +0,0 @@
1
- {"id":"2","key":"hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200050","segment_duration":"2.0","status":"Progressing","watermarks":[]}
@@ -1 +0,0 @@
1
- {"id":"2","key":"hls0400k/e8fe80f5b7063b12d567b90c0bdf6322116bba11ac458fe9d62921644159fe4a","preset_id":"1351620000001-200050","segment_duration":"2.0","status":"Submitted","watermarks":[]}
File without changes
File without changes
@@ -1,90 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <MediaInfo
3
- xmlns="https://mediaarea.net/mediainfo"
4
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="https://mediaarea.net/mediainfo https://mediaarea.net/mediainfo/mediainfo_2_0.xsd"
6
- version="2.0">
7
- <creatingLibrary version="18.05" url="https://mediaarea.net/MediaInfo">MediaInfoLib</creatingLibrary>
8
- <media ref="file:///Bars_512kb.mp4">
9
- <track type="General">
10
- <VideoCount>1</VideoCount>
11
- <AudioCount>1</AudioCount>
12
- <FileExtension>mp4</FileExtension>
13
- <Format>MPEG-4</Format>
14
- <Format_Profile>Base Media</Format_Profile>
15
- <CodecID>isom</CodecID>
16
- <FileSize>24876</FileSize>
17
- <Duration>4.928</Duration>
18
- <OverallBitRate_Mode>VBR</OverallBitRate_Mode>
19
- <OverallBitRate>40383</OverallBitRate>
20
- <FrameRate>1.000</FrameRate>
21
- <FrameCount>1</FrameCount>
22
- <StreamSize>3216</StreamSize>
23
- <HeaderSize>3208</HeaderSize>
24
- <DataSize>21668</DataSize>
25
- <FooterSize>0</FooterSize>
26
- <IsStreamable>Yes</IsStreamable>
27
- <Title>Bars - http://www.archive.org/details/ColorBarsWTone</Title>
28
- <Movie>Bars - http://www.archive.org/details/ColorBarsWTone</Movie>
29
- <Recorded_Date>2008</Recorded_Date>
30
- <Encoded_Date>UTC 1970-01-01 00:00:00</Encoded_Date>
31
- <Tagged_Date>UTC 2008-11-23 18:44:25</Tagged_Date>
32
- <Encoded_Application>Lavf51.10.0</Encoded_Application>
33
- <Comment>license: http://creativecommons.org/licenses/publicdomain/</Comment>
34
- </track>
35
- <track type="Video">
36
- <StreamOrder>0</StreamOrder>
37
- <ID>1</ID>
38
- <Format>AVC</Format>
39
- <Format_Profile>Baseline</Format_Profile>
40
- <Format_Level>1.3</Format_Level>
41
- <Format_Settings_CABAC>No</Format_Settings_CABAC>
42
- <Format_Settings_RefFrames>1</Format_Settings_RefFrames>
43
- <CodecID>avc1</CodecID>
44
- <Duration>1.000</Duration>
45
- <BitRate>18504</BitRate>
46
- <Width>360</Width>
47
- <Height>240</Height>
48
- <Stored_Width>368</Stored_Width>
49
- <Sampled_Width>360</Sampled_Width>
50
- <Sampled_Height>240</Sampled_Height>
51
- <PixelAspectRatio>1.000</PixelAspectRatio>
52
- <DisplayAspectRatio>1.500</DisplayAspectRatio>
53
- <Rotation>0.000</Rotation>
54
- <FrameRate_Mode>CFR</FrameRate_Mode>
55
- <FrameRate>1.000</FrameRate>
56
- <FrameRate_Original>0.200</FrameRate_Original>
57
- <FrameCount>1</FrameCount>
58
- <ColorSpace>YUV</ColorSpace>
59
- <ChromaSubsampling>4:2:0</ChromaSubsampling>
60
- <BitDepth>8</BitDepth>
61
- <ScanType>Progressive</ScanType>
62
- <StreamSize>2313</StreamSize>
63
- <Encoded_Date>UTC 1970-01-01 00:00:00</Encoded_Date>
64
- <Tagged_Date>UTC 1970-01-01 00:00:00</Tagged_Date>
65
- </track>
66
- <track type="Audio">
67
- <StreamOrder>1</StreamOrder>
68
- <ID>2</ID>
69
- <Format>AAC</Format>
70
- <Format_Profile>LC</Format_Profile>
71
- <CodecID>mp4a-40-2</CodecID>
72
- <Duration>4.928</Duration>
73
- <BitRate_Mode>VBR</BitRate_Mode>
74
- <BitRate>31407</BitRate>
75
- <Channels>2</Channels>
76
- <ChannelPositions>Front: L R</ChannelPositions>
77
- <ChannelLayout>L R</ChannelLayout>
78
- <SamplesPerFrame>1024</SamplesPerFrame>
79
- <SamplingRate>48000</SamplingRate>
80
- <SamplingCount>236544</SamplingCount>
81
- <FrameRate>46.875</FrameRate>
82
- <FrameCount>231</FrameCount>
83
- <Compression_Mode>Lossy</Compression_Mode>
84
- <StreamSize>19347</StreamSize>
85
- <StreamSize_Proportion>0.77774</StreamSize_Proportion>
86
- <Encoded_Date>UTC 1970-01-01 00:00:00</Encoded_Date>
87
- <Tagged_Date>UTC 1970-01-01 00:00:00</Tagged_Date>
88
- </track>
89
- </media>
90
- </MediaInfo>
@@ -1 +0,0 @@
1
- 99999
@@ -1,11 +0,0 @@
1
- frame=56
2
- fps=0.0
3
- stream_0_0_q=0.0
4
- bitrate= 0.1kbits/s
5
- total_size=52
6
- out_time_ms=3459773
7
- out_time=00:00:03.459773
8
- dup_frames=0
9
- drop_frames=0
10
- speed= 6.8x
11
- progress=continue
File without changes