Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Some of the recorded videos are still missing for some cases - its not 99.99% still 

Open mekya opened this issue 5 years ago • 7 comments

Please provide logs and the stream Id that recording is not available.

mekya avatar Oct 12 '20 12:10 mekya

@mekya How this is going? I'm facing the same problem where sometimes my recorded videos are not uploaded to S3.

dalv0911 avatar Apr 27 '22 11:04 dalv0911

I'm having the same issue when using the load testing tool AMS provides.

Use the tool to push 45 streams for 15 minutes, then kill all the streams at once.

The server has ABR of 3 resolutions.

Expected behavior: 135 mp4 files stored in S3

Actual behavior: 96 mp4 files uploaded to S3, 39 files left in ../WebRTCAppEE/streams folder locally

Logs for one of the failed upload:

2022-07-26 17:01:55,844 [vert.x-worker-thread-3] INFO  io.antmedia.muxer.Mp4Muxer - Header is written for stream:streamTTT-7 and url:/usr/local/antmedia/webapps/WebRTCAppEE/streams/streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4.tmp_extension
2022-07-26 17:18:06,714 [vert.x-worker-thread-9] INFO  io.antmedia.muxer.Mp4Muxer - cannot write audio frame to muxer(streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4). Error is Invalid argument
2022-07-26 17:18:06,714 [vert.x-worker-thread-9] INFO  io.antmedia.muxer.Mp4Muxer - cannot write audio frame to muxer(streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4). Error is Invalid argument
2022-07-26 17:18:07,461 [vert.x-worker-thread-27] INFO  io.antmedia.muxer.Mp4Muxer - streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4 is ready
2022-07-26 17:18:07,470 [vert.x-worker-thread-27] INFO  io.antmedia.muxer.Mp4Muxer - File: /usr/local/antmedia/webapps/WebRTCAppEE/streams/streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4.tmp_extension exist: false
2022-07-26 17:18:07,470 [vert.x-worker-thread-27] INFO  io.antmedia.muxer.Mp4Muxer - Storage client is available saving streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4 to storage
2022-07-26 17:18:07,470 [vert.x-worker-thread-27] INFO  i.a.storage.AmazonS3StorageClient - streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4 upload has started with key: streams/streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4
2022-07-26 17:18:08,396 [java-sdk-progress-listener-callback-thread] ERROR i.a.storage.AmazonS3StorageClient - S3 - Error: Upload failed for streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4 with key streams/streamTTT-7-2022-07-26_17-01-52.037_720p1200kbps.mp4

AMS version: Enterprise Edition 2.4.3 20220418_2241

eshen89 avatar Jul 26 '22 21:07 eshen89

Wowww thank you so much for clear issue report @eshen89

We ll try to reproduce the problem. Which instance type do you use? What's the CPU model, how many CPU cores, RAM?

mekya avatar Jul 27 '22 05:07 mekya

@mekya I'm using a bare metal machine, here's the spec:

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               79
Model name:          Intel(R) Xeon(R) CPU E5-2697A v4 @ 2.60GHz
Stepping:            1
CPU MHz:             3600.000
CPU max MHz:         3600.0000
CPU min MHz:         1200.0000
BogoMIPS:            5188.48
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            40960K
NUMA node0 CPU(s):   0-31
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts md_clear flush_l1d
grep MemTotal /proc/meminfo
MemTotal:       131621656 kB
nvidia-smi
Wed Jul 27 10:05:28 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.48.07    Driver Version: 515.48.07    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro RTX 5000     Off  | 00000000:02:00.0 Off |                  Off |
| 33%   32C    P8     3W / 230W |      3MiB / 16384MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  Quadro RTX 5000     Off  | 00000000:03:00.0 Off |                  Off |
| 33%   33C    P8    10W / 230W |      3MiB / 16384MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

eshen89 avatar Jul 27 '22 13:07 eshen89

Perfect. You're great @eshen89 Thank you so much.

mekya avatar Jul 28 '22 08:07 mekya

Hi @eshen89 @dalv0911

I've reproduced multipart upload failure on my end and I've sent the fix. It was about a scope/memory issue.

Thank you very much for your support.

Regards, A. Oguz

mekya avatar Aug 08 '22 09:08 mekya

It's available as SNAPSHOT version https://antmedia.io/latest-snapshot/

mekya avatar Aug 09 '22 12:08 mekya

@mekya Hi, we are using AWS marketplace so we can't download it from antmedia.io Is there any way to download it? When is this fix released?

yuyuvn avatar Oct 05 '22 14:10 yuyuvn

Hi @yuyuvn,

If you ping us at [email protected], we will be glad to share it with you 🌹🌹

Best Regards, Selim

SelimEmre avatar Oct 05 '22 18:10 SelimEmre