I want to play an mp4 file when my account is logged into. How can I do this?

It should be noted that the file also has video, so I only want the sound to be played, and not the video to be shown. And I also don't want any program to be visually launched, so for instance if on every startup VLC Player launched playing that file that would not be acceptable.

I am running Ubuntu GNOME 15.10 with GNOME 3.18.

  • 1
    Care to have the video converted to Ogg Vorbis? You do say "audio file" in the title, and then say "file also has video"... which is just plain ridiculous. – muru Nov 22 '15 at 22:14
  • @muru: "Ogg Vorbis"? – user364819 Nov 22 '15 at 22:19
  • Ogg is a container format, Vorbis is a free audio codec. It is the most popular free audio format, except perhaps FLAC. The Ubuntu login sounds, for example, are/were always in .ogg. – muru Nov 22 '15 at 22:26
  • Simply converting the file to an audio file would make the question much simpler, and people much more willing to help you – Hellreaver Nov 23 '15 at 2:19

You have a two-fold question, both have been answered before:

Convert video to audio

and

Replace the system ready sound

TL;DR: convert video to audio first, then replace the audio file that plays with the one you want. Remember to keep original file as backup

  • Well, firstly Ubuntu GNOME does not have a noise on login, and secondly, in the /usr/share/sounds/ there is no ubuntu folder, nor do any of the others lead to anything other than the default alert sounds seemingly. – user364819 Nov 24 '15 at 16:49
  • @ParanoidPanda you're using Ubuntu GNOME. Only Ubuntu has the classic login sound, via ubuntu-sounds. Same difference. – muru Nov 26 '15 at 12:06
  • @muru: So do I need to install that package then? – user364819 Nov 26 '15 at 12:43
  • @ParanoidPanda Nah. You should just run canberra-gtk-play /path/to/some/file.ogg at startup. – muru Nov 26 '15 at 12:46

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.