Skip to content

Instantly share code, notes, and snippets.

View oshkoshbagoshh's full-sized avatar

AJ Javadi oshkoshbagoshh

View GitHub Profile
@oshkoshbagoshh
oshkoshbagoshh / r-debug.php
Created June 12, 2025 01:56 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@oshkoshbagoshh
oshkoshbagoshh / fifa-world-cup.csv
Last active February 12, 2025 11:39 — forked from leathl16/fifa-world-cup.csv
FIFA World Cup
EDITION YEAR LOCATION WINNER TEAMS MATCHES GOALS AVERAGE_GOALS AVERAGE_ATTENDANCE
2014 FIFA World Cup Brazil ™ 2014 Brazil Germany 32 64 171 2.7 52918
2010 FIFA World Cup South Africa ™ 2010 South Africa Spain 32 64 145 2.3 49669
2006 FIFA World Cup Germany ™ 2006 Germany Italy 32 64 147 2.3 52491
2002 FIFA World Cup Korea/Japan ™ 2002 Korea/Japan Brazil 32 64 161 2.5 42268
1998 FIFA World Cup France ™ 1998 France France 32 64 171 2.7 43517
1994 FIFA World Cup USA ™ 1994 USA Brazil 24 52 141 2.7 68991
1990 FIFA World Cup Italy ™ 1990 Italy Germany 24 52 115 2.2 48388
1986 FIFA World Cup Mexico ™ 1986 Mexico Argentina 24 52 132 2.5 46039
1982 FIFA World Cup Spain ™ 1982 Spain Italy 24 52 146 2.8 40571

Get/set ID3 meta tags using ffmpeg

A quick guide on how to read/write/modify ID3 metadata tags for audio / media files using ffmpeg.

FFmpeg has a free-form command line option that allows the user to specify key-value-pairs for encoding metadata. Let's take a look.

1. Read ID3 metadata

To list all global metadata tags for a media file, just set an input but no output file.

from pytube import YouTube
#ask for the link from user
link = input("Enter the link of YouTube video you want to download: ")
yt = YouTube(link)
#Showing details
print("Title: ",yt.title)
print("Number of views: ",yt.views)
print("Length of video: ",yt.length)