Implement len() for FFStream by DJStompZone · Pull Request #25 · gbstack/ffprobe-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@DJStompZone

Copy link

Implemented len() for audio and video streams

  • Falls back to 0 for valid streams missing duration data

  • Raises expected TypeError if len() is called on a stream not labelled as audio/video

  • Slight tweak to the duration_seconds docstring to reflect actual behavior

Implemented len() for audio and video streams
- Falls back to 0 for valid streams missing duration data
- Raises expected TypeError if len() is called on a stream not labelled as audio/video

- Slight tweak to the duration_seconds docstring to reflect actual behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@DJStompZone