Anybody knows of a decent front-end for ffmpeg's ffplay?

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Anybody knows of a decent front-end for ffmpeg's ffplay?

#1 Post by musher0 »

Hello, all.

I compiled the full ffmpef-2.6.3_snapshot_150518* (from two days ago).
I'm really impressed. You can throw any media file at this thing and it will
play it! :)

Of course, in CLI mode it's on the spartan side. So... as the title says:
anybody knows of a decent front-end for ffmpeg's ffplay?

I saw something called FFTV on sourceforge.net, but it's for TV and radio
only, and it's from 2006.

Thanks in advance. BFN.

musher0

~~~~~~~~
* Akin to the subject: unpacked, it's 192 Mb's... Any way to trim it?
Is this normal, or do I need an "editor" to advise me with the compile?

It works just fine, but the fact that files ffplay, ffprobe and ffmpeg proper
all have a weight of 15 Mb looks a bit fishy.

Again, thanks in advance.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

#2 Post by anikin »

... unpacked, it's 192 Mb's... Any way to trim it?
Is this normal, or do I need an "editor" to advise me with the compile?
Hi musher0,

Did you use the best compile options?
Before compiling anything, I do a search for compile options:
1) Linux from scratch - ffmpeg+lfs
2) Slackbuilds - ffmpeg+slackbuild (http://www.slackwiki.com/SlackBuild_Scripts)
3) Arch Linux - ffmpeg
4) and a general search, like ffmpeg+build+compile
http://www.linuxfromscratch.org/blfs/vi ... fmpeg.html
http://www.slackware.com/~alien/slackbu ... SlackBuild
https://projects.archlinux.org/svntogit ... ges/ffmpeg
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
--------
Honi soit qui mal y pense

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

Thanks anikin.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

decent front-end for ffmpeg's ffplay?

#4 Post by mikeslr »

Hi musher0,

Quote:
"...decent front-end for ffmpeg's ffplay?"

You mean other than ffconvert which is built into most Pups?

or Winff, which takes up only 1729 Kb? I used ubuntu debs to build one; but have used it in any variation of Pup.

Both, although usually used for converting have play modes. ffconvert can only use ffplay. Winff's preferences use it by default.

mplayer? smplayer? for just viewing.

What pup did you build for?

mikesLr

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#5 Post by musher0 »

Hi, mikeslr.

Answers, in no order:

I compiled it on PuppyPrecise 5.4.3.

A front-end for ffplay, not for ffconvert.

So WinFF is a converter rather than a player?

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

ffplayer

#6 Post by mikeslr »

Hi again,

