Skip to main content

Posts

[ffmpeg] ffmpeg-2.2 patch for relocation R_X86_64_PC32 against symbol error

ffmpeg-2.2-patch ffmpeg-2.2 patch for relocation R_X86_64_PC32 against symbol error when compile in x64-bit Patch Link: Download: V1.0 Scope of Issue: When ffmpeg is built for static library and this compiled static library is linked with another dynamic library then the final linking failed with error -- ffmpeg/libavcodec/libavcodec.a(xx_yyyy.o): relocation R_X86_64_PC32 against symbol `ff_xx_yy_zz_qq' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status Machine: x64-bit Linux, Unix, may be windows 64-bit How to fix: Use the ffmpeg-2.2.patch in your FFmpeg-n2.2 release source. How to apply patch: Copy the downloaded patch to your FFmpeg-n2.2 folder. Test the patch compatibility with your ffmpeg source by -- patch --dry-run -p1 -i ffmpeg-2.2.patch giving this command inside your ffmpeg source folder. If the test returns no fail patch file then you are ...

[eAskGitHub]Simple C++ console for all github repo release API

eAskGitHub ========== Simple console for all github repo release API. What? ----- It is a c++ application with a binary. It is created to make the life simple for github repository API user. It uses curl. Feature: -------- 1. It can receive any lenght of response from github. 2. It has it's own simple JSON parser method. 3. It is powerfull tool to know your github release download count. 4. Makefile application. Prerequisite: ------------- 1. Need libcurl. 2. Need Centos/Linux. 3. Not tested with windows(Hopefully it will work after windows curl library installation). Roadmap: -------- 1. Implement every API of [GitHub API](https://developer.github.com/v3/repos/releases/). Use: ---- In console just give command - ./eAskGit Then just follow the hints available on console or answer the querry. Test Result: ------------ ./eAskGit Welcome to github metadata fetcher eAskGitHub v1.0 !! It's a very simple command line app who will try to fill your all want for github metadata(THE...

Jabsimul with SASL Integration is a benchmarking tool for Jabber/XMPP Servers which have SASL authentication

jabsimul-with-sasl =========== Jabsimul with SASL Integration is a benchmarking tool for Jabber/XMPP Servers which have SASL authentication. It also has the support for *starttls*. Special Note: --------------------- The SASL and starttls implementation is mine. Other than this project is not mine. Implementation: ------------------------- I have implemented the protocol named XEP-0034: SASL Integration. Extra Feature: ----------------------- Other then jabsimul benchmark feature it has the extra feature of XMPP SASL authentication. I have enabled the SASL plain mechanism of authentication for xmpp login. With that now you can have the benchmark of jabsimul with SASL authentication. As list: 1. Implemented “XMPP TLS” from http://xmpp.org/rfcs/rfc3920.html 2. Implemented “SASL AUTH” from  http://xmpp.org/rfcs/rfc3920.html Source code is available in here . Procedure: ----------------- First start a TCP connection to the XMPP server. Then convert t...

[WebRTC] Overview and analysis of webRTC media transmission and security with DTLS-SRTP Part - 1

What is webRTC? WebRTC is an API definition being drafted by the World Wide Web Consortium to enable browser-to-browser applications for voice calling, video chat, and P2P file sharing without plugins. In short webRTC make you independent from any messenger type application/plug-in that you need to use for a audio/video call. Call Mechanism in WebRTC:   Call Attributes: Signaling (SIP/XMPP/Other) ICE (ICE LITE rfc5245 ) DTLS SRTP PCMU/OPUS for Audio VP8 for Video Signaling: This  attribute is necessary for advertising someones' SDP or ICE-Candidate to remote buddy for a call. This can be done by many IETF standard protocol such as - SIP, XMPP or any other protocol. ICE: Lite ice is a must for webRTC. Because lite ice support aggressive nomination of ice candidate selection. Which enable a call more faster then any other call. Because the endpoint doesn't need to wait for all the ICE check completion before sending any media. This enables less hands...

[CENTOS] How to take screen shot on Centos 6.x

ISSUE: Screen shot is a necessary part of developers life. So you must know how to take screen shot in any OS. When taking screen shot by "Prnt Scrn" button centos give error like - There was an error running "gnome-screenshot": Failed to execute child process "gnome-screenshot" (No such file or directory). Fix: This issue arise due to gnome util's  unavailability. So just install it by yum as a root - yum install gnome-utils and enjoy screening.

[SOCKET] On udp recvfrom peer address return 0.0.0.0:0

ISSUE: When using udp socket it is necessary to know the remote peer address from where the data is received. In future this can be used for sending and tracking messages. If you are ICE or STUN ,TURN developer then its a must. char recv_data[1024]; int sin_size; struct sockaddr_in remote_addr; int bytes_recv = recvfrom(mySock, recv_data,1024,0,(struct sockaddr *)&remote_addr,(socklen_t*)&sin_size); printf("got packet from IP:Port :: %s:%d\n",inet_ntoa(remote_addr.sin_addr), ntohs(remote_addr.sin_port));       In receiving data which returns remote port and IP as 0.0.0.0:0 Fix: Its happen because the sin_size is not initialize as it takes garbage bellow from system. So just initialize the sin_size will fix that.  sin_size = sizeof(remote_addr); So enjoy socket programming :)

[Asterik] configure: WARNING: *** Please install the SQLite3 development package. on Asterik

ISSUE: Asterik need SQLITE3 , when it doesn't find this then shows the following warnings - configure: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database. configure: WARNING: *** Please install the SQLite3 development package. And the configure fails. Fix: yum install sqlite, sqlite-devel And you are done.