Showing posts with label YouTube. Show all posts
Showing posts with label YouTube. Show all posts

05 June, 2024

FFmpeg stack two videos and merge audios




FFmpeg -i rtmp://192.168.137.1:1935/live/xyz -i rtmp://192.168.137.1:1935/live/abc -filter_complex "[0:v][1:v]vstack=inputs=2[v];[0:a][1:a]amerge=inputs=2[a]" -map "[v]" -map "[a]" -an -f flv rtmp://192.168.137.1:1935/live/qwe


The above command stacks video from two streams and merges audios into one.


I tried following commands before I came up with above. 


ffmpeg -i rtmp://192.168.137.1:1935/live/xyz -i rtmp://192.168.137.1:1935/live/abc -filter_complex "[0:a][1:a]amix[a]" -map 0:v -map "[a]" -c:v copy -f flv rtmp://192.168.137.1:1935/live/qwe


ffmpeg -i rtmp://192.168.137.1:1935/live/xyz -i rtmp://192.168.137.1:1935/live/abc -filter_complex "[0v][1v]xstack=inputs=2:layout=0_0|1920_0[stacked]" -map "[stacked]" -preset ultrafast -vcodec libx264 -tune zerolatency -an -f flv rtmp://192.168.137.1:1935/live/qwe


ffmpeg -i rtmp://192.168.137.1:1935/live/xyz -i rtmp://192.168.137.1:1935/live/abc -filter_complex "[0v][1v]xstack=inputs=2:layout=0_0|1920_0[stacked];[0:a][1:a]amix[a]" -map "[stacked]" -map 0:v -map "[a]" -preset ultrafast -vcodec libx264 -tune zerolatency -an -f flv rtmp://192.168.137.1:1935/live/qwe


How to test?


Use Node Media ServerNode Media Server to start a local server that takes in rtmp streams and publishes.

Create two rtmp streams using OBS StudioOBS Studio stream them to Node Media Server and use the rtmp streams url in the FFmpeg command above to create a third rtmp stream which you can use anywhere you want.



20 February, 2019

Remove all Liked Videos on YouTube

Do you find a need to remove all the video you've ever liked?
 Well, you can do it but let me first be clear here that there is no coming back.
Once you remove all the videos from your Liked Playlist or whatever you call it, it's gone. 



Now if that is clear to you, you may proceed to login to your YouTube account and click on Liked Videos link to the left of your screen.


Step 1. Then click on the Edit button to edit your Liked videos playlist.


From here on you can either manually remove any video from this playlist.
Or if you want to just remove all of these videos follow the following steps.

Step 2. Press F12 on your keyboard and go to the console tab.
Step 3. Copy and paste the following block of code in the console.

var items = $('body').getElementsByClassName("pl-video-edit-remove-liked-video");
for(var i = 0; i < items.length; i++){
items[i].click();
}

Hit enter and the page will refresh. Now if you'll check your liked videos playlist it will be empty.

Again, this is a no rollback action, please proceed with caution and keep in mind once the playlist is empty there is no way to bring back the liked list other than manually liking every video you ever liked before.



30 November, 2018

Where to find all your YouTube Comments

It's in the History section of YouTube.



First off, open your History on YouTube. Then on your right, you'll see different options that can be checked. 

Check Comments and you'll get to see all your YouTube comments you've ever made.

Yea I said some awkward things 8 years ago.

26 November, 2018

Listen and download YouTube playlist using YMUSIC Android App

Ever felt a need to have all the music you listen to on YouTube downloaded to your device?

YMusic is the one stop solution to all your music need. 



Once installed, log in with your Google account. Once logged in you'll be able to see all your saved YouTube playlist. 
Click the options button on the side of a playlist and Sync offline. 
Now it'll always be played from the device itself. Perfect.

Not only that it also has some option for Shazam which I'm unable to test since I don't use Shazam at all.

Though it might not be acceptable to Google it does what it says. You'll have to install it through the apk you can download from any of the sites below.


      

How to change Game Name in YouTube Live Stream

If you're streaming a certain game and decide to play a different game mid-stream you might want to change the name of game you're streaming in YouTube description. But where's the option?

Well, it's fairly simple yet utterly stupid of YouTube not give the option where it should be.

The option is actually in the Dashboard and not present in the video manager where it should(also) be.







Now in order to change the game name in your stream head to YouTube Dashboard by clicking other features > More.

Or you can also click this link.  https://www.youtube.com/dashboard?ar=1&o=U




Now click on LIVE STREAMING in the left menu and you should be able to edit the game you're streaming.












Featured Post

Content Writing VS Content Marketing: How are Both Different From Each Other?

Regardless of how long the businesses have been introduced to digital marketing, it is often seen that they confuse the terms of marketing. ...