Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Video Streaming in Apache

  1. #1
    Join Date
    Jan 2012
    Beans
    31

    Video Streaming in Apache

    Hi,

    I am trying to stream videos from a local server (localhost), but all videos are getting downloaded. I need to stream videos (all video formats) with seeking option from a web browser.


    I am using Ubuntu 12.04, apache 2.2. It would be very much helpful if anyone can provide a detailed solution for this?


    Regards,
    Anees

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Video Streaming in Apache

    These three should do streaming of video for you, but none of them are actually Apache. They do however support a wide variety of formats/codecs.

    Icecast

    http://www.icecast.org/faq.php

    http://www.icecast.org/ezstream.php


    FFMPEG

    http://ffmpeg.org/

    VLC

    http://www.videolan.org/vlc/streaming.html

  3. #3
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Video Streaming in Apache

    You didn't give us much information to work with. What have you tried? What formats are you attempting to play? Note that "all video formats" are not able to be played via a web browser. Do you want streaming (as in a live broadcast where the encoder is working in real time) or progressive download (like most video sites where the video has been previously encoded and the viewer watches-as-it-downloads)?

  4. #4
    Join Date
    Jan 2012
    Beans
    31

    Re: Video Streaming in Apache

    Thanks for replying. Let me look into those.

  5. #5
    Join Date
    Jan 2012
    Beans
    31

    Re: Video Streaming in Apache

    Quote Originally Posted by FakeOutdoorsman View Post
    You didn't give us much information to work with. What have you tried? What formats are you attempting to play? Note that "all video formats" are not able to be played via a web browser. Do you want streaming (as in a live broadcast where the encoder is working in real time) or progressive download (like most video sites where the video has been previously encoded and the viewer watches-as-it-downloads)?
    I put the videos in different formats (flv, avi, mp4, wmv etc..) in the Document root of the server. Then I tried to access them from browser as localhost. When I click on the video, it's getting downloaded. I want to make them stream with the option to "seek" as in Youtube. Downloading them and playing them is space & time consuming and is not what is required.

    I could play mp3 files, view documents etc.. all via browser without getting downloaded. I need to make videos also like that. Actually it is for setting up ad digital resource center for providing tutorial videos for students, from a local server (within an institution). It need not be accessed worldwide.

    Please suggest apt solutions for this.

    Regards,
    Anees

  6. #6
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,790

    Re: Video Streaming in Apache

    ffserver

  7. #7
    Join Date
    Jan 2012
    Beans
    31

    Re: Video Streaming in Apache

    Quote Originally Posted by HermanAB View Post
    ffserver

    Thanks for the reply.

    Could you please elaborate its working. From this link http://www.ffmpeg.org/ffserver.html, I think it will only help for real time video streaming. (http://www.ffmpeg.org/ffserver.html#...n-this-do_003f).

    I think it wont serve my purpose. Any other suggestions?


    Regards,
    Anees

  8. #8
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Video Streaming in Apache

    From the ffserver page:

    "It can also stream from files, though that is currently broken. Very often, a web server can be used to serve up the files just as well."

    I don't think that will solve the OP's problem.

    I'm curious about this, too. I'd like to watch videos on my server with my Android phone, but simply retrieving them from Apache results in the file being downloaded rather than streamed. I installed VLC on my server, but so far have been unable to figure out the right set of command-line parameters to get it to stream an existing file. Most of the comments on the web concern streaming from things like cameras or TV cards.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  9. #9
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Video Streaming in Apache

    You can pick from any number of the embedded video players available, or just code your own page using a few lines of HTML5.


    http://jarisflvplayer.org/
    http://www.longtailvideo.com/jw-player/download/
    http://flowplayer.org/
    http://www.w3schools.com/html/html_videos.asp
    http://www.instantshift.com/2010/05/...ite-and-blogs/
    Cheesemill

  10. #10
    Join Date
    Jan 2012
    Beans
    31

    Re: Video Streaming in Apache

    Thanks everyone for your replies. It's now working almost for me with the help of htaccess. I added following contents to .htaccess file in Document Root :

    # MIME types for Video
    AddType video/mp4 .mp4 .m4v .f4v .f4p
    AddType video/ogg .ogv
    AddType video/webm .webm
    AddType video/flv .flv


    Now the videos are not getting downloaded. I am able to stream videos within a LAN

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •