camenduru / text-to-video-synthesis-colab

Text To Video Synthesis Colab
The Unlicense
1.42k stars 168 forks source link

[Google Colab] Format of output video cannot play in some contexts #6

Closed CarbonatedPastries closed 1 year ago

CarbonatedPastries commented 1 year ago

The current export_to_video function from HuggingFace encodes the output video with MPEG-4 Visual format, which doesn't play in some contexts such as Desktop Discord. (They can play in normal video players and mobile Discord.) Looking at the HuggingFace Space version, they are using imageio to export, which results in a video file with AVC format.

Could the colab be adjusted so the output format is functional in more contexts?

camenduru commented 1 year ago

thanks @CarbonatedPastries ❤please try it https://github.com/camenduru/text-to-video-synthesis-colab/commit/3cd036e26cf65c8725aa9a494f3a2e6c7bb1a9ad

Screenshot 2023-03-25 165337

CarbonatedPastries commented 1 year ago

Tested and outputs can play in Desktop Discord. Thanks!