Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (28)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5635)

  • ffmpeg how to open from browser and save in server

    11 février 2021, par leo

    The following code split one video from the server and save the video in the server , but how ffmpeg gets a video directly from browser ,(html5 video uploaded for the user )

    


    Code

    


    <video crossorigin="anonymous"></video>&#xA;&#xA;&#xA;&lt;?php &#xA;if (isset($_POST["submit"])){&#xA;require &#x27;vendor/autoload.php&#x27;;&#xA;$ffmpeg = FFMpeg\FFMpeg::create();&#xA;$video = $ffmpeg->open(&#x27;myvideos/video.mp4&#x27;); ** how i get uservideo  without upload the video into the server?** &#xA;$video&#xA;->filters()&#xA;->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(2), FFMpeg\Coordinate\TimeCode::fromSeconds(3));&#xA;$video&#xA;->save(new FFMpeg\Format\Video\WMV(), &#x27;myvideos/clipedvideo.wmv&#x27;);  &#xA;}?>    &#xA;

    &#xA;

  • Getting this error using ffmpeg concat in ReactNative "concat imposible to open"

    2 février 2021, par Josip Bogdan

    Hy, I am trying to concat multyple video using ffmpeg concat, testing on samsung j76, android version 8.1.0

    &#xA;

    const textFile = await (await writeTextFileWithAllVideoFiles(filePaths))  &#xA;const outputPath = Platform.OS === &#x27;ios&#x27; ? `${RNFS.DocumentDirectoryPath}/video-1.mp4` : `${RNFS.DocumentDirectoryPath}/video-1.mp4`&#xA;console.log(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)&#xA;const result = await RNFFmpeg.execute(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)&#xA;

    &#xA;

    And here is how I create the txt file

    &#xA;

    const writeTextFileWithAllVideoFiles = async (filePaths) => {&#xA;var RNFS = require(&#x27;react-native-fs&#x27;);&#xA;var path = RNFS.DocumentDirectoryPath &#x2B; &#x27;/videoList.txt&#x27;;&#xA;&#xA;var fileContent = &#x27;&#x27;&#xA;console.log("fileplay1");&#xA;filePaths.forEach(path => {&#xA;   fileContent &#x2B;= &#x27;file &#x27; &#x2B; &#x27;\&#x27;&#x27; &#x2B; path.substring(8) &#x2B; &#x27;\&#x27;&#x27; &#x2B; &#x27;\r\n&#x27;&#xA;});&#xA;console.log(fileContent);&#xA;return RNFS.writeFile(path, fileContent, &#x27;utf8&#x27;)&#xA;.then((success) => {&#xA;   console.log(path)&#xA;   if (RNFS.exists(path))&#xA;      console.log(&#x27;FILE WRITTEN!&#x27;)&#xA;   return path&#xA;})&#xA;.catch((err) => {&#xA;    console.log(err.message)&#xA;    return err.message&#xA;});  &#xA;}&#xA;

    &#xA;

    This is my console log output

    &#xA;

    file &#x27;data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4&#x27;&#xA;file &#x27;data/user/0/com.videoeditorapp/cache/Camera/58130175-bd20-4002-9629-070d0cdd18ac.mp4&#x27;&#xA;&#xA;[Tue Feb 02 2021 16:30:45.375]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt&#xA;[Tue Feb 02 2021 16:30:45.376]  LOG      FILE WRITTEN!&#xA;[Tue Feb 02 2021 16:30:45.376]  LOG      -f concat -safe 0 -i /data/user/0/com.videoeditorapp/files/videoList.txt -c copy /data/user/0/com.videoeditorapp/files/video-1.mp4&#xA;[Tue Feb 02 2021 16:30:45.376]  LOG      [concat @ 0xe2b22000] Impossible to open &#x27;/data/user/0/com.videoeditorapp/files/data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4&#x27;&#xA;[Tue Feb 02 2021 16:30:45.377]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt: No such file or directory&#xA;

    &#xA;

    And the txt file is not on my android device&#xA;My manifest is like this

    &#xA;

    &#xA;  &#xA;      &#xA;&#xA;<application></application>&#xA;

    &#xA;

  • Cannot open connection tcp ://localhost:1935 when to set up custom RTMP stream server

    8 janvier 2021, par showkey

    My simple network is as following :

    &#xA;

    192.168.31.52 is my local pc &#xA;192.168.31.251 is an ip camera.&#xA;

    &#xA;

    I can open the stream rtsp://192.168.31.251/cam/realmonitor?channel=1&amp;subtype=0 with SMPlayer.
    &#xA;Build my nginx for customizing RTMP stream this way.

    &#xA;

    sudo apt update&#xA;sudo apt install build-essential git&#xA;sudo apt install libpcre3-dev libssl-dev zlib1g-dev &#xA;git clone https://github.com/arut/nginx-rtmp-module.git&#xA;git clone https://github.com/nginx/nginx.git&#xA;cd nginx&#xA;./auto/configure --add-module=../nginx-rtmp-module&#xA;make&#xA;sudo make install&#xA;

    &#xA;

    Set config file for nginx :

    &#xA;

    sudo vim /usr/local/nginx/conf/nginx.conf&#xA;rtmp { &#xA;    server { &#xA;        listen 1935; &#xA;        application live { &#xA;            live on; &#xA;            interleave on;&#xA; &#xA;            hls on; &#xA;            hls_path /tmp/hls; &#xA;            hls_fragment 15s; &#xA;        } &#xA;    } &#xA;} &#xA;

    &#xA;

    Then set permission for nginx :

    &#xA;

    mkdir /tmp/hls&#xA;sudo chmod -R 755  /tmp/hls&#xA;sudo chown -R www-data:www-data  /tmp/hls&#xA;

    &#xA;

    Edit index.html in /tmp/hls.

    &#xA;

    <p>test for nginx</p>&#xA;

    &#xA;

    Both 127.0.0.1/index.html and 192.168.31.52/index.html can open the /tmp/hls/index.html.

    &#xA;

    Now open port 1935 on my network :

    &#xA;

    sudo firewall-cmd --zone=public --add-port=1935/tcp --permanent&#xA;sudo firewall-cmd --reload &#xA;sudo firewall-cmd --list-ports | grep 1935&#xA;1935/tcp&#xA;

    &#xA;

    Start nginx :

    &#xA;

    sudo systemctl start nginx&#xA;

    &#xA;

    Up stream the rtsp stream from ip camera—192.168.31.251 to local pc —192.168.31.52.

    &#xA;

    input="rtsp://192.168.31.251/cam/realmonitor?channel=1&amp;subtype=0"&#xA;output="rtmp://192.168.31.52:1935/live/sample"&#xA;ffmpeg -i $input -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -r 25 -b:v 500k -s 640*480 -f flv $output&#xA;

    &#xA;

    It encounter the following errors :

    &#xA;

    [tcp @ 0x59fb700] Connection to tcp://192.168.31.52:1935 failed: Connection refused&#xA;[rtmp @ 0x59fc5c0] Cannot open connection tcp://192.168.31.52:1935&#xA;rtmp://192.168.31.52:1935/live/sample: Connection refused&#xA;

    &#xA;

    To keep the issue simple,i replace $input with a mp4 file in local pc,same error info.
    &#xA;How can fix it ?
    &#xA;Ping my machine :

    &#xA;

    ping 192.168.31.52&#xA;PING 192.168.31.52 (192.168.31.52): 56 data bytes&#xA;64 bytes from 192.168.31.52: icmp_seq=0 ttl=64 time=0.108 ms&#xA;64 bytes from 192.168.31.52: icmp_seq=1 ttl=64 time=0.107 ms&#xA;64 bytes from 192.168.31.52: icmp_seq=2 ttl=64 time=0.111 ms&#xA;

    &#xA;

    Why the port 1935 not opened,i had restarted nginx after setting ?

    &#xA;

    sudo lsof -i:1935&#xA;#nothing in the output&#xA;netstat -ltn&#xA;Active Internet connections (only servers)&#xA;Proto Recv-Q Send-Q Local Address           Foreign Address         State      &#xA;tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     &#xA;tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN     &#xA;tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     &#xA;tcp        0      0 127.0.0.1:1080          0.0.0.0:*               LISTEN     &#xA;tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     &#xA;tcp        0      0 127.0.0.1:8123          0.0.0.0:*               LISTEN     &#xA;tcp        0      0 127.0.0.1:8384          0.0.0.0:*               LISTEN     &#xA;tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN     &#xA;tcp6       0      0 :::3306                 :::*                    LISTEN     &#xA;tcp6       0      0 :::80                   :::*                    LISTEN     &#xA;tcp6       0      0 :::22000                :::*                    LISTEN     &#xA;tcp6       0      0 :::51413                :::*                    LISTEN     &#xA;tcp6       0      0 :::21                   :::*                    LISTEN     &#xA;tcp6       0      0 :::22                   :::*                    LISTEN     &#xA;tcp6       0      0 ::1:25                  :::*                    LISTEN     &#xA;tcp6       0      0 :::2681                 :::*                    LISTEN  &#xA;

    &#xA;

    Firewall command can't work :

    &#xA;

    sudo firewall-cmd --zone=public --add-port=1935/tcp --permanent&#xA;sudo firewall-cmd --reload &#xA;

    &#xA;

    My nginx version :

    &#xA;

    sudo nginx -v&#xA;nginx version: nginx/1.10.3&#xA;

    &#xA;