- 
                Notifications
    
You must be signed in to change notification settings  - Fork 67
 
Add to_file_like support for VideoEncoder #958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3e97d89    to
    981a27e      
    Compare
  
    981a27e    to
    733022c      
    Compare
  
    | 
           Addressed feedback from 3e97d89: 
  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks @Dan-Flores
        
          
                test/test_ops.py
              
                Outdated
          
        
      | assert psnr(s_frame, rt_frame) > 30 | ||
| assert_close(s_frame, rt_frame, atol=atol, rtol=0) | ||
| 
               | 
          ||
| @pytest.mark.slow | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QQ was the whole test slow or is it just webm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this, I should have deleted it after adding pytest.param("webm", marks=pytest.mark.slow).
Co-authored-by: Daniel Flores <[email protected]>
This PR enables encoding a video to file_like, similar to the
AudioEncoder. TheVideoEncoderconstructor accept anAVIOContextHolderand fileformat. It is instantiated withAVIOFileLikeContext.Testing:
test_video_encoder_round_tripandtest_against_to_fileare updated to testto_file_likemethod.test_to_file_like_custom_file_object,test_to_file_like_real_file,test_to_file_like_bad_methodstests are added.