James Almer
ae0863b91d
examples/muxing: add missing header
...
Fixed compilation broken by e67e02d156
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
260dc1c5f3
examples/extract_mvs: add missing header
...
Fixed compilation broken by e67e02d156
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
James Almer
3191bb5c35
examples/demuxing_decoding: add missing header
...
Fixed compilation broken by e67e02d156
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Andreas Rheinhardt
3a5412b39e
doc/examples/extract_mvs: Explicitly free options
...
The user should not rely on all options always being recognized
(in particular not on error).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
933308a290
doc/examples/demuxing_decoding: Remove unused options
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
46dac8cf3d
avformat/avformat, utils: Make av_find_best_stream const-correct
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
626535f6a1
avcodec/codec, allcodecs: Constify the AVCodec API
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
56450a0ee4
avformat: Constify the API wrt AV(In|Out)putFormat
...
Also constify AVProbeData.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
d492b17024
doc/examples/vaapi_transcode: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
6394c7d51a
doc/examples/vaapi_encode: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
b896832b78
doc/examples/transcoding: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
16dba17329
doc/examples/transcode_aac: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
07b788c8af
doc/examples/demuxing_decoding: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
ce0f5397a8
doc/examples/transcoding: switch to the new encoding API
4 years ago
Anton Khirnov
29f33c1076
doc/examples/transcoding: stop constantly allocating AVFrames
...
Allocate just one and reuse it.
4 years ago
Jun Zhao
ef868fa4a1
examples/muxing: misc style fixes
...
misc style fixes.
Reviewed-by: Steven Liu <liuqi05@kuaishou.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years ago
Carl Eugen Hoyos
68f637b6f9
doc/examples: Always open files as "binary", not "text".
...
Fixes ticket #8638 .
4 years ago
Anton Khirnov
f30a41a608
Stop hardcoding align=32 in av_frame_get_buffer() calls.
...
Use 0, which selects the alignment automatically.
5 years ago
Anton Khirnov
d8de9d46f2
doc/examples/muxing: convert to new encoding API
5 years ago
Anton Khirnov
3bfe20389d
doc/examples/demuxing_decoding: convert to new decoding API
5 years ago
Anton Khirnov
e4edf220e5
doc/examples/demuxing_decoding: drop -refcount
...
Non-refcounted frames are deprecated and there is no good reason to use
them.
5 years ago
Anton Khirnov
15546f772c
examples/avio_dir_cmd: drop support for move/delete operations
...
They use non-public functions, which is unacceptable for a public API
example. Rename the example back to avio_list_dir.
This effectively reverts c84d208c27
and
767d780ec0
.
5 years ago
Paul B Mahol
4a51075f4d
doc/examples/muxing: fix underflow in duration of encoded streams
...
Now they are exactly 10 seconds long.
Fixes #5684 .
5 years ago
Michael Niedermayer
c80715f153
doc/examples/decode_audio: Fix "warning: ISO C90 forbids mixed declarations and code"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Steven Liu
6d1009cb9d
doc/examples/decode_video: add input file format information for usage
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years ago
Steven Liu
7c2ff06b6e
doc/examples/decode_audio: print message about how to play the output file
...
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
5 years ago
Jun Zhao
e512d893bf
examples/encode_video: only add sequence end code for mpeg1/2 video
...
Only add sequence end code for mpeg1/mpeg2 video, or else use the encoder
libx264 or libx265 in this sample, decoding the output file will get
unknow NALU type error.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
5 years ago
Jun Zhao
a087764847
examples/avio_reading: Use avio_context_free() to free AVIOContext
...
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
6 years ago
Jun Zhao
7c1875143d
doc/examples/metadata: fix the example can't dump FLV metadata
...
fix the example can't dump FLV metadata.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
6 years ago
Diego Biurrun
7e5bde93a1
build: Rename OBJDIRS variable to OUTDIRS
...
These directories are not just for object files.
6 years ago
Michael Niedermayer
c02ff77681
doc/examples/vaapi_transcode: Fix the typo
...
Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Michael Bunk
a82e4fb8c6
examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADER
...
AV_CODEC_FLAG_GLOBAL_HEADER should be set before calling avcodec_open2() to have any effect.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Jun Zhao
d6915d0d45
doc/examples/vaapi_transcode: re-licensed to MIT-license.
...
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Jun Zhao
5f090727ad
doc/examples/vaapi_encode: re-licensed to MIT-license.
...
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Jun Zhao
00286673d9
doc/examples/hw_decode: re-licensed to MIT-license.
...
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
6 years ago
Zhao Zhili
d0b5952325
doc/examples: add missing ignore files
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Zhao Zhili
f24b2e64b0
examples/filtering_video: fix memory leak
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Zhao Zhili
c0a845f948
examples/filtering_video: add missing headers
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Zhao Zhili
84d4af4ea8
examples/filtering_video: drop an always true condition
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Jun Zhao
f97fa89925
doc/examples/filtering_audio: Remove setting deprecated refcounted_frames
...
When use new decode APIs(avcodec_send_packet/avcodec_receive_frame),
don't need to setting the deprecated field refcounted_frames.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
7 years ago
Jun Zhao
0c28a5cf0f
doc/examples/filtering_video: Remove setting deprecated refcounted_frames
...
When use new decode APIs(avcodec_send_packet/avcodec_receive_frame),
don't need to setting the deprecated field refcounted_frames.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
7 years ago
Jun Zhao
c6d8492cff
doc/examples/hw_decode: Remove setting deprecated refcounted_frames
...
When use new decode APIs(avcodec_send_packet/avcodec_receive_frame),
don't need to setting the deprecated field refcounted_frames.
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
7 years ago
Josh de Kock
89029bd2c7
lav*,tests: remove several register_all calls
...
avdevice_register_all() is still required to register devices into
lavf (this is required due to lavd being somewhat of a hack).
Signed-off-by: Josh de Kock <josh@itanimul.li>
7 years ago
Michael Niedermayer
b3e9f3f5f5
doc/examples/hw_decode: Remove logically dead code in decode_write()
...
Fixes CID1415951
Reviewed-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Michael Niedermayer
49a0b3f6bc
doc/examples/hw_decode: Remove useless NULL check
...
Reviewed-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
Andreas Unterweger
0711d14299
examples: Use new API for transcoding example
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years ago
Mark Thompson
10bcc41bb4
examples: Don't call deprecated functions which don't do anything
7 years ago
Jun Zhao
0519e66a90
examples: Add a VA-API transcode example.
...
Usage is:
./vaapi_transcode input_stream codec output_stream
For example:
- ./vaapi_transcode input.mp4 h264_vaapi output_h264.mp4
- ./vaapi_transcode input.mp4 vp8_vaapi output_vp8.ivf
Does not handle resolution changes on the input stream.
Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
7 years ago
Marton Balint
25a2d269bd
fftools, tools, examples: migrate to AVFormatContext->url
...
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years ago
Jun Zhao
9b955eece6
examples/vaapi_encode: Remove redundancy check when free context.
...
avcodec_free_context have handle NULL pointer case, so caller doesn't
need to check the NULL before call this function.
Signe-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago