Alexander Kernozhitsky
a5bd4ef6f7
Fix code style
2022-09-04 08:04:02 +04:00
Alexander Kernozhitsky
21b0454461
Remove duplicate line
...
Co-authored-by: darkkeks <darkkeks@rambler.ru>
2022-09-04 08:04:02 +04:00
Alexander Kernozhitsky
ca4b5edf21
Correct FFmpeg API usage
...
FFmpeg docs say that you must return AVERROR_EOF from the read callback, not zero. Still, Telegram just propagates the return value from IODevice::read() call, which returns zero in case of EOF.
I don't know whether this commit has any effect on the upstream build, but it fixes a bug in Debian build of Telegram, which is using FFmpeg 5.1 instead of 4.4. Still, it's also useful in the upstream, as it makes work with FFmpeg more correct.
2022-09-04 08:04:02 +04:00
John Preston
f8e22210e7
Move Webm sticker to UnwrappedMedia.
2022-08-04 13:35:34 +03:00
John Preston
91c84d63de
Force libvpx_vp9 decoder for VP9 videos.
...
Webm stickers depend on decoder support for alpha channel.
2022-01-28 19:10:07 +03:00
John Preston
846cabeda5
Premultiply YUVA alpha in FFMpegReaderImplementation.
2022-01-28 19:10:07 +03:00
John Preston
8b7d2c880e
Support rendering Webm videos with alpha.
2022-01-28 19:10:07 +03:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
John Preston
547251f67c
Fix deprecation warnings when building with FFmpeg 4.2.
2020-11-06 11:21:34 +03:00
John Preston
8b96f4c214
Move Media::Clip::Reader and FileLocation to td_ui.
2020-10-30 18:32:18 +03:00
Ilya Fedin
6e42d54632
Remove forgotten sws_scale check
...
It should been removed in 7d29f9ce17
, but was forgotten
2020-10-29 17:40:36 +03:00
John Preston
735f7709b9
Fix sending videos larger than 720p.
2020-03-29 12:42:51 +04:00
John Preston
01c79f917e
Add limits on video frame size.
...
Any video that starts streaming is limited to 4K.
Any in-chat streaming is limited to full hd.
Any GIF panel animation is limited to 720p.
2020-03-27 20:36:05 +04:00
John Preston
775d5b6dcc
Use 64 byte alignment for ffmpeg frames.
...
Fixes #7225 .
2020-02-17 16:44:08 +04:00
John Preston
f51f133832
Send packets for processing in batches.
2019-12-19 18:14:05 +03:00
John Preston
556f36ba7e
Fix transparent animated GIFs.
2019-07-04 13:12:58 +02:00
John Preston
56e137b20f
Move some common code to lib_ffmpeg.
2019-07-01 17:57:35 +02:00
John Preston
8171828c2a
Fix build on GCC.
2019-03-11 12:08:09 +04:00
John Preston
fde8dd9607
Play streaming audio in player.
2019-03-11 12:08:08 +04:00
John Preston
473e30e594
Basic code for media streaming + testing on music.
2019-03-11 11:49:21 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00