Skip to content

Audio not compatible with mobile devices (At least IOS devices) #9

@5en5e1

Description

@5en5e1

What I noticed is that if you shared the video directly to my mobile, it would not play the sound because the audio_codec needs to be set on aac ( audio_codec="aac" ) in your init.py file, this can cause confusion and would be great practice to implement that little line over there :

"video_with_text.write_videofile(
filename=output_file,
codec="libx264",
audio_codec="aac", # Ensure phone-compatible audio
fps=video.fps,
logger="bar" if print_info else None,
)
"

Other than that the code is pure gold. Congrats!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions