We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to obtain frame data at ahead and behind line 446 in avio.jl
VideoIO.jl/src/avio.jl
Line 446 in e4f619a
how to output the AVFrame data ? It's contain metadata and side_data what i want to get.
The text was updated successfully, but these errors were encountered:
I know what's going on.
modification: avio.jl # 301
opts = AVDict("flags2" => "+export_mvs") ret = avcodec_open2(codec_context, codec, opts) # C_NULL
modification : avio.jl: # 449 decode()
frame = graph_input_frame(r) fret = avcodec_receive_frame(r.codec_context, frame) # 解码获取frame. if fret >= 0 sd = av_frame_get_side_data(frame, AV_FRAME_DATA_MOTION_VECTORS) if sd != C_NULL sd_1 = unsafe_load(sd) # pointer(sd.data) size_1 = sd_1.size mvs = Ptr{AVMotionVector}(sd_1.data) mvs_num = Int(size_1 ÷ sizeof(AVMotionVector)) for i in 1:mvs_num mv = unsafe_load(mvs, i) println("mv:", join((mv.source, mv.w, mv.h, mv.src_x, mv.src_y, mv.dst_x, mv.dst_y, mv.flags), ',')) end end end
Sorry, something went wrong.
No branches or pull requests
I want to obtain frame data at ahead and behind line 446 in avio.jl
VideoIO.jl/src/avio.jl
Line 446 in e4f619a
how to output the AVFrame data ? It's contain metadata and side_data what i want to get.
The text was updated successfully, but these errors were encountered: