Re: [dev] Request for video player recommendation with a good playlist

2017-01-19 Thread Alef Farah
Thank you for the tip, I'll definitively take a look at it!

On Thu, Jan 19, 2017 at 12:52:22PM +0100, Laslo Hunhold wrote:
> On Thu, 19 Jan 2017 05:25:09 -0200
> Alef Farah  wrote:
>
> Hey Alef,
>
> > If you're still looking and if the "no playlist" approach is
> > acceptable I'd suggest trying out ranger (an ncurses file manager
> > with vim-like keybindings). It even supports video previews, though I
> > don't think you can define a numerical order for selected files
> > (without patching it).
>
> Dimitris and Lazaros (lostd) have developed a very suckless "ranger"
> called "noice"[0] written in C rather than Python. In my opinion, it's
> much better!
>
> Cheers
>
> Laslo
>
> [0]: http://git.2f30.org/noice/
>
> --
> Laslo Hunhold 
>



Re: [dev] Request for video player recommendation with a good playlist

2017-01-19 Thread Laslo Hunhold
On Thu, 19 Jan 2017 05:25:09 -0200
Alef Farah  wrote:

Hey Alef,

> If you're still looking and if the "no playlist" approach is
> acceptable I'd suggest trying out ranger (an ncurses file manager
> with vim-like keybindings). It even supports video previews, though I
> don't think you can define a numerical order for selected files
> (without patching it).

Dimitris and Lazaros (lostd) have developed a very suckless "ranger"
called "noice"[0] written in C rather than Python. In my opinion, it's
much better!

Cheers

Laslo

[0]: http://git.2f30.org/noice/

-- 
Laslo Hunhold 



Re: [dev] Request for video player recommendation with a good playlist

2017-01-18 Thread Alef Farah
If you're still looking and if the "no playlist" approach is acceptable
I'd suggest trying out ranger (an ncurses file manager with vim-like
keybindings). It even supports video previews, though I don't think you
can define a numerical order for selected files (without patching it).

On Sun, Jan 15, 2017 at 04:54:46PM +0100, Mattias Andrée wrote:
> On Sun, 15 Jan 2017 10:48:56 -0500
> Alexander Keller  wrote:
>
> > The simplest way I can imagine is to link them into a
> > directory temporarily and/or permanently with:
> >
> > mkdir playlist
> > ln *some_glob_pattern* playlist
> >
> > Then use the vidir(1) program to edit the files to number
> > them sequentially the way you want. Then you can either
> > create a playlist and delete the directory using some
> > basic command line tools or just keep the directory as a
> > playlist.
> >
>
> The problem with this approach is that I cannot
> edit the list whilst it is playing, except for
> removing files.





Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 22:34:18 +0100
Felix Van der Jeugt  wrote:

