Closed tahajahangir closed 11 years ago
Missing a test case, otherwise LGTM
In think the best way to test this new feature to change MediaStreamInfo.__repr__
and also change the test_ffmpeg_probe
(not extend it). Do you agree?
@tahajahangir Yes - you can add extra assertions to test_ffmpeg_probe
, thanks!
Looks good to me, yeah please just add the tests.
Regarding testing via repr()
, it's not guaranteed that its output won't change in the future (the idea is to make it as useful as possible, but the output itsn't stable API). So while testing that repr is useful is good, I'd prefer explicit asserts for bitrate as well (in addition to updating the repr()
test if needed).
Test added (both explicit assert, and repr change)
Awesome, thanks!
Currently, sound/video bitrate is not included in probe results. (only total bitrate is included)