VideoSplit[video,t]
時点 t で video を分割する.
VideoSplit[video,{t1,t2,…}]
時点 tiで video を分割する.
VideoSplit
VideoSplit[video,t]
時点 t で video を分割する.
VideoSplit[video,{t1,t2,…}]
時点 tiで video を分割する.
詳細とオプション
- VideoSplitを使って動画を動画シーンのような動画の断片に分割できる.
- 時点 tiは以下のいずれでもよい.
-
t 秒で与えられる時点 Quantity[t,"unit"] 秒と互換の"unit"で与えられる時点 Quantity[t,"Frames"] フレーム数として与えられる時点 - デフォルトで,VideoSplitは新規動画を$WolframDocumentsDirectoryの"Video"ディレクトリに置く.
- 次は,使用可能なオプションである.
-
AudioEncoding Automatic 使用する音声符号化 CompressionLevel Automatic 使用する圧縮レベル GeneratedAssetFormat Automatic 結果のファイル形式 GeneratedAssetLocation $GeneratedAssetLocation 結果の場所 OverwriteTarget False 既存ファイルを上書きするかどうか SubtitleEncoding Automatic 使用する字幕符号化 VideoEncoding Automatic 使用する動画符号化 VideoTransparency False 出力動画が透明度チャンネルを持つべきかどうか
例題
すべて開く すべて閉じる例 (1)
スコープ (6)
v = Video["ExampleData/bullfinch.mkv"];
Duration[v]VideoSplit[v, 5]Duration[%]VideoSplit[Video["ExampleData/bullfinch.mkv"], -5]Duration[%]v = Video["ExampleData/bullfinch.mkv"];
Information[v, "FrameCount"]VideoSplit[Video["ExampleData/bullfinch.mkv"], Quantity[5, "Frames"]]Information[#, "FrameCount"]& /@ %v = Video["ExampleData/bullfinch.mkv"];
Information[v, "FrameCount"]VideoSplit[Video["ExampleData/bullfinch.mkv"], Quantity[-5, "Frames"]]Information[#, "FrameCount"]& /@ %VideoSplit[Video["ExampleData/bullfinch.mkv"], {2, 7}]Duration[%]有効な時間Quantityを使って分割する:
VideoSplit[Video["ExampleData/bullfinch.mkv"], Quantity[6, "Seconds"]]Duration[%]オプション (4)
CompressionLevel (1)
v = Video["ExampleData/bullfinch.mkv"];
FileSize[FindFile@Information[v, "ResourcePath"]]segments = VideoSplit[v, 4, CompressionLevel -> 0, IconizedObject[«encoding»]];
Total[FileSize[Information[#, "ResourcePath"]]& /@ segments]segments = VideoSplit[v, 4, CompressionLevel -> 1, IconizedObject[«encoding»]];
Total[FileSize[Information[#, "ResourcePath"]]& /@ segments]GeneratedAssetFormat (1)
GeneratedAssetFormatを使って生成された全セグメントの形式を変更する:
v = Video["ExampleData/rule30.mp4"];
FileFormat[Information[v, "ResourcePath"]]VideoSplit[v, 1, GeneratedAssetFormat -> "QuickTime"]FileFormat[Information[#, "ResourcePath"]]& /@ %GeneratedAssetLocation (1)
VideoEncoding (1)
v = Video["ExampleData/bullfinch.mkv"];
Import[Information[v, "ResourcePath"], "VideoEncoding"]segments = VideoSplit[v, 4, VideoEncoding -> "H264"];Import[Information[#, "ResourcePath"], "VideoEncoding"]& /@ segmentsアプリケーション (1)
特性と関係 (3)
要求された時点が動画の継続時間の先にあるなら,使用可能なデータだけが返される:
v = Video["ExampleData/bullfinch.mkv"];
Duration[v]VideoSplit[v, 50]//DurationVideoSplit[v, -50]//Durationv = Video["ExampleData/bullfinch.mkv"];
Information[v]segments = VideoSplit[v, 5];
Information[segments[[1]]]VideoSplitを使って動画をいくつかのセグメントに分割する:
v = Video["ExampleData/bullfinch.mkv"];VideoSplit[v, Quantity[7.5015, "Seconds"]]//DurationVideoTrimを使って動画をいくつかのセグメントに分割する:
VideoTrim[v, {{0, Quantity[7.5015, "Seconds"]}, {Quantity[7.5015, "Seconds"], Duration[v]}}]//Duration考えられる問題 (2)
動画符号化の性質上,セグメントの合計継続時間はもとの動画の継続時間と正確に一致しないことがある:
v = Video["ExampleData/bullfinch.mkv"];
Duration[v]Total[Duration[VideoSplit[v, 5]]]指定された分割時点が厳密なフレームの境界と一致しない場合は,同じフレームが結果のセグメントの両方に含まれることがある:
v = VideoGenerator[ImageCrop[Rasterize[Style[#, Hue[#]], ImageSize -> {50, 50}], {50, 50}, Padding -> 1]&, Quantity[5, "Frames"], FrameRate -> 5];VideoExtractFrames[#, All]& /@ VideoSplit[v, .3]分割のためにフレーム数を指定すると,一般に離散的な結果が与えられる:
VideoExtractFrames[#, All]& /@ VideoSplit[v, Quantity[2, "Frames"]]関連するガイド
-
▪
- 動画計算機能の更新履歴 ▪
- 動画編集
テキスト
Wolfram Research (2020), VideoSplit, Wolfram言語関数, https://reference.wolfram.com/language/ref/VideoSplit.html (2021年に更新).
CMS
Wolfram Language. 2020. "VideoSplit." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/VideoSplit.html.
APA
Wolfram Language. (2020). VideoSplit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoSplit.html
BibTeX
@misc{reference.wolfram_2026_videosplit, author="Wolfram Research", title="{VideoSplit}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/VideoSplit.html}", note=[Accessed: 16-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_videosplit, organization={Wolfram Research}, title={VideoSplit}, year={2021}, url={https://reference.wolfram.com/language/ref/VideoSplit.html}, note=[Accessed: 16-June-2026]}