Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (59)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7151)

  • Stream low latency RTSP video to android with ffmpeg

    21 octobre 2014, par grzebyk

    I am trying to stream live webcam video from Ubuntu 12.04 PC to android device with KitKat. So far I’ve written ffserver config file to receive ffm feed and broadcast it through a rtsp protocol. I am able to watch the stream on the other computer in the same LAN with ffplay.

    How to watch the stream on the android device ? The following code works well when the webcam image is streamed with vlc but it doesn’t with ffmpeg :

    public class MainActivity extends Activity implements MediaPlayer.OnPreparedListener,
           SurfaceHolder.Callback {

       final static String RTSP_URL = "rtsp://192.168.1.54:4424/test.sdp";

       private MediaPlayer _mediaPlayer;
       private SurfaceHolder _surfaceHolder;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           // Set up a full-screen black window.
           requestWindowFeature(Window.FEATURE_NO_TITLE);
           Window window = getWindow();
           window.setFlags(
                   WindowManager.LayoutParams.FLAG_FULLSCREEN,
                   WindowManager.LayoutParams.FLAG_FULLSCREEN);
           window.setBackgroundDrawableResource(android.R.color.black);
           getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
           setContentView(R.layout.activity_main);

           // Configure the view that renders live video.
           SurfaceView videoView =
                   (SurfaceView) findViewById(R.id.videoView); //where R.id.videoView is a simple SurfaceView element in the layout xml file
           _surfaceHolder = videoView.getHolder();
           _surfaceHolder.addCallback(this);
           _surfaceHolder.setFixedSize(320, 240);
       }
       @Override
       public void surfaceCreated(SurfaceHolder surfaceHolder) {
           _mediaPlayer = new MediaPlayer();
           _mediaPlayer.setDisplay(_surfaceHolder);
           Context context = getApplicationContext();
           Uri source = Uri.parse(RTSP_URL);
           try {
               // Specify the IP camera's URL and auth headers.
               _mediaPlayer.setDataSource(context, source);

               // Begin the process of setting up a video stream.
               _mediaPlayer.setOnPreparedListener(this);
               _mediaPlayer.prepareAsync();
           }
           catch (Exception e) {}
       }
       @Override
       public void onPrepared(MediaPlayer mediaPlayer) {
           _mediaPlayer.start();
       }
    }

    My ffserver.config file :

    HTTPPort 8090
    RTSPBindAddress 0.0.0.0
    RTSPPort 4424
    MaxBandwidth 10000
    CustomLog -

    <feed>
           File /tmp/feed1.ffm
           FileMaxSize 20M
           ACL allow 127.0.0.1
    </feed>
    <stream>
       Feed feed1.ffm
       Format rtp  
       VideoCodec libx264
       VideoSize 640x480
       AVOptionVideo flags +global_header
       AVOptionVideo me_range 16
       AVOptionVideo qdiff 4
       AVOptionVideo qmin 10
       AVOptionVideo qmax 51
       Noaudio
       ACL allow localhost
           ACL allow 192.168.0.0 192.168.255.255
    </stream>

    I am starting the stream with this command : ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -b:v 600k http://localhost:8090/feed1.ffm

  • ffmpeg is not creating screenshot from video

    1er décembre 2014, par hitesh

    I need to create a screen shot from video,

    I have followed this tutorial to do the intial setup

    1) I downloaded the ffmpeg from here -[
    http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.

    2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and phpinfo() shows that ffmpeg has been installed.

    3) Then I tried this to find out whether it is working or not,

    It worked successfully

    4) Next I followed this video tutorial here , but for some reason video thumbnails are not created.

    Not able to find the problem, I don’t see any error also.

    below is my code

    /**
    * FFMPEG-PHP Test Script
    *
    * Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example!
    * See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php.
    */
    error_reporting(1);
    error_reporting(E_ALL ^ E_NOTICE);
    // Check if the ffmpeg-php extension is loaded first
    extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

    // Determine the full path for our video
    $vid = realpath('./videos/myvideo.mp4');
    $videosize = filesize($vid);
    $remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4';

    //ffmpeg

    $ffmpeg = dirname(__FILE__) . "\bin\\ffmpeg";
    $imageFile = "1.png";
    $image2 = "2.png";
    $size = "120x90";
    $getfromsecond = 7;
    $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile";
    $cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2";
    if(!shell_exec($cmd)){
       echo "Thumbnail created";
    }else{
       echo "Error Creating thumbnail";
    }

    if(!shell_exec($cmd2)){
       echo "Thumbnail for remote url was created";
    }else{
       echo "Error Creating thumbnail for remote url ";
    }

     OUTPUT
       Thumbnail created
       Thumbnail for remote url was created

    Please help me solve this issue.

  • How to ffprobe YouTube videos

    3 juillet 2020, par nicholas

    How can I get duration, width and height of YouTube video using FFprobe ?

    &#xA;

    I tried

    &#xA;

    ffprobe -i https://www.youtube.com/watch?v=YkgkThdzX-8 -v quiet -print_format json -show_streams -hide_banner&#xA;

    &#xA;

    but it returns an empty json

    &#xA;