active_encode 0.5.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +80 -0
  3. data/.rubocop.yml +9 -70
  4. data/.rubocop_todo.yml +68 -0
  5. data/Gemfile +5 -4
  6. data/README.md +69 -0
  7. data/active_encode.gemspec +12 -3
  8. data/app/controllers/active_encode/encode_record_controller.rb +1 -0
  9. data/app/jobs/active_encode/polling_job.rb +1 -1
  10. data/app/models/active_encode/encode_record.rb +1 -0
  11. data/db/migrate/20180822021048_create_active_encode_encode_records.rb +1 -0
  12. data/db/migrate/20190702153755_add_create_options_to_active_encode_encode_records.rb +6 -0
  13. data/db/migrate/20190712174821_add_progress_to_active_encode_encode_records.rb +6 -0
  14. data/lib/active_encode.rb +1 -0
  15. data/lib/active_encode/base.rb +2 -2
  16. data/lib/active_encode/callbacks.rb +1 -0
  17. data/lib/active_encode/core.rb +4 -3
  18. data/lib/active_encode/engine.rb +1 -0
  19. data/lib/active_encode/engine_adapter.rb +1 -0
  20. data/lib/active_encode/engine_adapters.rb +4 -1
  21. data/lib/active_encode/engine_adapters/elastic_transcoder_adapter.rb +31 -29
  22. data/lib/active_encode/engine_adapters/ffmpeg_adapter.rb +138 -87
  23. data/lib/active_encode/engine_adapters/matterhorn_adapter.rb +5 -4
  24. data/lib/active_encode/engine_adapters/media_convert_adapter.rb +399 -0
  25. data/lib/active_encode/engine_adapters/media_convert_output.rb +104 -0
  26. data/lib/active_encode/engine_adapters/pass_through_adapter.rb +239 -0
  27. data/lib/active_encode/engine_adapters/test_adapter.rb +5 -4
  28. data/lib/active_encode/engine_adapters/zencoder_adapter.rb +3 -2
  29. data/lib/active_encode/errors.rb +6 -0
  30. data/lib/active_encode/global_id.rb +2 -1
  31. data/lib/active_encode/input.rb +3 -2
  32. data/lib/active_encode/output.rb +3 -2
  33. data/lib/active_encode/persistence.rb +11 -5
  34. data/lib/active_encode/polling.rb +3 -2
  35. data/lib/active_encode/spec/shared_specs.rb +2 -0
  36. data/{spec/shared_specs/engine_adapter_specs.rb → lib/active_encode/spec/shared_specs/engine_adapter.rb} +37 -38
  37. data/lib/active_encode/status.rb +1 -0
  38. data/lib/active_encode/technical_metadata.rb +3 -2
  39. data/lib/active_encode/version.rb +2 -1
  40. data/lib/file_locator.rb +8 -9
  41. data/spec/controllers/encode_record_controller_spec.rb +4 -3
  42. data/spec/fixtures/ffmpeg/cancelled-id/cancelled +0 -0
  43. data/spec/fixtures/file with space.low.mp4 +0 -0
  44. data/spec/fixtures/file with space.mp4 +0 -0
  45. data/spec/fixtures/fireworks.low.mp4 +0 -0
  46. data/spec/fixtures/media_convert/endpoints.json +1 -0
  47. data/spec/fixtures/media_convert/job_canceled.json +412 -0
  48. data/spec/fixtures/media_convert/job_canceling.json +1 -0
  49. data/spec/fixtures/media_convert/job_completed.json +359 -0
  50. data/spec/fixtures/media_convert/job_completed_detail.json +1 -0
  51. data/spec/fixtures/media_convert/job_completed_detail_query.json +1 -0
  52. data/spec/fixtures/media_convert/job_completed_empty_detail.json +1 -0
  53. data/spec/fixtures/media_convert/job_created.json +408 -0
  54. data/spec/fixtures/media_convert/job_failed.json +406 -0
  55. data/spec/fixtures/media_convert/job_progressing.json +414 -0
  56. data/spec/fixtures/pass_through/cancelled-id/cancelled +0 -0
  57. data/spec/fixtures/pass_through/cancelled-id/input_metadata +90 -0
  58. data/spec/fixtures/pass_through/completed-id/completed +0 -0
  59. data/spec/fixtures/pass_through/completed-id/input_metadata +102 -0
  60. data/spec/fixtures/pass_through/completed-id/output_metadata-high +90 -0
  61. data/spec/fixtures/pass_through/completed-id/output_metadata-low +90 -0
  62. data/spec/fixtures/pass_through/completed-id/video-high.mp4 +0 -0
  63. data/spec/fixtures/pass_through/completed-id/video-low.mp4 +0 -0
  64. data/spec/fixtures/pass_through/failed-id/error.log +1 -0
  65. data/spec/fixtures/pass_through/failed-id/input_metadata +90 -0
  66. data/spec/fixtures/pass_through/running-id/input_metadata +90 -0
  67. data/spec/integration/elastic_transcoder_adapter_spec.rb +30 -30
  68. data/spec/integration/ffmpeg_adapter_spec.rb +93 -25
  69. data/spec/integration/matterhorn_adapter_spec.rb +45 -44
  70. data/spec/integration/media_convert_adapter_spec.rb +152 -0
  71. data/spec/integration/pass_through_adapter_spec.rb +151 -0
  72. data/spec/integration/zencoder_adapter_spec.rb +210 -209
  73. data/spec/rails_helper.rb +1 -0
  74. data/spec/routing/encode_record_controller_routing_spec.rb +1 -0
  75. data/spec/spec_helper.rb +2 -2
  76. data/spec/test_app_templates/lib/generators/test_app_generator.rb +13 -12
  77. data/spec/units/callbacks_spec.rb +3 -2
  78. data/spec/units/core_spec.rb +26 -25
  79. data/spec/units/engine_adapter_spec.rb +1 -0
  80. data/spec/units/file_locator_spec.rb +20 -19
  81. data/spec/units/global_id_spec.rb +12 -11
  82. data/spec/units/input_spec.rb +8 -5
  83. data/spec/units/output_spec.rb +8 -5
  84. data/spec/units/persistence_spec.rb +15 -11
  85. data/spec/units/polling_job_spec.rb +7 -6
  86. data/spec/units/polling_spec.rb +1 -0
  87. data/spec/units/status_spec.rb +3 -3
  88. metadata +158 -14
  89. data/.travis.yml +0 -19
