Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (67)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (7026)

  • Can VideoView be detach and reattached without stopping the stream ?

    17 septembre 2018, par Thierry-Dimitri Roy

    I’m building an app where the user clicks on a button to show a video full screen. Initially the video is attached to a view inside a ViewPager. To be able to show it fullscreen I detach it from its parent and reattach it to the root view. This works fine, except when the video is switched to fullscreen while playing. When I detach a playing VideoView it just stop and I need to restart it. This is not acceptable since the video starts buffering before resume. Here the part of the code where the detach is done :

       final ViewGroup parent = (ViewGroup) findViewById(R.id.parent);

       final ViewGroup root = (ViewGroup) findViewById(R.id.root);

       Button b = (Button) findViewById(R.id.button);
       b.setOnClickListener(new OnClickListener() {

           @Override
           public void onClick(View v) {
               parent.removeView(mVideoView);

               LayoutParams lp = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
               root.addView(mVideoView, lp);
           }
       });

    Depending of the device, I have a different log error. Probably because the actual video player is provided by the manufacturer and not the Android SDK. Here are the error logs for a Nexus 7 :

    10-30 20:26:18.618: D/NvOsDebugPrintf(124): NvMMDecTVMRDestroyParser Begin
    10-30 20:26:18.618: D/NvOsDebugPrintf(124): --------- Closing TVMR Frame Delivery Thread -------------
    10-30 20:26:18.678: D/NvOsDebugPrintf(124): ------- NvAvpClose -------
    10-30 20:26:18.678: D/NvOsDebugPrintf(124): NvMMDecTVMRDestroyParser Done
    10-30 20:26:18.678: D/NvOsDebugPrintf(124): NvMMLiteTVMRDecPrivateClose Done

    I haven’t been able to detach the video without stopping it. I tried using SurfaceView or TextureView without success.

    I also tried finding a third party video player. I found a commercial one (http://www.vitamio.org/) that I can’t really use for business reason. I found an open source one, that hasn’t been updated in the last year (https://code.google.com/p/dolphin-player/).

    I’m currently targeting Android 4.2 or better on tablet only.


    Note that the ViewPager is not fullscreen. So I can’t use LayoutParams to make the video fullscreen. I need to remove the VideoView from the parent in the ViewPager and add it to the root view to be able to show it fullscreen.

    The URL I’m testing with : http://bellvps1.cpl.delvenetworks.com/media/e1b3e24ecb944abd8f4ed823a0b76ddc/68f78d35296243bfb46d2418f03f2fd0/bande-annonce---the-secret-life-of-walter-mitty-1-9efcc5c6e52ac07a3edf84a1b21967995b7796a2.m3u8

  • Export .osp OpenShot project to ffmpeg script as workaround to video export freeze or crash by swap hell

    30 août 2018, par 1000i100

    I have a big video rush 35".

    With OpenShot i’ve cut more than 30 small sequences and concatenate them into one 25" sequence.

    Now i try to export the result as video file but OneShot randomly crash or freeze during the export/encoding between 40% and 80% so after more than an hour of encoding. It look to be a memory leek and a swap saturation with memory allocation deny because no space left.

    I’ve tried with x264(mp4) and vp8(webm) encoding, but nothing worked.

    I’ve opened the .osp file, it’s a big json file with all the clips referred like this :

    {
     clips:[
       {
         title: "",
         start:<seconds>.<decimals>,
         end:<seconds>.<decimals>,
         position:<seconds>.<decimals>
       }
     ]
    }
    </decimals></seconds></decimals></seconds></decimals></seconds>
    • title if not renamed is the inputFileName.
    • start clip start time from the input file beginning
    • end clip end time from the input file beginning
    • position clip start position in the output file timeline

    I’ve read ffmpeg can extract video parts / subclip / sequences with cut function :

    ffmpeg -ss 00:00:09.000 -i input.mp4 -to 00:00:20 output.mp4

    Time can be hh:mm:ss.xxx or hh:mm:ss or any amount of seconds, allowing decimals.

    I’ve also read ffmpeg can concat sequences :

    ffmpeg -i "concat:input1.ts|input2.ts|input3.ts" output.ts

    So, how to encode my video with these project data ?

  • Restream TS file in HTTP server to RTMP server using ffmpeg

    15 juin 2018, par MatrixCow08

    I want to restream http://example.com/1.ts to a RTMP server.

    The command I use is :

    ffmpeg -i http://example.com/1.ts -ar 44100 -preset medium -crf 22 -x264-params keyint=2:min-keyint=2 -bufsize 500k -vcodec libx264 -b:v 700k -maxrate 700k -r 25 -f flv rtmp://janjuapublisher.com/live/MY_CHANNEL_NAME?key=MY_KEY&amp;id=MY_ID

    I use www.janjua.tv to create my TV channel and it give me the RTMP details as follows :

    FMS URL : rtmp ://janjuapublisher.com/live

    Stream Name : MY_CHANNEL_NAME ?key=MY_KEY&id=MY_ID

    However, I get Connection failed: application rejected and unsupported authentication method when I run this ffmpeg command.

    My command work fine in Twitch’s RTMP server because it is easy to use, but I can’t figure out how to use JanJua.tv .. Where to put the Stream Name, Key, Secret ?

    Any help would be appreciated.

    Thanks !