@@ -63,11 +63,11 @@ def write_video(
6363) -> None :
6464 """
6565 Writes a 4d tensor in [T, H, W, C] format in a video file.
66- The default parameters (i.e. `fps`, `audio_fps`) return videos
67- of a fixed quality & compressing speed, and may not necessarily be suitable for all applications.
68- Since torchvision relies on `PyAV` (therefore, ultimately `FFmpeg`) to encode videos,
69- you can get more fine-grained control by referring to the other options at
70- your disposal within `the FFMpeg wiki <http://trac.ffmpeg.org/wiki#Encoding>`_.
66+
67+ This function relies on PyAV (therefore, ultimately FFmpeg) to encode
68+ videos, you can get more fine-grained control by referring to the other
69+ options at your disposal within ` the FFMpeg wiki
70+ <http://trac.ffmpeg.org/wiki#Encoding>`_.
7171
7272 Args:
7373 filename (str): path where the video will be saved
@@ -85,15 +85,15 @@ def write_video(
8585 audio_options (Dict): dictionary containing options to be passed into the PyAV audio stream.
8686 The list of options is codec-dependent and can all
8787 be found from `the FFMpeg wiki <http://trac.ffmpeg.org/wiki#Encoding>`_.
88-
88+
8989 Examples::
9090 >>> # Creating libx264 video with CRF 17, for visually lossless footage:
9191 >>>
9292 >>> from torchvision.io import write_video
9393 >>> # 1000 frames of 100x100, 3-channel image.
94- >>> vid = torch.randn(1000, 100, 100, 3, dtype = torch.uint8)
94+ >>> vid = torch.randn(1000, 100, 100, 3, dtype = torch.uint8)
9595 >>> write_video("video.mp4", options = {"crf": "17"})
96-
96+
9797 """
9898 if not torch .jit .is_scripting () and not torch .jit .is_tracing ():
9999 _log_api_usage_once (write_video )
0 commit comments