mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 17:56:07 +00:00
fix(rebase): rebase follow up corrections
This commit is contained in:
@@ -281,7 +281,7 @@ class VideoFrameProvider:
|
|||||||
reencode_video(
|
reencode_video(
|
||||||
src,
|
src,
|
||||||
out_path,
|
out_path,
|
||||||
camera_encoder=encoder,
|
video_encoder=encoder,
|
||||||
overwrite=True,
|
overwrite=True,
|
||||||
start_time_s=from_timestamp,
|
start_time_s=from_timestamp,
|
||||||
end_time_s=to_timestamp,
|
end_time_s=to_timestamp,
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ class TestReencodeVideo:
|
|||||||
src = TEST_ARTIFACTS_DIR / "clip_6frames.mp4"
|
src = TEST_ARTIFACTS_DIR / "clip_6frames.mp4"
|
||||||
out = tmp_path / "trim_window.mp4"
|
out = tmp_path / "trim_window.mp4"
|
||||||
cfg = VideoEncoderConfig(vcodec="h264")
|
cfg = VideoEncoderConfig(vcodec="h264")
|
||||||
reencode_video(src, out, camera_encoder=cfg, start_time_s=0.05, end_time_s=0.12, overwrite=True)
|
reencode_video(src, out, video_encoder=cfg, start_time_s=0.05, end_time_s=0.12, overwrite=True)
|
||||||
|
|
||||||
with av.open(str(out)) as container:
|
with av.open(str(out)) as container:
|
||||||
frames = list(container.decode(video=0))
|
frames = list(container.decode(video=0))
|
||||||
|
|||||||
Reference in New Issue
Block a user