Is there any you to stream any music the terminal with youtube-dl and ffplay
I know that ffplay can play audio with shell
$ audio stram | ffplay -i -
How to play youtube song in terminal with ffplay and youtube-dl
2.6k Views Asked by Meftahul Jannat Shadid At
2
There are 2 best solutions below
0
Stefan Sjöberg
On
..and if you mordernize the command a little you can play YT-videos from the terminal without ads.
youtube-dl -f mp4 YOUTUBE_VIDEO_URL -o - 2>/dev/null | ffplay -autoexit -i - &>/dev/null
Due to YouTube at the moment are throttlening youtube-dl I'm now using yt-dlp instead. Same codebase but no throttlening :)
yt-dlp -f mp4 YOUTUBE_VIDEO_URL -o - 2>/dev/null | ffplay -autoexit -i - &>/dev/null
Related Questions in LINUX
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in SHELL
- passing text with \n as one argument in shell
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- schedule and automate sqoop import/export tasks
- How can launch an external process from java and still be able to interact with this process?
- Linux find files where mtime and ctime are not equal
- Find all files contained into directory named
- Quick way to remove all folders titled CVS in a directory and it's subdirectories?
- shell process not exiting on `exit` inside `$()`
- How to set environment variables with a forward slash in the key
- System 'bash -ic' stuck when I hit ctrl+c
- bash functions returns "command not found"
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- retrieve plaintext password from file using bash command
Related Questions in AUDIO
- Play multiple audio files in a slider
- Unity3d AudioSource not creatable
- JavaFX can't play mp3 files
- iPhone simultaneous sound output
- Phonegap Build App - Play Audio
- HTML5 Audio pause not working
- Java boolean play button issue (play over and over again with each click)
- import a sound externally or from the library? AS3
- Set audio source
- Saving a sound bite as a ringtone
- Using OnAudioFilterRead with playOnAwake
- Audio recorded with Samsung does not play on iOS
- fftw of 16bit Audio :: peak appearing wrong at 2f
- How to Export an audio file with effect in iOS
- Tried multiple solutions onsite, none worked: Play <audio> on Konami code
Related Questions in YOUTUBE-DL
- deleting m4a after merging youtube-dl
- shell_execute(''youtube-dl') NOT WORKING .browser shows NULL. why?
- --extract-audio equivalent for YoutubeDL class?
- Change the output name when download with youtube-dl using python
- Bash: bash script to download trimmed mp3 from youtube url
- c# using pipes to get output stream
- Specific path to Youtube_dl files in Centos
- Terminal giving "Unknown option on the command line: -gf" error with YouTube video streaming script using youtube-dl and mplayer
- How to tell which video failed to download from a youtube playlist using youtube-dl
- youtube-dl specify output from python script?
- youtube-dl not accepting playlist url
- python ~ youtube-dl: error: no such option: --audio-format
- Python ~ffmpeg 5_second_video.mp3: No such file or directory Conversion failed
- youtube-dl Script to add metadata to already downloaded files
- Downloading youtube videos using python's subprocess
Related Questions in FFPLAY
- FFPlay: How to manually select video quality during playing the mpd stream?
- The fdsink element in GStreamer cannot be used to output the correct byte-stream to the pipeline
- How to properly pipe adb screenrecord (h264 stream) to ffplay in a WinForms app?
- When using ffplay, how to eliminate milliseconds from timestamp display in the video-filter
- Is there a way to run a subprocess that opens a window in the background in Python?
- How to play HDR10 videos using ffplay and ffmpeg?
- FFMPEG: invalid data found when processing input, but same input works in FFPLAY
- Using FFMPEG command to read the frame and show using the inshow function in opencv
- Problem with ffplay from webcam stream using complex filters
- yt-dlp get audio only link -> ffmpeg piped audio -> ffplay
- ffmpeg/ffplay/libav: how to play out a muxed RTP/RTCP stream using an SDP file?
- Change ffplay spectrogram colours
- How to ffplay reversed audio?
- Issues with adding the current timestamp of a video when using FFPLAY
- how to write subcommand to FFPLAY during playback using subprocess module?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can try this:
Or: