Apache2 server video streaming compatibility with mobile devices and PCStreaming video from Android camera to server.htaccess access controlWhat is the best way to detect a mobile device in jQuery?htacess file not workingOn-demand video streaming with single format on serverApache2: 'AH01630: client denied by server configuration'How to serve mp4 streaming video on Google App Engine BlobstoreMP4 video not playing on Apache 2 serverApache htpasswd not working inside <Files></Files> directive

ArcGIS not connecting to PostgreSQL db with all upper-case name

Is there a word to describe the feeling of being transfixed out of horror?

Drawing a topological "handle" with Tikz

Query about absorption line spectra

Is a model fitted to data or is data fitted to a model?

What is the gram­mat­i­cal term for “‑ed” words like these?

Global amount of publications over time

Did US corporations pay demonstrators in the German demonstrations against article 13?

Varistor? Purpose and principle

How should I respond when I lied about my education and the company finds out through background check?

Proof of Lemma: Every nonzero integer can be written as a product of primes

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Are lightweight LN wallets vulnerable to transaction withholding?

Why do IPv6 unique local addresses have to have a /48 prefix?

Greatest common substring

Indicating multiple different modes of speech (fantasy language or telepathy)

Two-sided logarithm inequality

Wrapping Cryptocurrencies for interoperability sake

Journal losing indexing services

How do I extrude a face to a single vertex

Could the E-bike drivetrain wear down till needing replacement after 400 km?

Open a doc from terminal, but not by its name

Longest common substring in linear time

Has Darkwing Duck ever met Scrooge McDuck?



Apache2 server video streaming compatibility with mobile devices and PC


Streaming video from Android camera to server.htaccess access controlWhat is the best way to detect a mobile device in jQuery?htacess file not workingOn-demand video streaming with single format on serverApache2: 'AH01630: client denied by server configuration'How to serve mp4 streaming video on Google App Engine BlobstoreMP4 video not playing on Apache 2 serverApache htpasswd not working inside <Files></Files> directive













0















I am experiencing troubles trying some server admin and web dev stuffs, as I am a C/C++ dev...



What I want to do is to be able to view some videos, by accessing link like http://www.mywebsite.com/username/video_001.mp4
I am running an Ubuntu 16.04.4 LTS server on a VPS Cloud from OVH.
I installed apache2 and put a .htpasswd file to restrict the access to specific valid user.
On my website .conf file, I then put some redirections to my videos folder :



Alias /username/ "/home/path/to/videos/username/"
<Directory "/home/path/to/videos/">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require user username
Options Indexes
</Directory>


My videos are MP4 / H.264, 1080p / 5fps, 1Mb/s bitrate formatted.



