ffmpeg permissions trouble












0















Try to capture RTSP stream with ffmpeg. Everything goes nice, if I save video to my home folder. Can't save to another directory. ffmpeg says 'Permission denied' even directory premission is 777.

In short:



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an new.mp4


good



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an folder777/new.mp4


Ubuntu Server 18.04.02. ffmpeg snap package v.4.1.

Any suggestion?










share|improve this question


















  • 2





    Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

    – Philip Couling
    Feb 14 at 13:48











  • No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

    – Роман Голдованський
    Feb 16 at 23:53








  • 2





    You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

    – Philip Couling
    Feb 17 at 9:38








  • 1





    You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

    – Роман Голдованський
    Feb 18 at 9:29






  • 1





    SOLVED! Have to "snap connect" interface removable-media.

    – Роман Голдованський
    Feb 18 at 12:01
















0















Try to capture RTSP stream with ffmpeg. Everything goes nice, if I save video to my home folder. Can't save to another directory. ffmpeg says 'Permission denied' even directory premission is 777.

In short:



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an new.mp4


good



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an folder777/new.mp4


Ubuntu Server 18.04.02. ffmpeg snap package v.4.1.

Any suggestion?










share|improve this question


















  • 2





    Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

    – Philip Couling
    Feb 14 at 13:48











  • No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

    – Роман Голдованський
    Feb 16 at 23:53








  • 2





    You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

    – Philip Couling
    Feb 17 at 9:38








  • 1





    You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

    – Роман Голдованський
    Feb 18 at 9:29






  • 1





    SOLVED! Have to "snap connect" interface removable-media.

    – Роман Голдованський
    Feb 18 at 12:01














0












0








0








Try to capture RTSP stream with ffmpeg. Everything goes nice, if I save video to my home folder. Can't save to another directory. ffmpeg says 'Permission denied' even directory premission is 777.

In short:



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an new.mp4


good



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an folder777/new.mp4


Ubuntu Server 18.04.02. ffmpeg snap package v.4.1.

Any suggestion?










share|improve this question














Try to capture RTSP stream with ffmpeg. Everything goes nice, if I save video to my home folder. Can't save to another directory. ffmpeg says 'Permission denied' even directory premission is 777.

In short:



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an new.mp4


good



ffmpeg  -i 'rtsp://192.168.0.161:554/11' -c:v copy -an folder777/new.mp4


Ubuntu Server 18.04.02. ffmpeg snap package v.4.1.

Any suggestion?







permissions ffmpeg






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 14 at 13:29









Роман ГолдованськийРоман Голдованський

123




123








  • 2





    Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

    – Philip Couling
    Feb 14 at 13:48











  • No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

    – Роман Голдованський
    Feb 16 at 23:53








  • 2





    You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

    – Philip Couling
    Feb 17 at 9:38








  • 1





    You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

    – Роман Голдованський
    Feb 18 at 9:29






  • 1





    SOLVED! Have to "snap connect" interface removable-media.

    – Роман Голдованський
    Feb 18 at 12:01














  • 2





    Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

    – Philip Couling
    Feb 14 at 13:48











  • No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

    – Роман Голдованський
    Feb 16 at 23:53








  • 2





    You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

    – Philip Couling
    Feb 17 at 9:38








  • 1





    You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

    – Роман Голдованський
    Feb 18 at 9:29






  • 1





    SOLVED! Have to "snap connect" interface removable-media.

    – Роман Голдованський
    Feb 18 at 12:01








2




2





Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

– Philip Couling
Feb 14 at 13:48





Which folder are you trying to save to? There are other reasons than file permissions for getting "permission denied".

– Philip Couling
Feb 14 at 13:48













No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

– Роман Голдованський
Feb 16 at 23:53







No matter which folder is. I've tried different folders and diffrrent styles (short: folder/new.mp4; full: /home/user/folder/new.mp4) It can write to home folder (/home/user/) only. What reasons are you talking about? I'd like to listen it.

– Роман Голдованський
Feb 16 at 23:53






2




2





You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

– Philip Couling
Feb 17 at 9:38







You've missed my point. There are certain things like fusermount that can cause "permission denied" even when file permissions allow. The fact this is a snap package already makes me suspicious this is a mounting issue. Please add an example of where you are trying. Also copy the exact message from the command line. "Permission denied" is rarely printed on a line on its own. If you are doing anything to change user at your terminal, beyond your regular login please state that also.

– Philip Couling
Feb 17 at 9:38






1




1





You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

– Роман Голдованський
Feb 18 at 9:29





You're right, Philip. It's a mounting issue. I've tried to change folder which is located at the same drive as home folder. And it works. I've used defaults in fstab mounting (ext4). Still finding solution by trying different mount options, but your help is very valuable. Thx a lot.

– Роман Голдованський
Feb 18 at 9:29




1




1





SOLVED! Have to "snap connect" interface removable-media.

– Роман Голдованський
Feb 18 at 12:01





SOLVED! Have to "snap connect" interface removable-media.

– Роман Голдованський
Feb 18 at 12:01










1 Answer
1






active

oldest

votes


















0














The thing is I've tried to save video to the folders located at mounted partition. And my snap package have no connection to interface "removable-media". After connection everything works great.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f500623%2fffmpeg-permissions-trouble%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









    0














    The thing is I've tried to save video to the folders located at mounted partition. And my snap package have no connection to interface "removable-media". After connection everything works great.






    share|improve this answer




























      0














      The thing is I've tried to save video to the folders located at mounted partition. And my snap package have no connection to interface "removable-media". After connection everything works great.






      share|improve this answer


























        0












        0








        0







        The thing is I've tried to save video to the folders located at mounted partition. And my snap package have no connection to interface "removable-media". After connection everything works great.






        share|improve this answer













        The thing is I've tried to save video to the folders located at mounted partition. And my snap package have no connection to interface "removable-media". After connection everything works great.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 18 at 13:06









        Роман ГолдованськийРоман Голдованський

        123




        123






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f500623%2fffmpeg-permissions-trouble%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?