Comments (8)
since m_raw->codecpar doesn't seem to contain valid data, while m_raw->codec has it, but the former is chosen by preprocessor directive.
Stupid FFmpeg upstream make warning on access to the m_raw->codec
Additionally I don't see code where you set the width/height/pix_fmt fields of AVStream's codec/codecpar.
For input streams it filled by FFmpeg. For output streams it filled by FFmpeg too using codec parameters (as I know). I try to check ASAP.
from avcpp.
Thanks, that would be awesome! You think the problem is with the ffmpeg version? (also see #22)
from avcpp.
I think that FFmpeg deprecate API but still use it internally in some codecs/formats and not fully migrate to new one, but annoying warning is added... It currently safe to use old API: it will be removed completely only in FFmpeg 4.
from avcpp.
I'm using libx264 in my project. Guess it should be updated to use the new API already!
api2-decode-encode-video.cpp still seem to be unworkable due to unset dimensions and probably some additional stuff I haven't found out yet. Do you need any additional info from my side?
from avcpp.
I have same problems with Stream::mediaType() method. How can I manually switch to the old ffmpeg / avcpp API? Is there any #define macros or cmake variables in cmake files?
from avcpp.
Guys, could you please check 8b8255d?
from avcpp.
codecpar->codec_type is AVMEDIA_TYPE_UNKNOWN, because avformat_new_stream func param codec not use on FFmpeg 5.0,codecpar->codec_type is avcodec_parameters_alloc() , no param on codecpar
from avcpp.
@ShikinChen, sounds like initialization sequence must be reworked completely from the AvCpp side for the new versions of the FFmpeg. Thanks a lot for this notice pointing:
/**
* Add a new stream to a media file.
*
* When demuxing, it is called by the demuxer in read_header(). If the
* flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also
* be called in read_packet().
*
* When muxing, should be called by the user before avformat_write_header().
*
* User is required to call avformat_free_context() to clean up the allocation
* by avformat_new_stream().
*
* @param s media file handle
* @param c unused, does nothing
*
* @return newly created stream or NULL on error.
*/
from avcpp.
Related Issues (20)
- `av::Rational`: define other relational operators
- Broken with FFmpeg 5.1 HOT 2
- CMake: INTERFACE_LIBRARY targets may only have whitelisted properties. HOT 2
- FFmpeg 5.1: fix channel_layout API HOT 1
- Is this project still alive? HOT 1
- Spelling Mistake in Content - "insormation" should be "information" in README HOT 1
- Broken Link in CONTRIBUTING.md - 404 Error
- `api2-decode-encode-video.cpp` example and correct stream tear-down sequence HOT 3
- Decoded frames have invalid PTS
- Copy a stream without transcoding HOT 3
- Take into account the filter size when calculating the delay HOT 1
- Memory leak (duplicate initialization) of all `CodecContext2` derived classes
- example api2-decode fail HOT 9
- Error when using code from api2-remux.cpp sample. HOT 9
- It seems that ffmpeg7.0 is not supported? HOT 4
- About GPU decoding and encoding HOT 8
- How to just use avcpp to write externally compressed data into an output stream? HOT 1
- Missing lookup for dependency Threads
- Why are all the video frames in the output marked as I-frames? HOT 1
- How to decode a buffer of h264 data?
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 avcpp.