Precise probably has gnome-player already built in. (My precise uses Open-box, so gnome-player didn't show up on the start-menu; requires edit of desktop file. Openbox is fussy).

Some people like smplayer. But it requires QT and, like gnome-player, is just a fleshed-out version of mplayer. As far as I can figure out, with the exception of VLC, pretty much everything, including mplayer, itself, depends on ffmpeg* to provide codecs and ffplay* to provide the on screen displays.

*(or their forks, avconv & avplay).

AFAIK, neither Bashee nor Totem have been pre-packaged for any Pup. But they are "Ubuntu" favorites. Or if you want to go "whole-hog", XMBC-Frodo provided a full Media Center. Maybe: http://www.murga-linux.com/puppy/viewto ... 270#704238. All ultimately depend on ffmpeg-ffplay.

Sorry I wasn't clear. Both ffconvert and winff have preview modes which use ffplay.

But maybe email pelo who keeps up on all things multimedia on both the English and French forums.

Edit: June 9, 2015: I was just exploring Lupu-revitalized, the Sulu version using the kernel from Raring. I noticed that on its Multimedia Menu was an application named "FFplay Simple Multimedia Player". Further investigation revealed that in addition to the desktop file (creating the menu entry) it consists exclusively of shinobar's script, named ffplay.sh, located at /usr/bin.

Being a script it should be functional in any Pup in which the ffplay binary exists. It may work if you've created a symlink to avplay with the name ffplay.

I don't think shinobar will object if I provide that script here. To use it, merely create a new script @ /usr/bin, name it ffplay.sh, open it in a text editor and copy the following code into it. Code:

# FFPlay.sh - a frontend of ffplay
# 27 Jun 2010 by shinobar <shino@pos.to>
TITLE="FFplay"
PLAYER="ffplay"
[ "$@" ] && exec $PLAYER "$@"

export TEXTDOMAIN=ffconvert
export DIALOG
export MAIN_DIALOG="<window title=\"$TITLE\">
<vbox>
<text><label>$(gettext 'Select or drag a video file.')</label></text>
<hbox>
<entry tooltip-text=\"$(gettext 'Type or drag the source video file here.')\" editable=\"true\" accept=\"filename\">
<variable>FILE1</variable>
$(make_default \"$SOURCEFILE\")
</entry>
<button tooltip-text=\"$(gettext 'Browse and select the source video file.')\">
<input file stock=\"gtk-open\"></input>
<variable>FILE_BROWSE_FILENAME</variable>
<action type=\"fileselect\">FILE1</action>
</button>
</hbox>
<hbox><button><label>$(gettext 'Play')</label><input file stock=\"gtk-media-play\"></input><action>EXIT:OK</action></button>
<button><label>$(gettext 'Full screen')</label><input file stock=\"gtk-fullscreen\"></input><action>EXIT:Full</action></button>
<button><label>$(gettext 'Quit')</label><input file stock=\"gtk-quit\"></input><action>EXIT:Abort</action></button>
</hbox>
</vbox>
</window>"
while true; do
eval $(gtkdialog3)
[ "$EXIT" = "Abort" ] && exit 1
# validity check
if [ ! -f "$FILE1" ]; then
#if [ "$FILE1" ]; then
# errmsg $(printf "%s not found." "$FILE1")
#else
# errmsg $(gettext 'Souce file not specified.')
#fi
continue
fi
[ "$EXIT" = "Full" ] && exec $PLAYER -fs $FILE1
exec $PLAYER $FILE1
done

Save. I leave you to create an appropriate desktop file/menu entry.


mikesLr

Pelo

decent front-end for ffmpeg's ffplay?

#7 Post by Pelo »

Would that be decent ? What do you mean ? FFplay is a bare Gui of FFmpeg, isn't it ?
Just drag your film in the window and the movie moves.. perhaps.
Just wait five or more seconds.. It's a delayed departure (at home)
flv, mp4 are ok, avi too
Attachments
player.jpg
Pupos FFplay
(57.02 KiB) Downloaded 393 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

Thanks, guys, but except for anikin's suggestions, none of your replies
comes close to answering the question.

I'm talking about ffplay the executable that is created when one
compiles the full ffmpeg package.

I repeat:

I'm talking about ffplay the executable that is created when one
compiles the full ffmpeg package.

Not a script by shinobar. Not a front-end to mplayer.

Bye for now.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#9 Post by Geoffrey »

musher0 wrote:I'm talking about ffplay the executable that is created when one
compiles the full ffmpeg package.

Not a script by shinobar. Not a front-end to mplayer.
The script by shinobar looks to me to be a frontend for ffplay not mplayer

Code: Select all

PLAYER="ffplay"

Code: Select all

[ "$EXIT" = "Full" ] && exec $PLAYER -fs $FILE1
exec $PLAYER $FILE1 
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Thanks, Geoffrey.

I thought the script was named "ffplay", hence the confusion. I'm busy with
a menu script at the moment, I'll look up shinobar's stuff ASA I have a minute.

BFN.

musher0
Last edited by musher0 on Thu 05 Nov 2015, 22:37, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

robwoj44
Posts: 399
Joined: Fri 08 Aug 2008, 18:15
Location: Warsaw

#11 Post by robwoj44 »

Probably missing dependencies during the compilation.
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
ffplay and x11grab dependencies: libsdl1.2-dev libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#12 Post by musher0 »

Thanks, mikesir and all.

I finally got to testing shinobar's little ffplay box for playing movie formats.
(Thanks, mikesir!) Sorry for the delay.

What can I say? I'm disappointed. It is an interface and it works. I guess
something along the lines of SMPlayer doesn't exist for ffplay. (Even if there
are overlaps between ffplay and ffmpeg and mplayer, etc.)

BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

#13 Post by TwoPuppies »

Does anybody know how to modify Shinobar's FFPlay.sh script to allow it to play media files that have spaces in the path or file name? I have had a go at this myself but, not being an expert, have not managed to get it quite right.
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#14 Post by MochiMoppel »

See last 3 lines: $FILE1 need to be enclosed in double quotes.
But does Fullscreen work for you? Doesn't work here. Not shinobar's fault. Something is wrong with my version of ffplay.

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

#15 Post by TwoPuppies »

MochiMoppel wrote:$FILE1 needs to be enclosed in double quotes.
That works. Thanks. I had no idea the solution was so simple. I have been messing about with variants of sed s tr ' ' '_' without success. But as I said, I really don't have that much idea what I am doing.
MochiMoppel wrote:But does Fullscreen work for you?
Yes it does. I am using lupusuper2-5.2.8.7 which includes Shinobar's ffplay.sh script by default. I don't know if the fact that it is in lupusuper has any effect on the way it works.
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

Post Reply