> Excerpts from Mattias Andrée's message of 2017-01-15
> 16:54:46 +0100:
> > On Sun, 15 Jan 2017 10:48:56 -0500 Alexander Keller
> >  wrote:  
> > > The simplest way I can imagine is to link them into a
> > > directory temporarily and/or permanently with:
> > > 
> > > mkdir playlist ln *some_glob_pattern* playlist
> > > 
> > > Then use the vidir(1) program to edit the files to
> > > number them sequentially the way you want. Then you
> > > can either create a playlist and delete the directory
> > > using some basic command line tools or just keep the
> > > directory as a playlist. 
> > 
> > The problem with this approach is that I cannot edit
> > the list whilst it is playing, except for removing
> > files.  
> 
> Unless you didn't play that directory with `mpv
> playlist/*`, but with a simple script which takes the
> alphabetically first file, plays it, removes it when
> played succesfully, and takes the next. `while mpv "$(ls
> playlist | head -1)"; do true; done`, am I right?
> 
> Sincerely,
> Felix
> 
> 

I wrote the following script that does most of what I want.
The only thing it lacks is support for mass reorder.

#!/bin/sh

number=0
if test "$1" = -n; then
number=1
shift 1
fi
if test "$1" = --; then
shift 1
fi
if ! test $# = 0; then
cd -- "$1"
fi

if test $number = 1; then
n="$(ls -1 | wc -l)"
i=1
ls -1 | while read f; do
mv -- "$f" "00$(seq -w 0 $n | sed 1,${i}d | sed 1q) - $f"
i=$(expr $i + 1)
done
fi

current="$(ls -1 | head -n 1)"
while mpv -- "$current"; do
index=$(ls -1 | grep -Fnx -- "$current" | cut -d : -f 1)
index=$(expr $index)
if test $index -ge $(ls -1 | wc -l); then
break
fi
current="$(ls -1 | sed 1,${index}d | sed 1q)"
done


pgpW054f2SwRp.pgp
Description: OpenPGP digital signature


Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread hiro
> By the way, has anyone tried OSS on Linux recently?

yes, still works, still fucks up on suspend. great on desktops.



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Felix Van der Jeugt
Excerpts from Mattias Andrée's message of 2017-01-15 16:54:46 +0100:
> On Sun, 15 Jan 2017 10:48:56 -0500 Alexander Keller
>  wrote:
> > The simplest way I can imagine is to link them into a directory
> > temporarily and/or permanently with:
> > 
> > mkdir playlist ln *some_glob_pattern* playlist
> > 
> > Then use the vidir(1) program to edit the files to number them
> > sequentially the way you want. Then you can either create a playlist
> > and delete the directory using some basic command line tools or just
> > keep the directory as a playlist.
> > 
> 
> The problem with this approach is that I cannot edit the list whilst
> it is playing, except for removing files.

Unless you didn't play that directory with `mpv playlist/*`, but with a
simple script which takes the alphabetically first file, plays it,
removes it when played succesfully, and takes the next. `while mpv "$(ls
playlist | head -1)"; do true; done`, am I right?

Sincerely,
Felix




Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Martin Kühne
On Sun, Jan 15, 2017 at 4:54 PM, Mattias Andrée  wrote:
> The problem with this approach is that I cannot
> edit the list whilst it is playing, except for
> removing files.


My personal solution to this problem is to simply use mpv from CLI per
file. There is simply no playlist, but I really don't need one,
though, which saves me of the additional complexity to have to adjust
it as I go. You might be used to do something while you're bored
watching a video, but maybe you should just find better stuff to watch
in that case.
If I want to abort viewing the current video I just press 'q' to exit
and then can decide what to watch next, which really goes well with
the fact that I just download interesting stuff I plan to watch to ~.
How about you find a way you can make your videos easily accessible
for you?

cheers!
mar77i



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Cág

Mattias Andrée wrote:


Does any have a recommendation for a video player
that has a good playlist where files can easily
be reordered?


I think a simple script should work. Not sure about
the dynamic management of the playlist though. I
switched to ffplay for video and mpg123 for audio,
because mplayer stopped decoding both mp3 and mp4
correctly for some reason.

By the way, has anyone tried OSS on Linux recently?


Cág



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 10:48:56 -0500
Alexander Keller  wrote:

> The simplest way I can imagine is to link them into a
> directory temporarily and/or permanently with:
> 
> mkdir playlist
> ln *some_glob_pattern* playlist
> 
> Then use the vidir(1) program to edit the files to number
> them sequentially the way you want. Then you can either
> create a playlist and delete the directory using some
> basic command line tools or just keep the directory as a
> playlist.
> 

The problem with this approach is that I cannot
edit the list whilst it is playing, except for
removing files.


pgpSXdgmPqz1s.pgp
Description: OpenPGP digital signature


Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Alexander Keller
The simplest way I can imagine is to link them into a directory
temporarily and/or permanently with:

mkdir playlist
ln *some_glob_pattern* playlist

Then use the vidir(1) program to edit the files to number them
sequentially the way you want. Then you can either create a playlist and
delete the directory using some basic command line tools or just keep
the directory as a playlist.



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Sylvain BERTRAND
On Sun, Jan 15, 2017 at 01:03:53PM +0100, Martin Kühne wrote:
> While vlc is admittedly a bunch of crap...

+1

(could not resist to crap on this
 - "open source software which works well only on windows"
 - qt, then c++, abominous GUI
 - unwanted layer between their engine and ffmpeg, worse than mplayer one)

-- 
Sylvain



Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
On Sun, 15 Jan 2017 13:03:53 +0100
Martin Kühne  wrote:

> While vlc is admittedly a bunch of crap, I have no real
> suggestion for a playlist editing player. you could wrap
> mpv with some playlist-managing DIY thing, though, as it
> does IPC but could as well be quit with SIGQUIT...
> 
> What's the reasoning behind this question though, why do
> you need to edit the playlist all the time?

I don't need it all the time, I use mpv too, but sometimes
I have a lot of videos I want to watch, but not in alphabetical
order, so I have to reorder them sometimes, and sometimes
I want to move a video in the playlist down because I feel
like watching it later. Sometimes I also want to add new
videos to the playlist.

Forgot to mention that it is preferable if it can playback
videos in faster than normal tempo. But I can work around
this with ffmpeg if necessary.

> 
> cheers!
> mar77i
> 



pgpfikw9hRC9S.pgp
Description: OpenPGP digital signature


Re: [dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Martin Kühne
While vlc is admittedly a bunch of crap, I have no real suggestion for
a playlist editing player. you could wrap mpv with some
playlist-managing DIY thing, though, as it does IPC but could as well
be quit with SIGQUIT...

What's the reasoning behind this question though, why do you need to
edit the playlist all the time?

cheers!
mar77i



[dev] Request for video player recommendation with a good playlist

2017-01-15 Thread Mattias Andrée
Ahoy!

Does any have a recommendation for a video player
that has a good playlist where files can easily
be reordered? I'm getting tired of VLC causing
X to crash (although it looks like it is exiting
without actually crashing or aborting). So I don't
really care how crappy it is, as long as it has a
good playlist and does not crash X.


Mattias Andrée.


pgpihMXD42D4R.pgp
Description: OpenPGP digital signature