0

enter image description here

Snappy is a small but robust gstreamer video player.

More:

http://luisbg.blogalia.com/historias/74484

https://wiki.gnome.org/Apps/Snappy

https://sites.google.com/site/installationubuntu/audio-and-video-in-ubuntu/snappy-video-player

http://youtu.be/x0t16HTo8YY

The apps.ubuntu displays it as "Powerful media player with a minimalistic interface", where "powerfull" may be an overstatement; but minimalistic it is indeed, so that I cannot access even the basic settings, although it is said to have subtitle support, increase speed etc.

There are the options displayed when running snappy -h in terminal. But can I access the options without terminal?

How to add subtitles?

Changing aspect ration would be great too.


I have discovered some keyboard options:

Q - quit

F - fullscreen

R - rotate

< - go to beginning

2 Answers2

1

I don't know of any help but the C source is just about readable for a novice. You want to look at the user_interface.c file. You're looking for anything that uses keyval. You can see when it's being matched against CLUTTER_... keys and the comments help work out what it does.

For subtitles, V seems to be your key. See ~L413:

case CLUTTER_v:
case CLUTTER_V:
{
  // toggle subtitles
  if (toggle_subtitles (ui->engine)) {
    gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE
        (ui->subtitle_toggle),
        gdk_pixbuf_new_from_file (ui->subtitle_active_png, NULL), NULL);
  } else {
    gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE
        (ui->subtitle_toggle),
        gdk_pixbuf_new_from_file (ui->subtitle_inactive_png, NULL),
        NULL);
  }

  handled = TRUE;
  break;
}

I can't see anything that suggests it would let you change the aspect. It merely displays in the same format as the source video.

Oli
  • 299,380
0

Limited idea of an answer.

Maybe a way would be to use the terminal commands through the context menu, for example in Nautilus with Nautilus-Actions.

snappy -h says: -t, --subtitles Use this subtitle file

So, then in nautilus-actions:

enter image description here

And limiting that to specific files

enter image description here

When selecting both the video and the subtitle file and right-clicking, the new nautilus action will start the video in Snappy with subtitles.

(But I don't think the display of the subtitles is editable. They look small and fuzzy.)


Following this answer I have found these key commands:

Q - quit
F- toggle fullscreen
Space - play/pause
L - loop
8- mute
9, 0: double volume;
Up - Seek 1 minute foward
Down - Seek 1 minute back
Right - Seek 10 seconds foward
Left - Seek 10 seconds back
Page_Up - Seek 10 minutes foward
Page_Down - Seek 10 minutes back
R - rotate texture 90 degrees
C - show or hide controls
period - frame step forward
comma - frame step backward
V - toggle subtitles
J -cycle through available audio/text/video streams
o - switch display to time left of the stream
bracketright - get current rate
minus/plus - get current av_offset

(the V key works if the subtitle is already loaded (for example through the option presented in my answer) in order to disable/enable it. But if the video is played already without subs, V key does nothing)