File without changes
@@ -0,0 +1,90 @@
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>
File without changes
@@ -0,0 +1,102 @@
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="/home/pdinh/Downloads/videoshort.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>mp42</CodecID>
16
+ <FileSize>199160</FileSize>
17
+ <Duration>6.315</Duration>
18
+ <OverallBitRate_Mode>VBR</OverallBitRate_Mode>
19
+ <OverallBitRate>252301</OverallBitRate>
20
+ <FrameRate>23.719</FrameRate>
21
+ <FrameCount>149</FrameCount>
22
+ <StreamSize>5679</StreamSize>
23
+ <HeaderSize>160</HeaderSize>
24
+ <DataSize>193489</DataSize>
25
+ <FooterSize>5511</FooterSize>
26
+ <IsStreamable>No</IsStreamable>
27
+ <Encoded_Date>UTC 2010-09-23 00:37:25</Encoded_Date>
28
+ <Tagged_Date>UTC 2010-09-23 00:37:27</Tagged_Date>
29
+ <File_Modified_Date>UTC 2017-12-14 19:29:35</File_Modified_Date>
30
+ <File_Modified_Date_Local>2017-12-14 14:29:35</File_Modified_Date_Local>
31
+ <Encoded_Application>HandBrake 0.9.4 2009112300</Encoded_Application>
32
+ </track>
33
+ <track type="Video">
34
+ <StreamOrder>0</StreamOrder>
35
+ <ID>1</ID>
36
+ <Format>AVC</Format>
37
+ <Format_Profile>Main</Format_Profile>
38
+ <Format_Level>1.1</Format_Level>
39
+ <Format_Settings_CABAC>Yes</Format_Settings_CABAC>
40
+ <Format_Settings_RefFrames>2</Format_Settings_RefFrames>
41
+ <CodecID>avc1</CodecID>
42
+ <Duration>6.282</Duration>
43
+ <BitRate>74477</BitRate>
44
+ <Width>200</Width>
45
+ <Height>110</Height>
46
+ <Stored_Width>208</Stored_Width>
47
+ <Stored_Height>112</Stored_Height>
48
+ <Sampled_Width>200</Sampled_Width>
49
+ <Sampled_Height>110</Sampled_Height>
50
+ <PixelAspectRatio>1.000</PixelAspectRatio>
51
+ <DisplayAspectRatio>1.818</DisplayAspectRatio>
52
+ <Rotation>0.000</Rotation>
53
+ <FrameRate_Mode>VFR</FrameRate_Mode>
54
+ <FrameRate>23.719</FrameRate>
55
+ <FrameRate_Minimum>12.500</FrameRate_Minimum>
56
+ <FrameRate_Maximum>24.390</FrameRate_Maximum>
57
+ <FrameRate_Original>24.000</FrameRate_Original>
58
+ <FrameCount>149</FrameCount>
59
+ <ColorSpace>YUV</ColorSpace>
60
+ <ChromaSubsampling>4:2:0</ChromaSubsampling>
61
+ <BitDepth>8</BitDepth>
62
+ <ScanType>Progressive</ScanType>
63
+ <StreamSize>58482</StreamSize>
64
+ <Encoded_Library>x264 - core 79 r1347 5ddd61b</Encoded_Library>
65
+ <Encoded_Library_Name>x264</Encoded_Library_Name>
66
+ <Encoded_Library_Version>core 79 r1347 5ddd61b</Encoded_Library_Version>
67
+ <Encoded_Library_Settings>cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=3 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=0 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=25.5 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00</Encoded_Library_Settings>
68
+ <Encoded_Date>UTC 2010-09-23 00:37:25</Encoded_Date>
69
+ <Tagged_Date>UTC 2010-09-23 00:37:27</Tagged_Date>
70
+ <colour_range>Limited</colour_range>
71
+ <colour_description_present>Yes</colour_description_present>
72
+ <colour_primaries>BT.601 NTSC</colour_primaries>
73
+ <transfer_characteristics>BT.709</transfer_characteristics>
74
+ <matrix_coefficients>BT.601</matrix_coefficients>
75
+ </track>
76
+ <track type="Audio">
77
+ <StreamOrder>1</StreamOrder>
78
+ <ID>2</ID>
79
+ <Format>AAC</Format>
80
+ <Format_Profile>LC</Format_Profile>
81
+ <CodecID>mp4a-40-2</CodecID>
82
+ <Duration>6.315</Duration>
83
+ <BitRate_Mode>VBR</BitRate_Mode>
84
+ <BitRate>171030</BitRate>
85
+ <BitRate_Maximum>201736</BitRate_Maximum>
86
+ <Channels>1</Channels>
87
+ <ChannelPositions>Front: C</ChannelPositions>
88
+ <ChannelLayout>C</ChannelLayout>
89
+ <SamplesPerFrame>1024</SamplesPerFrame>
90
+ <SamplingRate>48000</SamplingRate>
91
+ <SamplingCount>303120</SamplingCount>
92
+ <FrameRate>46.875</FrameRate>
93
+ <FrameCount>296</FrameCount>
94
+ <Compression_Mode>Lossy</Compression_Mode>
95
+ <StreamSize>134999</StreamSize>
96
+ <StreamSize_Proportion>0.67784</StreamSize_Proportion>
97
+ <Title>Stereo</Title>
98
+ <Encoded_Date>UTC 2010-09-23 00:37:25</Encoded_Date>
99
+ <Tagged_Date>UTC 2010-09-23 00:37:27</Tagged_Date>
100
+ </track>
101
+ </media>
102
+ </MediaInfo>
@@ -0,0 +1,90 @@
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="spec/fixtures/ffmpeg/completed-id/low.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>125403</FileSize>
17
+ <Duration>6.336</Duration>
18
+ <OverallBitRate>158337</OverallBitRate>
19
+ <FrameRate>24.000</FrameRate>
20
+ <FrameCount>150</FrameCount>
21
+ <StreamSize>5648</StreamSize>
22
+ <HeaderSize>40</HeaderSize>
23
+ <DataSize>119763</DataSize>
24
+ <FooterSize>5600</FooterSize>
25
+ <IsStreamable>No</IsStreamable>
26
+ <File_Modified_Date>UTC 2018-09-07 17:36:26</File_Modified_Date>
27
+ <File_Modified_Date_Local>2018-09-07 13:36:26</File_Modified_Date_Local>
28
+ <Encoded_Application>Lavf58.12.100</Encoded_Application>
29
+ </track>
30
+ <track type="Video">
31
+ <StreamOrder>0</StreamOrder>
32
+ <ID>1</ID>
33
+ <Format>AVC</Format>
34
+ <Format_Profile>High</Format_Profile>
35
+ <Format_Level>1.1</Format_Level>
36
+ <Format_Settings_CABAC>Yes</Format_Settings_CABAC>
37
+ <Format_Settings_RefFrames>4</Format_Settings_RefFrames>
38
+ <CodecID>avc1</CodecID>
39
+ <Duration>6.250</Duration>
40
+ <BitRate>79302</BitRate>
41
+ <Width>200</Width>
42
+ <Height>110</Height>
43
+ <Stored_Width>208</Stored_Width>
44
+ <Stored_Height>112</Stored_Height>
45
+ <Sampled_Width>200</Sampled_Width>
46
+ <Sampled_Height>110</Sampled_Height>
47
+ <PixelAspectRatio>1.000</PixelAspectRatio>
48
+ <DisplayAspectRatio>1.818</DisplayAspectRatio>
49
+ <Rotation>0.000</Rotation>
50
+ <FrameRate_Mode>CFR</FrameRate_Mode>
51
+ <FrameRate_Mode_Original>VFR</FrameRate_Mode_Original>
52
+ <FrameRate>24.000</FrameRate>
53
+ <FrameCount>150</FrameCount>
54
+ <ColorSpace>YUV</ColorSpace>
55
+ <ChromaSubsampling>4:2:0</ChromaSubsampling>
56
+ <BitDepth>8</BitDepth>
57
+ <ScanType>Progressive</ScanType>
58
+ <StreamSize>61955</StreamSize>
59
+ <Encoded_Library>x264 - core 152 r2854 e9a5903</Encoded_Library>
60
+ <Encoded_Library_Name>x264</Encoded_Library_Name>
61
+ <Encoded_Library_Version>core 152 r2854 e9a5903</Encoded_Library_Version>
62
+ <Encoded_Library_Settings>cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00</Encoded_Library_Settings>
63
+ </track>
64
+ <track type="Audio">
65
+ <StreamOrder>1</StreamOrder>
66
+ <ID>2</ID>
67
+ <Format>AAC</Format>
68
+ <Format_Profile>LC</Format_Profile>
69
+ <Format_Settings_SBR>No (Explicit)</Format_Settings_SBR>
70
+ <CodecID>mp4a-40-2</CodecID>
71
+ <Duration>6.336</Duration>
72
+ <BitRate_Mode>CBR</BitRate_Mode>
73
+ <BitRate>72000</BitRate>
74
+ <Channels>2</Channels>
75
+ <Channels_Original>1</Channels_Original>
76
+ <ChannelPositions>Front: C</ChannelPositions>
77
+ <ChannelLayout>C</ChannelLayout>
78
+ <SamplesPerFrame>1024</SamplesPerFrame>
79
+ <SamplingRate>48000</SamplingRate>
80
+ <SamplingCount>304128</SamplingCount>
81
+ <FrameRate>46.875</FrameRate>
82
+ <FrameCount>297</FrameCount>
83
+ <Compression_Mode>Lossy</Compression_Mode>
84
+ <StreamSize>57800</StreamSize>
85
+ <StreamSize_Proportion>0.46091</StreamSize_Proportion>
86
+ <Default>Yes</Default>
87
+ <AlternateGroup>1</AlternateGroup>
88
+ </track>
89
+ </media>
90
+ </MediaInfo>
@@ -0,0 +1,90 @@
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="spec/fixtures/ffmpeg/completed-id/low.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>125403</FileSize>
17
+ <Duration>6.336</Duration>
18
+ <OverallBitRate>158337</OverallBitRate>
19
+ <FrameRate>24.000</FrameRate>
20
+ <FrameCount>150</FrameCount>
21
+ <StreamSize>5648</StreamSize>
22
+ <HeaderSize>40</HeaderSize>
23
+ <DataSize>119763</DataSize>
24
+ <FooterSize>5600</FooterSize>
25
+ <IsStreamable>No</IsStreamable>
26
+ <File_Modified_Date>UTC 2018-09-07 17:36:26</File_Modified_Date>
27
+ <File_Modified_Date_Local>2018-09-07 13:36:26</File_Modified_Date_Local>
28
+ <Encoded_Application>Lavf58.12.100</Encoded_Application>
29
+ </track>
30
+ <track type="Video">
31
+ <StreamOrder>0</StreamOrder>
32
+ <ID>1</ID>
33
+ <Format>AVC</Format>
34
+ <Format_Profile>High</Format_Profile>
35
+ <Format_Level>1.1</Format_Level>
36
+ <Format_Settings_CABAC>Yes</Format_Settings_CABAC>
37
+ <Format_Settings_RefFrames>4</Format_Settings_RefFrames>
38
+ <CodecID>avc1</CodecID>
39
+ <Duration>6.250</Duration>
40
+ <BitRate>79302</BitRate>
41
+ <Width>200</Width>
42
+ <Height>110</Height>
43
+ <Stored_Width>208</Stored_Width>
44
+ <Stored_Height>112</Stored_Height>
45
+ <Sampled_Width>200</Sampled_Width>
46
+ <Sampled_Height>110</Sampled_Height>
47
+ <PixelAspectRatio>1.000</PixelAspectRatio>
48
+ <DisplayAspectRatio>1.818</DisplayAspectRatio>
49
+ <Rotation>0.000</Rotation>
50
+ <FrameRate_Mode>CFR</FrameRate_Mode>
51
+ <FrameRate_Mode_Original>VFR</FrameRate_Mode_Original>
52
+ <FrameRate>24.000</FrameRate>
53
+ <FrameCount>150</FrameCount>
54
+ <ColorSpace>YUV</ColorSpace>
55
+ <ChromaSubsampling>4:2:0</ChromaSubsampling>
56
+ <BitDepth>8</BitDepth>
57
+ <ScanType>Progressive</ScanType>
58
+ <StreamSize>61955</StreamSize>
59
+ <Encoded_Library>x264 - core 152 r2854 e9a5903</Encoded_Library>
60
+ <Encoded_Library_Name>x264</Encoded_Library_Name>
61
+ <Encoded_Library_Version>core 152 r2854 e9a5903</Encoded_Library_Version>
62
+ <Encoded_Library_Settings>cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00</Encoded_Library_Settings>
63
+ </track>
64
+ <track type="Audio">
65
+ <StreamOrder>1</StreamOrder>
66
+ <ID>2</ID>
67
+ <Format>AAC</Format>
68
+ <Format_Profile>LC</Format_Profile>
69
+ <Format_Settings_SBR>No (Explicit)</Format_Settings_SBR>
70
+ <CodecID>mp4a-40-2</CodecID>
71
+ <Duration>6.336</Duration>
72
+ <BitRate_Mode>CBR</BitRate_Mode>
73
+ <BitRate>72000</BitRate>
74
+ <Channels>2</Channels>
75
+ <Channels_Original>1</Channels_Original>
76
+ <ChannelPositions>Front: C</ChannelPositions>
77
+ <ChannelLayout>C</ChannelLayout>
78
+ <SamplesPerFrame>1024</SamplesPerFrame>
79
+ <SamplingRate>48000</SamplingRate>
80
+ <SamplingCount>304128</SamplingCount>
81
+ <FrameRate>46.875</FrameRate>
82
+ <FrameCount>297</FrameCount>
83
+ <Compression_Mode>Lossy</Compression_Mode>
84
+ <StreamSize>57800</StreamSize>
85
+ <StreamSize_Proportion>0.46091</StreamSize_Proportion>
86
+ <Default>Yes</Default>
87
+ <AlternateGroup>1</AlternateGroup>
88
+ </track>
89
+ </media>
90
+ </MediaInfo>
@@ -0,0 +1 @@
1
+ Some error
@@ -0,0 +1,90 @@
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>