Urgent: Playing 1080p mp4 is extremely low quality ($200 bounty)
I am playing a 1080p mp4 from call center as a hold screen, I can see the video but it is extremely low quality. I am willing to pay someone $250 (via Paypal) to help me get FreeSWITCH to send 1080x1920 to the user. This line is the most frustrating "[NOTICE] switch_vpx.c:599 VPX encoder reset (WxH/BW) from 352x288/8192 to 162x288/8192". EXECUTE [depth=0] sofia/internal/2000018@troc.vocinity.com callcenter( TestQueue@troc.vocinity.com) 2020-07-29 07:55:12.298445 [DEBUG] sofia.c:7325 Channel sofia/internal/ 2000018@troc.vocinity.com entering state [early][183] 2020-07-29 07:55:12.298445 [DEBUG] switch_core_media.c:8643 Audio params are unchanged for sofia/internal/2000018@troc.vocinity.com. 2020-07-29 07:55:12.298445 [DEBUG] switch_core_media.c:9357 Video params are unchanged for sofia/internal/2000018@troc.vocinity.com. 2020-07-29 07:55:12.298445 [DEBUG] mod_sofia.c:898 Local SDP sofia/internal/ 2000018@troc.vocinity.com: v=0 o=FreeSWITCH 1596005096 1596005098 IN IP4 204.89.189.50 s=FreeSWITCH c=IN IP4 204.89.189.50 t=0 0 a=msid-semantic: WMS sfwZxyz3xEII7UpnpGhdDKvxn4JP49on m=audio 18616 UDP/TLS/RTP/SAVPF 0 126 13 a=rtpmap:0 PCMU/8000 a=rtpmap:126 telephone-event/8000 a=rtpmap:13 CN/8000 a=ptime:20 a=sendrecv a=fingerprint:sha-256 47:F7:B5:FC:22:42:87:FB:30:00:7F:66:8F:AB:AF:3D:22:27:95:74:1A:16:10:A6:A0:40:45:68:6D:A0:E7:FF a=setup:active a=rtcp-mux a=rtcp:18616 IN IP4 204.89.189.50 a=ice-ufrag:Ro8lZtIcoiSjh6wn a=ice-pwd:HzQG1c3Y7YSN9ZIQdG130A6e a=candidate:0467246093 1 udp 659136 204.89.189.50 18616 typ host generation 0 a=end-of-candidates a=ssrc:3743799656 cname:fKdD9Cww6453Plh5 a=ssrc:3743799656 msid:sfwZxyz3xEII7UpnpGhdDKvxn4JP49on a0 a=ssrc:3743799656 mslabel:sfwZxyz3xEII7UpnpGhdDKvxn4JP49on a=ssrc:3743799656 label:sfwZxyz3xEII7UpnpGhdDKvxn4JP49ona0 m=video 30354 UDP/TLS/RTP/SAVPF 96 b=AS:8192 a=rtpmap:96 VP8/90000 a=sendrecv a=fingerprint:sha-256 47:F7:B5:FC:22:42:87:FB:30:00:7F:66:8F:AB:AF:3D:22:27:95:74:1A:16:10:A6:A0:40:45:68:6D:A0:E7:FF a=setup:active a=rtcp-mux a=rtcp:30354 IN IP4 204.89.189.50 a=rtcp-fb:96 ccm fir a=rtcp-fb:96 nack a=rtcp-fb:96 nack pli a=ssrc:2945809184 cname:fKdD9Cww6453Plh5 a=ssrc:2945809184 msid:sfwZxyz3xEII7UpnpGhdDKvxn4JP49on v0 a=ssrc:2945809184 mslabel:sfwZxyz3xEII7UpnpGhdDKvxn4JP49on a=ssrc:2945809184 label:sfwZxyz3xEII7UpnpGhdDKvxn4JP49onv0 a=ice-ufrag:nlz4inH7NCV1Ru2t a=ice-pwd:O9lRfYzgnpIcvAdIMCCVQaSt a=candidate:6583318927 1 udp 659136 204.89.189.50 30354 typ host generation 0 a=end-of-candidates 2020-07-29 07:55:12.338384 [DEBUG] sofia.c:7325 Channel sofia/internal/ 2000018@troc.vocinity.com entering state [completed][200] 2020-07-29 07:55:12.358384 [INFO] switch_vpx.c:564 config: vp8 2020-07-29 07:55:12.358384 [INFO] switch_vpx.c:77 name = vp8 decoder.threads = 4 lossless = 0 cpuused = -6 token_parts = 3 static_thresh = 100 noise_sensitivity = 1 max_intra_bitrate_pct = 0 tune_content = 0 g_usage = 0 g_threads = 1 g_profile = 2 g_w = 320 g_h = 240 g_bit_depth = 8 g_input_bit_depth = 8 g_timebase.num = 1 g_timebase.den = 1000 g_error_resilient = 2 g_pass = 0 g_lag_in_frames = 0 rc_dropframe_thresh = 0 rc_resize_allowed = 0 rc_scaled_width = 0 rc_scaled_height = 0 rc_resize_up_thresh = 60 rc_resize_down_thresh = 30 rc_end_usage = 0 rc_target_bitrate = 8192 rc_min_quantizer = 4 rc_max_quantizer = 5 rc_undershoot_pct = 100 rc_overshoot_pct = 50 rc_buf_sz = 5000 rc_buf_initial_sz = 1000 rc_buf_optimal_sz = 1000 rc_2pass_vbr_bias_pct = 50 rc_2pass_vbr_minsection_pct = 0 rc_2pass_vbr_maxsection_pct = 400 kf_mode = 1 kf_min_dist = 0 kf_max_dist = 360 ss_number_layers = 1 ts_number_layers = 1 ts_periodicity = 0 temporal_layering_mode = 0 2020-07-29 07:55:12.358384 [NOTICE] switch_vpx.c:599 VPX encoder reset (WxH/BW) from 0x0/0 to 352x288/8192 2020-07-29 07:55:12.358384 [INFO] switch_vpx.c:630 VPX encoder WebM Project VP8 Encoder v1.8.1 settings: 2020-07-29 07:55:12.358384 [INFO] switch_vpx.c:77 name = vp8 decoder.threads = 4 lossless = 0 cpuused = -6 token_parts = 3 static_thresh = 100 noise_sensitivity = 1 max_intra_bitrate_pct = 0 tune_content = 0 g_usage = 0 g_threads = 1 g_profile = 2 g_w = 352 g_h = 288 g_bit_depth = 8 g_input_bit_depth = 8 g_timebase.num = 1 g_timebase.den = 1000 g_error_resilient = 2 g_pass = 0 g_lag_in_frames = 0 rc_dropframe_thresh = 0 rc_resize_allowed = 0 rc_scaled_width = 0 rc_scaled_height = 0 rc_resize_up_thresh = 60 rc_resize_down_thresh = 30 rc_end_usage = 0 rc_target_bitrate = 8192 rc_min_quantizer = 4 rc_max_quantizer = 5 rc_undershoot_pct = 100 rc_overshoot_pct = 50 rc_buf_sz = 5000 rc_buf_initial_sz = 1000 rc_buf_optimal_sz = 1000 rc_2pass_vbr_bias_pct = 50 rc_2pass_vbr_minsection_pct = 0 rc_2pass_vbr_maxsection_pct = 400 kf_mode = 1 kf_min_dist = 0 kf_max_dist = 360 ss_number_layers = 1 ts_number_layers = 1 ts_periodicity = 0 temporal_layering_mode = 0 2020-07-29 07:55:12.398397 [DEBUG] sofia.c:7325 Channel sofia/internal/ 2000018@troc.vocinity.com entering state [ready][200] 2020-07-29 07:55:12.418390 [INFO] switch_rtp.c:3278 Changing audio DTLS state from HANDSHAKE to SETUP 2020-07-29 07:55:12.418390 [INFO] switch_rtp.c:3278 Changing video DTLS state from HANDSHAKE to SETUP 2020-07-29 07:55:12.438425 [INFO] switch_rtp.c:3185 audio Fingerprint Verified. 2020-07-29 07:55:12.438425 [INFO] switch_rtp.c:4217 Activating audio Secure RTP SEND 2020-07-29 07:55:12.438425 [INFO] switch_rtp.c:4195 Activating audio Secure RTP RECV 2020-07-29 07:55:12.438425 [INFO] switch_rtp.c:3227 Changing audio DTLS state from SETUP to READY 2020-07-29 07:55:12.438425 [DEBUG] switch_core_sqldb.c:2836 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2020-07-29 07:55:12.438425 [DEBUG] switch_core_sqldb.c:2836 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2020-07-29 07:55:12.438425 [NOTICE] mod_callcenter.c:3020 Channel [sofia/internal/2000018@troc.vocinity.com] has been answered 2020-07-29 07:55:12.438425 [DEBUG] switch_channel.c:3865 (sofia/internal/ 2000018@troc.vocinity.com) Callstate Change EARLY -> ACTIVE 2020-07-29 07:55:12.438425 [DEBUG] mod_callcenter.c:3111 Member Nathan <2000018> joining queue TestQueue@troc.vocinity.com 2020-07-29 07:55:12.438425 [DEBUG] mod_callcenter.c:3375 Queue has 1 waiting calls. 2020-07-29 07:55:12.438425 [DEBUG] avformat.c:1665 sample rate: 8000, channels: 1 2020-07-29 07:55:12.438425 [INFO] avformat.c:1121 file /media/TestQueue.mp4 is seekable Reinit context to 1088x1920, pix_fmt: yuv420p 2020-07-29 07:55:12.458387 [INFO] switch_rtp.c:3185 video Fingerprint Verified. 2020-07-29 07:55:12.458387 [INFO] switch_rtp.c:4217 Activating video Secure RTP SEND 2020-07-29 07:55:12.458387 [INFO] switch_rtp.c:4195 Activating video Secure RTP RECV 2020-07-29 07:55:12.458387 [DEBUG] switch_core_sqldb.c:2836 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 2020-07-29 07:55:12.458387 [INFO] switch_rtp.c:3227 Changing video DTLS state from SETUP to READY 2020-07-29 07:55:12.458387 [DEBUG] switch_core_sqldb.c:2836 Secure Type: srtp:dtls:AES_CM_128_HMAC_SHA1_80 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/TestQueue.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2020-07-21T20:33:28.000000Z Duration: 00:00:10.00 , start: 0.000000 , bitrate: 9022 kb/s Stream #0:0 (eng) : Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1080x1920, 8860 kb/s , 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2020-07-21T20:33:28.000000Z handler_name : Mainconcept Video Media Handler encoder : AVC Coding 2020-07-29 07:55:12.458387 [DEBUG] avformat.c:1285 Opening file in mode: I420 2020-07-29 07:55:12.458387 [DEBUG] switch_ivr_play_say.c:1488 Codec Activated L16@8000hz 1 channels 20ms Reinit context to 1088x1920, pix_fmt: yuv420p 2020-07-29 07:55:12.478382 [DEBUG] switch_rtp.c:1917 rtcp_stats_init: audio ssrc[4273147276] base_seq[23587] 2020-07-29 07:55:12.478382 [DEBUG] switch_rtp.c:1917 rtcp_stats_init: video ssrc[495870452] base_seq[31728] 2020-07-29 07:55:12.498382 [INFO] avformat.c:2447 start: 0 ticks: 1 ticks_per_frame: 2 st num:1 st den:30000 codec num:1 codec den:60 start: 0, duration:300000 nb_frames:300 q2d:0.000033 2020-07-29 07:55:12.498382 [DEBUG] avformat.c:2478 set start time: 1596023712499389 now: 1596023712499389 pts: 0 2020-07-29 07:55:12.498382 [INFO] switch_vpx.c:564 config: vp8 2020-07-29 07:55:12.498382 [INFO] switch_vpx.c:77 name = vp8 decoder.threads = 4 lossless = 0 cpuused = -6 token_parts = 3 static_thresh = 100 noise_sensitivity = 1 max_intra_bitrate_pct = 0 tune_content = 0 g_usage = 0 g_threads = 1 g_profile = 2 g_w = 320 g_h = 240 g_bit_depth = 8 g_input_bit_depth = 8 g_timebase.num = 1 g_timebase.den = 1000 g_error_resilient = 2 g_pass = 0 g_lag_in_frames = 0 rc_dropframe_thresh = 0 rc_resize_allowed = 0 rc_scaled_width = 0 rc_scaled_height = 0 rc_resize_up_thresh = 60 rc_resize_down_thresh = 30 rc_end_usage = 0 rc_target_bitrate = 8192 rc_min_quantizer = 4 rc_max_quantizer = 5 rc_undershoot_pct = 100 rc_overshoot_pct = 50 rc_buf_sz = 5000 rc_buf_initial_sz = 1000 rc_buf_optimal_sz = 1000 rc_2pass_vbr_bias_pct = 50 rc_2pass_vbr_minsection_pct = 0 rc_2pass_vbr_maxsection_pct = 400 kf_mode = 1 kf_min_dist = 0 kf_max_dist = 360 ss_number_layers = 1 ts_number_layers = 1 ts_periodicity = 0 temporal_layering_mode = 0 2020-07-29 07:55:12.498382 [NOTICE] switch_vpx.c:599 VPX encoder reset (WxH/BW) from 352x288/8192 to 162x288/8192 2020-07-29 07:55:12.498382 [INFO] switch_vpx.c:630 VPX encoder WebM Project VP8 Encoder v1.8.1 settings: 2020-07-29 07:55:12.498382 [INFO] switch_vpx.c:77 name = vp8 decoder.threads = 4 lossless = 0 cpuused = -6 token_parts = 3 static_thresh = 100 noise_sensitivity = 1 max_intra_bitrate_pct = 0 tune_content = 0 g_usage = 0 g_threads = 1 g_profile = 2 g_w = 162 g_h = 288 g_bit_depth = 8 g_input_bit_depth = 8 g_timebase.num = 1 g_timebase.den = 1000 g_error_resilient = 2 g_pass = 0 g_lag_in_frames = 0 rc_dropframe_thresh = 0 rc_resize_allowed = 0 rc_scaled_width = 0 rc_scaled_height = 0 rc_resize_up_thresh = 60 rc_resize_down_thresh = 30 rc_end_usage = 0 rc_target_bitrate = 8192 rc_min_quantizer = 4 rc_max_quantizer = 5 rc_undershoot_pct = 100 rc_overshoot_pct = 50 rc_buf_sz = 5000 rc_buf_initial_sz = 1000 rc_buf_optimal_sz = 1000 rc_2pass_vbr_bias_pct = 50 rc_2pass_vbr_minsection_pct = 0 rc_2pass_vbr_maxsection_pct = 400 kf_mode = 1 kf_min_dist = 0 kf_max_dist = 360 ss_number_layers = 1 ts_number_layers = 1 ts_periodicity = 0 temporal_layering_mode = 0 2020-07-29 07:55:13.158389 [DEBUG] sofia_reg.c:1790 Send challenge for [ 1000001@troc.vocinity.com] 2020-07-29 07:55:13.298395 [DEBUG] sofia_reg.c:2036 Register: From: [1000001@troc.vocinity.com] Contact: ["" <sip:11pf05j2@drndj14adnpb.invalid ;transport=ws;received=92.81.71.145:58256 ;fs_nat=yes;fs_path=sip%3A11pf05j2%4092.81.71.145%3A58256%3Btransport%3Dwss>] Expires: [60] 2020-07-29 07:55:14.358394 [DEBUG] sofia_reg.c:1790 Send challenge for [ 1000011@troc.vocinity.com] 2020-07-29 07:55:14.418386 [DEBUG] sofia_reg.c:2036 Register: From: [1000011@troc.vocinity.com] Contact: ["" <sip:6qv4rufa@5n9mpj2dfbac.invalid ;transport=ws;received=66.24.107.9:57917 ;fs_nat=yes;fs_path=sip%3A6qv4rufa%4066.24.107.9%3A57917%3Btransport%3Dwss>] Expires: [60] 2020-07-29 07:55:16.398389 [NOTICE] sofia.c:1089 Hangup sofia/internal/ 2000018@troc.vocinity.com [CS_EXECUTE] [NORMAL_CLEARING] 2020-07-29 07:55:16.398389 [DEBUG] switch_ivr_play_say.c:1933 done playing file /media/TestQueue.mp4 2020-07-29 07:55:16.398389 [DEBUG] switch_core_media.c:7595 sofia/internal/ 2000018@troc.vocinity.com Video thread ended 2020-07-29 07:55:16.438391 [DEBUG] switch_core_media.c:7032 sofia/internal/ 2000018@troc.vocinity.com skip receive message [VIDEO_REFRESH_REQ] (channel is hungup already) 2020-07-29 07:55:16.458374 [DEBUG] sofia_reg.c:1790 Send challenge for [ 1000011@troc.vocinity.com] 2020-07-29 07:55:16.518392 [DEBUG] sofia_reg.c:2036 Register: From: [1000011@troc.vocinity.com] Contact: ["" <sip:6qv4rufa@5n9mpj2dfbac.invalid ;transport=ws;received=66.24.107.9:57917 ;fs_nat=yes;fs_path=sip%3A6qv4rufa%4066.24.107.9%3A57917%3Btransport%3Dwss>] Expires: [60] Statistics: 5615046 bytes read, 1 seeks 2020-07-29 07:55:16.878398 [DEBUG] mod_callcenter.c:3241 Member Nathan <2000018> abandoned waiting in queue TestQueue@troc.vocinity.com 2020-07-29 07:55:16.878398 [DEBUG] mod_callcenter.c:3274 Member "Nathan" <2000018> exit queue TestQueue@troc.vocinity.com due to BREAK_OUT
<> nathan stratton
Sergey was able to offer me a solution that worked like a charm, I now am seeing 1080x1920 (1080p vertical display) and the quality looks great! Sergey was also very kind and asked the I send the $200 bounty to FreeSWITCH, so I will do that today. I have included his reply below in case anyone else runs into this problem because I found nothing after days of searching on Google. Sergey Safarov Thu, Jul 30, 4:03 AM (1 day ago) to me To specify video size need to use background png file with the required resolution. If you want FullHD then need use png with 1980x1080 size. How to use this image <action application="set" data="core_video_blank_image=/tmp/hello.png"/> or from FS console originate {core_video_blank_image=/tmp/hello.png}user/1018 &park()
Thanks for sharing this and thanks for contributing to freeSWITCH! On Fri, 31 Jul 2020 at 11:20, Nathan Stratton <nathan@robotics.net> wrote:
Sergey was able to offer me a solution that worked like a charm, I now am seeing 1080x1920 (1080p vertical display) and the quality looks great! Sergey was also very kind and asked the I send the $200 bounty to FreeSWITCH, so I will do that today. I have included his reply below in case anyone else runs into this problem because I found nothing after days of searching on Google.
Sergey Safarov Thu, Jul 30, 4:03 AM (1 day ago) to me To specify video size need to use background png file with the required resolution.
If you want FullHD then need use png with 1980x1080 size. How to use this image
<action application="set" data="core_video_blank_image=/tmp/hello.png"/>
or from FS console
originate {core_video_blank_image=/tmp/hello.png}user/1018 &park()
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
participants (2)
-
David Villasmil
-
Nathan Stratton