{"id":18616723,"url":"https://github.com/sile/flv_codec","last_synced_at":"2025-04-11T01:32:07.111Z","repository":{"id":57631133,"uuid":"130953918","full_name":"sile/flv_codec","owner":"sile","description":"FLV encoder/decoder based on bytecodec crate","archived":false,"fork":false,"pushed_at":"2018-08-15T00:59:55.000Z","size":50,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:12:55.518Z","etag":null,"topics":["flv","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-25T05:14:03.000Z","updated_at":"2024-10-05T16:48:12.000Z","dependencies_parsed_at":"2022-09-26T20:11:40.715Z","dependency_job_id":null,"html_url":"https://github.com/sile/flv_codec","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fflv_codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fflv_codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fflv_codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Fflv_codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sile","download_url":"https://codeload.github.com/sile/flv_codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248325275,"owners_count":21084900,"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":["flv","rust"],"created_at":"2024-11-07T03:37:42.970Z","updated_at":"2025-04-11T01:32:06.735Z","avatar_url":"https://github.com/sile.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"flv_codec\n=========\n\n[![flv_codec](http://meritbadge.herokuapp.com/flv_codec)](https://crates.io/crates/flv_codec)\n[![Documentation](https://docs.rs/flv_codec/badge.svg)](https://docs.rs/flv_codec)\n[![Build Status](https://travis-ci.org/sile/flv_codec.svg?branch=master)](https://travis-ci.org/sile/flv_codec)\n[![Code Coverage](https://codecov.io/gh/sile/flv_codec/branch/master/graph/badge.svg)](https://codecov.io/gh/sile/flv_codec/branch/master)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nDecoders and encoders for [FLV] file format.\n\n[Documentation](https://docs.rs/flv_codec)\n\n\nExamples\n--------\n\n```rust\nuse bytecodec::io::IoDecodeExt;\nuse flv_codec::{FileDecoder, Header, Tag};\n\n// Reads FLV file content\nlet mut flv = \u0026include_bytes!(\"../black_silent.flv\")[..];\nlet mut decoder = FileDecoder::new();\n\n// Decodes the first FLV tag\nlet tag = decoder.decode_exact(\u0026mut flv).unwrap();\nlet header = decoder.header().cloned().unwrap();\nassert_eq!(header, Header { has_audio: true, has_video: true });\nassert_eq!(tag.timestamp().value(), 0);\nassert_eq!(tag.stream_id().value(), 0);\nmatch tag {\n    Tag::Audio(_) =\u003e println!(\"audio tag\"),\n    Tag::Video(_) =\u003e println!(\"video tag\"),\n    Tag::ScriptData(_) =\u003e println!(\"script data tag\"),\n}\n\n// Decodes the second FLV tag\nlet tag = decoder.decode_exact(\u0026mut flv).unwrap();\n```\n\nSee [examples/] directory for more examples.\n\n\nReferences\n-----------\n\n- [Video File Format Specification][FLV]\n\n[FLV]: https://wwwimages2.adobe.com/content/dam/acom/en/devnet/flv/video_file_format_spec_v10.pdf\n[examples/]: https://github.com/sile/flv_codec/tree/master/examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fflv_codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsile%2Fflv_codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Fflv_codec/lists"}