Comments (6)
顺便在隔壁 pr 提交了修复。
#65
from rsmpeg.
但是直接使用 ffmpeg 命令是可以的:
ffmpeg -i video.mp4 -frames:v 1 1.png
from rsmpeg.
糊了一个 telegram bot 用来设置群头像,之前用的 opencv,想用 ffmpeg 代替 opencv,糊好了发现有个文件不能生成图片,这也太惨了。
https://github.com/nanpuyue/avatar-bot
from rsmpeg.
惨,原因是当时写测试的时候没有想到超短视频。
改成这样这样就可以了。拿不到新packet的时候向解码 context 发送一下None
用以 flush,那个图片就能出来了。
from rsmpeg.
Wow,谢谢!
from rsmpeg.
Closed by #65
from rsmpeg.
Related Issues (20)
- No examples folder HOT 1
- How pass custom Input format and custom avdictionary parameter to AVFormatContextInput::open HOT 1
- 调用ffi::avdevice_register_all()报错? HOT 2
- 最新版 0.14.1编译没问题,但是当我运行时报错,win11 HOT 2
- Compilation through vcpkg HOT 1
- 运行例子报错 HOT 2
- Running Example Error HOT 2
- compile "rsmpeg-vcpkg-demo" error on windows HOT 3
- Can you provide the decoding of MP4 AVCC format? HOT 3
- May we have an example for showing how to get input device for image capturing on Mac? HOT 1
- No metadata returned while probing opus/ogg HOT 2
- Static link ffmpeg HOT 3
- Define certain types as `enum`s HOT 2
- Provide a function for `sws_getCachedContext`
- Can the AVformatContextInput::from_io_context interface add an optional AVdictionary parameter?
- Document improve: use .cargo/config.toml to set env HOT 3
- mutable `data_mut` and `linesize_mut` HOT 3
- way to get AVPixFmtDescriptor from a format number HOT 5
- 重新封装,不做解编码 HOT 8
- 请问怎么才能生成Fragmented MP4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsmpeg.