{"id":17187984,"url":"https://github.com/icculus/smpeg","last_synced_at":"2025-07-02T09:03:00.368Z","repository":{"id":43371179,"uuid":"384857244","full_name":"icculus/smpeg","owner":"icculus","description":"Loki Software's MPEG decoding library.","archived":false,"fork":false,"pushed_at":"2024-05-23T15:47:09.000Z","size":1924,"stargazers_count":17,"open_issues_count":5,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-20T19:38:53.638Z","etag":null,"topics":["sdl","smpeg"],"latest_commit_sha":null,"homepage":"https://icculus.org/smpeg/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icculus.png","metadata":{"files":{"readme":"README.SDL_mixer","changelog":"CHANGES","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["icculus"],"patreon":"icculus"}},"created_at":"2021-07-11T04:10:52.000Z","updated_at":"2025-03-20T13:56:20.000Z","dependencies_parsed_at":"2025-04-13T19:09:45.990Z","dependency_job_id":"44081dc8-0287-4840-a84f-8b60762e227e","html_url":"https://github.com/icculus/smpeg","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/icculus/smpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Fsmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Fsmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Fsmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Fsmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icculus","download_url":"https://codeload.github.com/icculus/smpeg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Fsmpeg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263108689,"owners_count":23414997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sdl","smpeg"],"created_at":"2024-10-15T01:07:49.020Z","updated_at":"2025-07-02T09:03:00.351Z","avatar_url":"https://github.com/icculus.png","language":"C++","funding_links":["https://github.com/sponsors/icculus","https://patreon.com/icculus"],"categories":[],"sub_categories":[],"readme":"\nThere is no longer explicit support for the SDL_mixer library.\n\nYou can have the SDL mixer library mix audio from a movie by hooking into\nthe SDL mixer music hooks:\n\n#include \"smpeg.h\"\n#include \"SDL_mixer.h\"\n\n        .. set up the mixer audio ...\n\n        /* Note the last parameter is zero! */\n        mpeg = SMPEG_new(\"file.mpg\", \u0026info, 0);\n\n        /* Play the movie, using SDL_mixer for audio */\n        SMPEG_enableaudio(mpeg, 0);\n        if ( play_audio ) {\n                SDL_AudioSpec audiofmt;\n                Uint16 format;\n                int freq, channels;\n\n                /* Tell SMPEG what the audio format is */\n                Mix_QuerySpec(\u0026freq, \u0026format, \u0026channels);\n                audiofmt.format = format;\n                audiofmt.freq = freq;\n                audiofmt.channels = channels;\n                SMPEG_actualSpec(mpeg, \u0026audiofmt);\n\n                /* Hook in the MPEG music mixer */\n                Mix_HookMusic(SMPEG_playAudioSDL, mpeg);\n                SMPEG_enableaudio(mpeg, 1);\n        }\n        SMPEG_play(mpeg);\n\n        /* Stop the movie and unhook SMPEG from the mixer */\n        SMPEG_stop(mpeg);\n        Mix_HookMusic(NULL, NULL);\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficculus%2Fsmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficculus%2Fsmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficculus%2Fsmpeg/lists"}