Commit Graph

44 Commits

Author SHA1 Message Date
Martin Pulec
e80c7321e9 Libavcodec: more fine grain verbosity setting 2020-11-02 10:12:03 +01:00
Martin Pulec
24b6a27653 OPUS: set lowdelay application type 2020-09-14 09:02:57 +02:00
Martin Pulec
c58a53de4a Utilize print_libav_error 2020-09-14 09:02:57 +02:00
Martin Pulec
0ca9cb3b42 Another GCC 6 compat
Do not use C++17 if statements with initializer, use declaration with
initializer instead.
2020-09-14 09:02:56 +02:00
Martin Pulec
a376bfa2d3 GCC 6 compat
Use std::is_aggregate with feature testing macro.
2020-09-14 09:02:54 +02:00
Martin Pulec
87bd2cf368 Lavc audio: realloc codec context
Codec context needs to be realloced because avcodec_close() strips codec
specific part from the context and then eg. setting frame_duration for OPUS
fails.
2020-09-09 09:48:09 +02:00
Martin Pulec
8ea7ab09b5 Lavc aud.: print error when open fails 2020-09-09 09:14:54 +02:00
Martin Pulec
f4ac558bcf Lavc audio: frame len needs to be set before open 2020-09-09 09:11:14 +02:00
Martin Pulec
db7cc0e663 Audio frame size adjustable also for OPUS
Do not set the frame size by default (causes underruns for OPUS).
2020-09-08 16:47:05 +02:00
Martin Pulec
27a31d6e38 Opus encode: use 2.5 ms frame duration
Use 2.5 ms by default to reduce latency. Added option "opus-frame-duration"
2020-09-08 15:34:56 +02:00
Martin Pulec
773c526379 Fixed libavcodec audio encode 2020-08-28 15:10:29 +02:00
Martin Pulec
ed3e629c5d Fixed wrong audio libavcodec naming 2020-08-28 15:10:29 +02:00
Martin Pulec
7a1c2bcf7e Audio codec: use vector to hold tmp data 2020-08-28 15:10:28 +02:00
Martin Pulec
fec1603e3c Lavc audio: fixed a typo 2020-08-26 09:06:50 +02:00
Martin Pulec
355d098ad5 Lavc audio: prevent overflows
+ print encoder error string represenation
2020-08-25 17:16:01 +02:00
Martin Pulec
66dcb3a5b0 Small fix - fixed a message 2019-08-28 15:15:37 +02:00
Martin Pulec
ab9add0799 Fixed further warnings 2019-07-24 10:57:06 +02:00
Martin Pulec
315749bbe5 RTP: fix sending of RFC-compilant OPUS stream
RTP timestamp was incorrectly computed from data_len/bps which confused VLC.

+ some cleanup
2018-10-18 16:27:42 +02:00
Martin Pulec
60cab503ec Libavcodec: use new API for iterating codecs 2018-08-22 11:23:09 +02:00
Martin Pulec
84b5e18667 Libavcodec 58 compat 2018-01-02 09:57:47 +01:00
Martin Pulec
f01f8b3029 Libavcodec: variable rename in audio 2017-01-18 11:13:24 +01:00
Martin Pulec
973c008c24 Libavcodec: prefer Fraunhofer FDK Codec for AAC 2017-01-18 11:13:24 +01:00
Martin Pulec
47d1cb4014 Libavcodec: removed deprecated functions (encoder)
+ fixed leaked codec in audio
+ fixed warnings in codec listing (--audio-codec help)
2016-10-10 20:44:37 +02:00
Martin Pulec
0eb7365454 Libavcodec: fix some supposed problems 2016-06-29 10:37:00 +02:00
Martin Pulec
6ced9a57f6 Lavd: removed some deprecated functions
+ fixed leaked AVCodecContext
2016-06-29 10:36:55 +02:00
Martin Pulec
a9266d3f60 Libavcodec: do not use deprecated av_free_packet 2016-03-14 11:33:42 +01:00
Martin Pulec
a390d0ab89 Audio codec: use new module API 2015-09-02 17:01:07 +02:00
Martin Pulec
0fc4ba2942 Audio codec: choose sample rate automatically 2015-08-19 09:53:10 +02:00
Martin Pulec
899ca0b56f Audio sender: don't auto resample to 48000
+ some rework - audio_frame2 has now methods for changing bps and
resampling
2015-08-19 09:53:10 +02:00
Martin Pulec
7ca27e5d7d Libavcodec audio: support for further sample fmts
+ fixed AAC (bitrate == 0 caused malfunctioning)
2015-07-20 16:03:27 +02:00
Martin Pulec
fed097a97f Lavcd audio: removed G.726+ADPCM, added AAC+FLAC
Removed codecs seems to have some issues, not clear whether in UltraGrid
or libavcodec.
2014-11-27 18:21:51 +01:00
Martin Pulec
f210fe037e Fixed audio bps and sample_rate handling 2014-11-27 11:25:31 +01:00
Martin Pulec
2e833bd261 Libavcodec audio: suport for mp3 + fixes 2014-11-26 13:06:24 +01:00
Martin Pulec
d1711fe595 CUDA wrapper: add skeleton to translate wrapper errors to string 2014-10-16 17:50:37 +02:00
Martin Pulec
0e464e2332 Libavcodec 53 compat 2014-10-10 10:38:42 +02:00
Martin Pulec
6890cb5a5d Libavcodec: fixed float audio samples handling 2014-10-02 15:12:24 +02:00
Martin Pulec
af74d48c1c Libavcodec audio: minor improvements 2014-09-19 18:22:09 +02:00
Martin Pulec
47317acc5f Libavcodec audio decompress: change sample depth if needed 2014-09-18 12:23:51 +02:00
Martin Pulec
06d89598fa Fixed some Coverity reported errors
These Coverity errors should be fixed (mostly classified as High
Impact Outstanding by Coverity):
53922, 53923, 53935, 53938, 53945, 53963, 53974, 53976, 53978, 53979,
53980, 53981, 53982, 53988, 53990, 53991, 53993, 53994, 53995, 53998,
54000, 54002, 54004, 54008, 54010, 54013, 54016, 54018, 54020, 54022,
54024, 54025, 54027, 54028, 54030, 54031, 54032, 54033, 54034, 54035,
54036, 54038, 54039, 54041, 54043, 54047, 54048, 54050, 54053, 54054,
54055, 54056, 54062, 54064, 54065, 54067, 54071, 54072, 54074, 54075,
54076, 54081, 54087, 54088, 54089, 54091, 54093, 54096, 54097, 54103,
54104, 54106, 54109, 54111, 54112, 54114, 54117, 54119, 54120, 54121,
54125, 54126, 54129, 54130, 54132, 54133, 54136, 54137, 54140, 54145,
54146, 54149, 54150, 54151, 54153, 54154, 54156, 54157
2014-09-08 15:29:02 +02:00
Martin Pulec
79b56ad8f7 GCC 4.6 compat 2014-08-26 10:42:11 +02:00
Martin Pulec
ef733c6f9e audio_frame2: added const semantics 2014-08-21 14:01:31 +02:00
Martin Pulec
abb0cd7a20 Added rate limiter for audio but disable it
Is it really needed??
2014-08-18 12:37:19 +02:00
Martin Pulec
13b3555c0a Rewrite audio_frame2 to C++ class 2014-08-18 12:37:14 +02:00
Martin Pulec
42504a3980 Use C++ compiler for files using audio_frame2 2014-08-13 13:37:52 +02:00