Everything works fine on Windows Chrome and Android (Chrome, Samsung browser).
But on iDevices, the player of the browser starts the video but displayes a black image for the duration of the video (tried iPhone and iPad with Safari, Chrome and Firefox / and on iMac, Safari and Chrome doesn't works, but I can download the video and view it using VLC not QuickTime).



I read somewhere that for compatibility reasons, I must keep the raw file and let the device/browser's player read it. That's why I don't really want to devlop a HTML5 player.



But, if I want to get the most compatibilty possible, what is the best solution ?



I thought I'd convert my .mp4 file to .ogv and .webm, put everything in a directory, and make a small html page that will list the directory content, hidding non compatible files.
Like if I detect the HTTP_AGENT / browser, I'll know which file i'll put a like in my webpage (for example : for Android, my page will serve as an "Index Of", only displaying .mp4 file / on iDevices something else).
But doesn't seems really reliable...



EDIT :
I discovered that the native video player inside iDevices and Windows Microsoft Edge can't read MP4 videos (1920x1072, 5fps, 1Mb/s) recorded using openRTSP. But, if I use FFMPEG to convert the file, it is readable.



Maybe I'm doing something wrong with the options of openRTSP, but I'd like to keep using it and not FFMPEG (we switched from it to resolve lot of artefacts).



Feel free to ask for complement !










share|improve this question




























    0















    I am experiencing troubles trying some server admin and web dev stuffs, as I am a C/C++ dev...



    What I want to do is to be able to view some videos, by accessing link like http://www.mywebsite.com/username/video_001.mp4
    I am running an Ubuntu 16.04.4 LTS server on a VPS Cloud from OVH.
    I installed apache2 and put a .htpasswd file to restrict the access to specific valid user.
    On my website .conf file, I then put some redirections to my videos folder :



    Alias /username/ "/home/path/to/videos/username/"
    <Directory "/home/path/to/videos/">
    AuthType Basic
    AuthName "Restricted Content"
    AuthUserFile /etc/apache2/.htpasswd
    Require user username
    Options Indexes
    </Directory>


    My videos are MP4 / H.264, 1080p / 5fps, 1Mb/s bitrate formatted.



    Everything works fine on Windows Chrome and Android (Chrome, Samsung browser).
    But on iDevices, the player of the browser starts the video but displayes a black image for the duration of the video (tried iPhone and iPad with Safari, Chrome and Firefox / and on iMac, Safari and Chrome doesn't works, but I can download the video and view it using VLC not QuickTime).



    I read somewhere that for compatibility reasons, I must keep the raw file and let the device/browser's player read it. That's why I don't really want to devlop a HTML5 player.



    But, if I want to get the most compatibilty possible, what is the best solution ?



    I thought I'd convert my .mp4 file to .ogv and .webm, put everything in a directory, and make a small html page that will list the directory content, hidding non compatible files.
    Like if I detect the HTTP_AGENT / browser, I'll know which file i'll put a like in my webpage (for example : for Android, my page will serve as an "Index Of", only displaying .mp4 file / on iDevices something else).
    But doesn't seems really reliable...



    EDIT :
    I discovered that the native video player inside iDevices and Windows Microsoft Edge can't read MP4 videos (1920x1072, 5fps, 1Mb/s) recorded using openRTSP. But, if I use FFMPEG to convert the file, it is readable.



    Maybe I'm doing something wrong with the options of openRTSP, but I'd like to keep using it and not FFMPEG (we switched from it to resolve lot of artefacts).



    Feel free to ask for complement !










    share|improve this question


























      0












      0








      0








      I am experiencing troubles trying some server admin and web dev stuffs, as I am a C/C++ dev...



      What I want to do is to be able to view some videos, by accessing link like http://www.mywebsite.com/username/video_001.mp4
      I am running an Ubuntu 16.04.4 LTS server on a VPS Cloud from OVH.
      I installed apache2 and put a .htpasswd file to restrict the access to specific valid user.
      On my website .conf file, I then put some redirections to my videos folder :



      Alias /username/ "/home/path/to/videos/username/"
      <Directory "/home/path/to/videos/">
      AuthType Basic
      AuthName "Restricted Content"
      AuthUserFile /etc/apache2/.htpasswd
      Require user username
      Options Indexes
      </Directory>


      My videos are MP4 / H.264, 1080p / 5fps, 1Mb/s bitrate formatted.



      Everything works fine on Windows Chrome and Android (Chrome, Samsung browser).
      But on iDevices, the player of the browser starts the video but displayes a black image for the duration of the video (tried iPhone and iPad with Safari, Chrome and Firefox / and on iMac, Safari and Chrome doesn't works, but I can download the video and view it using VLC not QuickTime).



      I read somewhere that for compatibility reasons, I must keep the raw file and let the device/browser's player read it. That's why I don't really want to devlop a HTML5 player.



      But, if I want to get the most compatibilty possible, what is the best solution ?



      I thought I'd convert my .mp4 file to .ogv and .webm, put everything in a directory, and make a small html page that will list the directory content, hidding non compatible files.
      Like if I detect the HTTP_AGENT / browser, I'll know which file i'll put a like in my webpage (for example : for Android, my page will serve as an "Index Of", only displaying .mp4 file / on iDevices something else).
      But doesn't seems really reliable...



      EDIT :
      I discovered that the native video player inside iDevices and Windows Microsoft Edge can't read MP4 videos (1920x1072, 5fps, 1Mb/s) recorded using openRTSP. But, if I use FFMPEG to convert the file, it is readable.



      Maybe I'm doing something wrong with the options of openRTSP, but I'd like to keep using it and not FFMPEG (we switched from it to resolve lot of artefacts).



      Feel free to ask for complement !










      share|improve this question
















      I am experiencing troubles trying some server admin and web dev stuffs, as I am a C/C++ dev...



      What I want to do is to be able to view some videos, by accessing link like http://www.mywebsite.com/username/video_001.mp4
      I am running an Ubuntu 16.04.4 LTS server on a VPS Cloud from OVH.
      I installed apache2 and put a .htpasswd file to restrict the access to specific valid user.
      On my website .conf file, I then put some redirections to my videos folder :



      Alias /username/ "/home/path/to/videos/username/"
      <Directory "/home/path/to/videos/">
      AuthType Basic
      AuthName "Restricted Content"
      AuthUserFile /etc/apache2/.htpasswd
      Require user username
      Options Indexes
      </Directory>


      My videos are MP4 / H.264, 1080p / 5fps, 1Mb/s bitrate formatted.



      Everything works fine on Windows Chrome and Android (Chrome, Samsung browser).
      But on iDevices, the player of the browser starts the video but displayes a black image for the duration of the video (tried iPhone and iPad with Safari, Chrome and Firefox / and on iMac, Safari and Chrome doesn't works, but I can download the video and view it using VLC not QuickTime).



      I read somewhere that for compatibility reasons, I must keep the raw file and let the device/browser's player read it. That's why I don't really want to devlop a HTML5 player.



      But, if I want to get the most compatibilty possible, what is the best solution ?



      I thought I'd convert my .mp4 file to .ogv and .webm, put everything in a directory, and make a small html page that will list the directory content, hidding non compatible files.
      Like if I detect the HTTP_AGENT / browser, I'll know which file i'll put a like in my webpage (for example : for Android, my page will serve as an "Index Of", only displaying .mp4 file / on iDevices something else).
      But doesn't seems really reliable...



      EDIT :
      I discovered that the native video player inside iDevices and Windows Microsoft Edge can't read MP4 videos (1920x1072, 5fps, 1Mb/s) recorded using openRTSP. But, if I use FFMPEG to convert the file, it is readable.



      Maybe I'm doing something wrong with the options of openRTSP, but I'd like to keep using it and not FFMPEG (we switched from it to resolve lot of artefacts).



      Feel free to ask for complement !







      ios apache mobile video-streaming apache2.4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 13 '18 at 16:08







      Batbx

















      asked Sep 13 '18 at 8:13









      BatbxBatbx

      114




      114






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Videos recorded with openRTSP are not playable on iDevices.
          It seems that Live555 (openRTSP team) indicates it in its FAQ and has already transfered the information to Apple without any news.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52309355%2fapache2-server-video-streaming-compatibility-with-mobile-devices-and-pc%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Videos recorded with openRTSP are not playable on iDevices.
            It seems that Live555 (openRTSP team) indicates it in its FAQ and has already transfered the information to Apple without any news.






            share|improve this answer



























              1














              Videos recorded with openRTSP are not playable on iDevices.
              It seems that Live555 (openRTSP team) indicates it in its FAQ and has already transfered the information to Apple without any news.






              share|improve this answer

























                1












                1








                1







                Videos recorded with openRTSP are not playable on iDevices.
                It seems that Live555 (openRTSP team) indicates it in its FAQ and has already transfered the information to Apple without any news.






                share|improve this answer













                Videos recorded with openRTSP are not playable on iDevices.
                It seems that Live555 (openRTSP team) indicates it in its FAQ and has already transfered the information to Apple without any news.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 9:10









                BatbxBatbx

                114




                114





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52309355%2fapache2-server-video-streaming-compatibility-with-mobile-devices-and-pc%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    1928 у кіно

                    Захаров Федір Захарович

                    Ель Греко