Skip to content

Commit 4ce3846

Browse files
authored
add ver 1.8 report
add ver 1.8 report
1 parent c973341 commit 4ce3846

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,30 @@ For more instructions, you could tap `help(mpegCoder)`.
6969

7070
## Update Report
7171

72+
### V1.8 update report:
73+
74+
1. Provide options (widthDst, heightDst) to let MpegDecoder could control the output size manually. To ensure the option is valid, we must use the method `setParameter` before 'FFmpegSetup'. Now you could use this options to get a rescaled output directly:
75+
76+
```python
77+
d = mpegCoder.MpegDecoder() # initialize
78+
d.setParameter(widthDst=400, heightDst=300) # noted that these options must be set before 'FFmpegSetup'!
79+
d.FFmpegSetup(b'i.avi') # the original video size would not influence the output
80+
print(d) # examine the parameters. You could also get the original video size by 'getParameter'
81+
d.ExtractFrame(0, 100) # get 100 frames with 400x300
82+
```
83+
84+
In another example, the set optional parameters could be inherited by encoder, too:
85+
86+
```python
87+
d.setParameter(widthDst=400, heightDst=300) # set optional parameters
88+
...
89+
e.setParameter(decoder=d) # the width/height would inherit from widthDst/heightDst rather than original width/height of the decoder.
90+
```
91+
92+
Noted that we do not provide `widthDst`/`heightDst` in `getParameter`, because these 2 options are all set by users. There is no need to get them from the video metadata.
93+
94+
2. Optimize some realization of Decoder so that its efficiency could be improved.
95+
7296
### V1.7-linux update report:
7397

7498
Thanks to God, we succeed in this work!

0 commit comments

Comments
 (0)