MobileVidFactory: Automatic Diffusion-Based Social Media Video Generation for Mobile Devices from Text

Junchen Zhu, Huan Yang, Wenjing Wang, Huiguo He, Zixi Tuo, Yongsheng Yu, Wen-Huang Cheng, Lianli Gao, Jingkuan Song, Jianlong Fu, Jiebo Luo · DOI

Introduction

The landscape of digital content consumption has undergone a seismic shift toward vertical, short-form video. Platforms like TikTok, Instagram Reels, and YouTube Shorts have redefined how users engage with media, yet the creation process for these videos remains a high-friction endeavor. Producing a compelling vertical video typically requires a diverse skill set, including cinematography, framing, video editing, audio mixing, and the integration of text overlays or voiceovers.

MobileVidFactory addresses this barrier to entry by introducing an automated, end-to-end framework that transforms simple text prompts into fully edited, vertical videos. By leveraging diffusion models and clever transfer learning techniques, the system bridges the gap between complex professional editing software and the everyday mobile user.

The MobileVidFactory Framework

The system is structured into two primary pipelines: Basic Generation, which handles the core visual and auditory components, and Customized Generation, which manages the final polish of text overlays and AI-driven dubbing.

Video Generation via Parameter-Efficient Diffusion

Rather than attempting the computationally prohibitive task of training a vertical video model from scratch, the authors adapt a pretrained image diffusion model (U-Net). The architecture is extended through two specific types of additions:

  1. Spatial Blocks: These are injected to handle the specific requirements of the vertical aspect ratio.
  2. Temporal Layers: 1D residual and transformer blocks are added to capture motion and ensure temporal consistency across frames.

A significant challenge in this domain is the scarcity of high-quality vertical training data compared to traditional horizontal video. MobileVidFactory overcomes this through a strategic training regime: the temporal layers are first pretrained on a massive dataset of horizontal videos to learn general motion dynamics. Subsequently, the majority of the network is frozen, and only the spatial blocks are fine-tuned on a smaller, curated set of vertical videos. This approach demonstrates that motion dynamics are largely transferable across aspect ratios. To ensure the final output is fluid, a frame interpolation module is applied to the generated sequences.

Decoupled Audio and Post-Production

While joint audio-visual synthesis is an active area of research, it often introduces artifacts or requires immense compute. MobileVidFactory opts for a more practical, retrieval-based approach for background music. Using a contrastive retrieval model with specialized text and audio encoders, the system searches a large database to find the top three audio tracks that best match the user's initial text prompt.

For the Customized Generation phase, the system mimics the workflow of a human editor:

  • Text Overlays: Users can specify screen text with customizable fonts, colors, and positions.
  • TTS Dubbing: The system integrates the "Bark" model for text-to-speech, supporting multiple languages and diverse voices to provide professional-sounding narration.

Key Insights and Technical Contributions

The development of MobileVidFactory offers several vital takeaways for the field of generative AI:

  • Motion Transferability: The most significant technical insight is that motion information learned from horizontal datasets can be successfully migrated to vertical generation without loss of quality. This provides a roadmap for developing specialized video models when data in a specific format is limited.
  • Practicality through Decoupling: By treating audio retrieval and video generation as separate tasks, the system achieves a level of reliability and quality that current end-to-end generative audio-visual models struggle to match.
  • Modular Creator Workflow: The architecture treats overlays and dubbing as deterministic, optional layers. This modularity allows the system to function less like a black box and more like an automated version of a standard social media editing suite.

Results and Capabilities

Qualitative evaluations of MobileVidFactory demonstrate its ability to produce high-quality vertical content with natural compositions. The system successfully highlights main subjects—such as a dog running or a sunset time-lapse—within the narrow vertical frame. Thanks to the temporal layers and interpolation, the resulting motion is smooth and coherent.

By integrating visual generation, audio retrieval, and automated editing into a single pipeline, MobileVidFactory proves the viability of "text-to-social-media" systems. While the current implementation likely relies on cloud-based processing for the heavy lifting of diffusion and interpolation, it sets the stage for a future where high-quality mobile content creation is accessible to anyone with a text prompt.

Future Directions

While the current system is a robust proof of concept, future iterations may focus on optimizing diffusion models for local execution on mobile hardware to reduce latency. Additionally, moving from audio retrieval to true generative audio synthesis—tailored specifically to the events occurring within the generated video—remains a promising frontier for the project.

Summary updated

BibTeX
@inproceedings{zhu2023mobilevidfactory,
  author = {Junchen Zhu and Huan Yang and Wenjing Wang and Huiguo He and Zixi Tuo and Yongsheng Yu and Wen-Huang Cheng and Lianli Gao and Jingkuan Song and Jianlong Fu and Jiebo Luo},
  title = {{MobileVidFactory: Automatic Diffusion-Based Social Media Video Generation for Mobile Devices from Text}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3612667},
}
Figure