![]() ![]() go backward and forward in the playlist I - show info about the currently playing file like codec, framerate etc S - take screenshots, S take screenshots without subtitle V - enable or disable subtitles, j cycle through subtitles ‘#’ - (without quotation mark) cycle through the available audio tracks, important for DVDs or movies with different audio languages Q - is for quit but Q is for quitting and remembering the position of the audio or video file Maybe some options are not 100 percent right because I do not use them anymore or they are deprecated and older ones from mplayer. Feel free to add more options, hacks, scripts etc that you like in mpv. I will only show some features I personally prefer to use. But one nice feature mpv has that other video players do not, apart from being one of the most lightweight, is gapless playback if you listen to music, by default! I use it primarily as a video player and also for streaming content, e.g. You can install mpv on any Linux distribution, it should be in the repositories regardless of the version. For my tutorial I will go with plain mpv without any GUI. One of the most popular is Gnome MPV, now called Celluloid. It is possible to use GUI back ends for mpv. Personally I prefer mpv.īut I also just prefer the plain default mpv without any GUI as it has its own in-build OSD compared to mplayer where you could use some ‘horrible’ GUIs. Mplayer is still out there but mpv is more actively developed, has some nice features and some older ones removed. Back in the time I used to use mplayer and later mplayer2 before I finally settled on mpv. Mpv is based on mplayer and the now defunct mplayer2. I think it is the best video player out there and even serves as a great audio player. Also make sure to comment save-position-on-quit=”yes” option in ~/.mpv/config file (if you had set one and if videos are not playing at specific time). If it still does not work, make sure to delete all the files inside ~/.mpv/watch_later directory.As mentioned I wanted to share some mpv hacks. Note: If it starts playing at random number (this might be the error only in my case), use the mpv interface to set to the first file. Now to play the files $ mpv -start=80 -end=-90 -playlist=s If your use case is little complex (nested directories), search how to create playlist for mplayer (they are just one file name with path per line). Open up the “ s” file in your favorite text editor and delete the lines you don’t want to watch. $ find -maxdepth 1 -type f -name \*.\* | sort > s To create a playlist using files in current directory use this command. In that case, we need to create a playlist and delete the part we have already watched (or don’t want to watch). Let’s say you have already watched first 20 videos on this directory and you want to watch the rest. However, not always we sit and watch the whole series. This command will play all the files in current directory with our start and end time specified on each. Or we can also use this command (we are listing each file in this case, but the end result is same) find. We can just use wild card character ( *) with our extension to play all the videos. Thankfully in most cases most of our videos are listed sequentially in a directory. If we can figure out roughly when the videos in the series start and roughly when the videos end, we can specify the section, in the middle which we are going to watch (i.e waste least amount of time for those starting and endings). In my opinion this use case is suitable for our purpose. In this case video seeks to 80 seconds at the beginning and ends 1 minutes 30 seconds from end. Specifying end from end $ mpv -start=80 -end=-90 In this case video seeks to 30 seconds and ends at 40 seconds. You can see all of these examples in mpv manual ( man mpv).Ĭ. This seeks to 3 minutes 20 seconds and only plays 10 seconds of the video. If you know the length you can use $ mpv -start=3:20 -length=10 Similarly there are options like 01:10:00 to seek 1 hour 10 minutes, 50% to start playing at middle.ī. Start at a specific time $ mpv -start=80 ![]() Therefore, I am going to use mpv ( mpv is a fork of mplayer2 and MPlayer) for our purpose.Ī. Since I love mplayer/smplayer for playing most videos, I am not going to deviate from those lines. In this tutorial, I wish to tackle that problem. Also, if you are just starting to watch a series recommended by others, those extra 5 minutes could be saved to watch next video and progress quickly. Sometimes we like to watch cool starting and ends of videos (like the heart touching ending), but after a time those could become repetitive and boring.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |