active_encode 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +26 -18
- data/.rubocop_todo.yml +3 -0
- data/active_encode.gemspec +3 -0
- data/lib/active_encode/base.rb +1 -2
- data/lib/active_encode/engine_adapters.rb +1 -0
- data/lib/active_encode/engine_adapters/elastic_transcoder_adapter.rb +5 -4
- data/lib/active_encode/engine_adapters/ffmpeg_adapter.rb +86 -30
- data/lib/active_encode/engine_adapters/pass_through_adapter.rb +239 -0
- data/lib/active_encode/errors.rb +6 -0
- data/lib/active_encode/persistence.rb +5 -3
- data/lib/active_encode/version.rb +1 -1
- data/spec/controllers/encode_record_controller_spec.rb +2 -2
- data/spec/fixtures/ffmpeg/cancelled-id/cancelled +0 -0
- data/spec/fixtures/file with space.low.mp4 +0 -0
- data/spec/fixtures/file with space.mp4 +0 -0
- data/spec/fixtures/fireworks.low.mp4 +0 -0
- data/spec/fixtures/pass_through/cancelled-id/cancelled +0 -0
- data/spec/fixtures/pass_through/cancelled-id/input_metadata +90 -0
- data/spec/fixtures/pass_through/completed-id/completed +0 -0
- data/spec/fixtures/pass_through/completed-id/input_metadata +102 -0
- data/spec/fixtures/pass_through/completed-id/output_metadata-high +90 -0
- data/spec/fixtures/pass_through/completed-id/output_metadata-low +90 -0
- data/spec/fixtures/pass_through/completed-id/video-high.mp4 +0 -0
- data/spec/fixtures/pass_through/completed-id/video-low.mp4 +0 -0
- data/spec/fixtures/pass_through/failed-id/error.log +1 -0
- data/spec/fixtures/pass_through/failed-id/input_metadata +90 -0
- data/spec/fixtures/pass_through/running-id/input_metadata +90 -0
- data/spec/integration/ffmpeg_adapter_spec.rb +66 -2
- data/spec/integration/pass_through_adapter_spec.rb +151 -0
- data/spec/shared_specs/engine_adapter_specs.rb +7 -8
- metadata +50 -2
@@ -13,7 +13,7 @@ module ActiveEncode
|
|
13
13
|
around_create do |encode, block|
|
14
14
|
create_options = encode.options
|
15
15
|
encode = block.call
|
16
|
-
persist(persistence_model_attributes(encode
|
16
|
+
persist(persistence_model_attributes(encode, create_options))
|
17
17
|
end
|
18
18
|
|
19
19
|
after_cancel do |encode|
|
@@ -32,8 +32,8 @@ module ActiveEncode
|
|
32
32
|
model.update(encode_attributes) # Don't fail if persisting doesn't succeed?
|
33
33
|
end
|
34
34
|
|
35
|
-
def persistence_model_attributes(encode)
|
36
|
-
{
|
35
|
+
def persistence_model_attributes(encode, create_options = nil)
|
36
|
+
attributes = {
|
37
37
|
global_id: encode.to_global_id.to_s,
|
38
38
|
state: encode.state,
|
39
39
|
adapter: encode.class.engine_adapter.class.name,
|
@@ -44,6 +44,8 @@ module ActiveEncode
|
|
44
44
|
raw_object: encode.to_json,
|
45
45
|
progress: encode.percent_complete
|
46
46
|
}
|
47
|
+
attributes[:create_options] = create_options.to_json if create_options.present?
|
48
|
+
attributes
|
47
49
|
end
|
48
50
|
end
|
49
51
|
end
|
@@ -26,7 +26,7 @@ describe ActiveEncode::EncodeRecordController, type: :controller, db_clean: true
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "responds with JSON" do
|
29
|
-
expect(response.content_type).to
|
29
|
+
expect(response.content_type).to include "application/json"
|
30
30
|
end
|
31
31
|
|
32
32
|
it "returns the encode record's raw json object" do
|
@@ -42,7 +42,7 @@ describe ActiveEncode::EncodeRecordController, type: :controller, db_clean: true
|
|
42
42
|
end
|
43
43
|
|
44
44
|
it "responds with JSON" do
|
45
|
-
expect(response.content_type).to
|
45
|
+
expect(response.content_type).to include "application/json"
|
46
46
|
end
|
47
47
|
|
48
48
|
it "returns the encode record's raw json object" do
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
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>
|