@@ -347,47 +347,3 @@ def read_video_timestamps(filename, pts_unit="pts"):
347
347
pts = [x * video_time_base for x in pts ]
348
348
349
349
return pts , video_fps
350
-
351
-
352
- def read_video_meta_data_from_memory (video_data ):
353
- # type: (torch.Tensor) -> VideoMetaData
354
- return _video_opt ._probe_video_from_memory (video_data )
355
-
356
-
357
- def read_video_from_memory (
358
- video_data , # type: torch.Tensor
359
- seek_frame_margin = 0.25 , # type: float
360
- read_video_stream = 1 , # type: int
361
- video_width = 0 , # type: int
362
- video_height = 0 , # type: int
363
- video_min_dimension = 0 , # type: int
364
- video_pts_range = (0 , - 1 ), # type: List[int]
365
- video_timebase_numerator = 0 , # type: int
366
- video_timebase_denominator = 1 , # type: int
367
- read_audio_stream = 1 , # type: int
368
- audio_samples = 0 , # type: int
369
- audio_channels = 0 , # type: int
370
- audio_pts_range = (0 , - 1 ), # type: List[int]
371
- audio_timebase_numerator = 0 , # type: int
372
- audio_timebase_denominator = 1 , # type: int
373
- video_max_dimension = 0 , # type: int
374
- ):
375
- # type: (...) -> Tuple[torch.Tensor, torch.Tensor]
376
- return _video_opt ._read_video_from_memory (
377
- video_data ,
378
- seek_frame_margin ,
379
- read_video_stream ,
380
- video_width ,
381
- video_height ,
382
- video_min_dimension ,
383
- video_max_dimension ,
384
- video_pts_range ,
385
- video_timebase_numerator ,
386
- video_timebase_denominator ,
387
- read_audio_stream ,
388
- audio_samples ,
389
- audio_channels ,
390
- audio_pts_range ,
391
- audio_timebase_numerator ,
392
- audio_timebase_denominator ,
393
- )
0 commit comments