Trim part of an Mp3 file in C++

extern “C” { #include <libavformat/avformat.h> } void trimMp3(const char* input, const char* output, int start, int duration) { av_register_all(); AVFormatContext *inCtx = nullptr, *outCtx = nullptr; avformat_open_input(&inCtx, input, nullptr, nullptr); avformat_find_stream_info(inCtx, nullptr); avformat_alloc_output_context2(&outCtx, nullptr, nullptr, output); int audioIndex = av_find_best_stream(inCtx, AVMEDIA_TYPE_AUDIO, -1, -1, nullptr, 0); AVStream *inStream = inCtx->streams[audioIndex]; AVStream *outStream = avformat_new_stream(outCtx, nullptr); avcodec_parameters_copy(outStream->codecpar, …

Trim part of an Mp3 file in C++ Read More »

How to create a Tkinter window at a specific of the screen using python

How to create a Tkinter window on a specific screen Basic introduction to GUI This tutorial will cover Python GUI concepts for graphical user interfaces. It is important to understand a Python GUI, how it works, and how to create one using Python programs. I am building a GUI to design a specific screen window …

How to create a Tkinter window at a specific of the screen using python Read More »

How to do web development in Python ?

Basic of Web Development in Python : If you’re interested in building web applications. You will work with Django and Flask frameworks. Django is more capable and has many built-in capabilities for larger applications; Flask is lightweight and suitable for smaller applications. #Flask Example from flask import Flask app = Flask(__name__) @app.route(‘/’) def hello_codespeedy(): return …

How to do web development in Python ? Read More »

How To Perform String Concatenation With Primitive Data Type Values in Java

       String Concatenation In Java   Hello Friends, In this tutorial we are going to perform String Concatenation on  Primitive Data Type. “String are nothing but the sequence of characters”. String str = “Sankalp”;   Some Basic Prerequisite about String Concatenation –   Basically, string concatenation means joining many strings together to formed a combined …

How To Perform String Concatenation With Primitive Data Type Values in Java Read More »

Hiding Cursor using javascript

<!DOCTYPE html> <html>     <head>         <title>Hide Cursor</title>     </head>     <body>         <h1>Hiding Cursor using Javascript</h1>         <h4>Hurrah!..let’s hide cursor</h4>         <p>The cursor, a graphical pointer, indicates the user’s interaction point on a computer screen. In various applications, hiding the cursor can enhance the user experience, improve aesthetics, or serve functional purposes.             By understanding the techniques, applications, and considerations for hiding the cursor, developers can create more engaging, user-friendly, and specialized interfaces.             Hiding the cursor offers benefits in specific contexts but requires careful consideration of accessibility, usability, and compatibility factors.         </p>         <div id=”newdiv”> This is div area</div>         <script type=””text/javascript”>             document.getElementById(‘newdiv’).style.cursor=’none’         </script>     </body> </html> OUTPUT Near “This is div area” if we point the cursor we cannot see the cursor.  

How to Remove duplicate items from a JavaScript array-Codespeedy

Here,this web page for removing the duplicate elements or items from a JavaScript array. And then following methods commonly used in the JavaScript code. Methods of JavaScript Using Set Using filter and indexOf Using reduce Using forEach 1.Set() method: This method is simple and efficient to remove the duplicate items. 2. filter() and indexOf() method: …

How to Remove duplicate items from a JavaScript array-Codespeedy Read More »

Scroll to Top