Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway to download a specific codec of video or audio? #871

Open
4 tasks done
Loyalsoldier opened this issue Jan 13, 2025 · 0 comments
Open
4 tasks done
Labels
question Further information is requested

Comments

@Loyalsoldier
Copy link

Question

Is there anyway to download a specific codec of video or audio?

Other details

I want to download 1080p mp4 video in h.264(avc) codec and mp4 audio in mp4a codec. But I don't know how to do it.

The FormatOptions cannot choose codec apparently.

export interface FormatOptions {
    /**
     * Video quality; 360p, 720p, 1080p, etc... also accepts 'best' and 'bestefficiency'.
     */
    quality?: string;
    /**
     * Download type, can be: video, audio or video+audio
     */
    type?: 'video' | 'audio' | 'video+audio';
    /**
     * Language code, defaults to 'original'.
     */
    language?: string;
    /**
     * File format, use 'any' to download any format
     */
    format?: string;
    /**
     * InnerTube client.
     */
    client?: InnerTubeClient;
}

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@Loyalsoldier Loyalsoldier added the question Further information is requested label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant