Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (15118)

  • Bash, ffmpeg and pipe musings

    4 septembre 2016, par nick

    I am trying to run Monit with this script. This script is running perfectly under root from command line however, when I try to run it from shell environment, it does not work after pipe sign, i.e. when I debug I can see it runs till pipe sign and ffmpeg command after pipe sign is not running neither from root nor any other user. Your help would be appreciated.

    #!/bin/sh
    pid_file="/home/tester/radio1.pid"
    name="radio1"

    case "$1" in
    start)

       echo "Start radio";
       rtl_fm -f 93.2970M -M wbfm | /opt/ffmpeg_qsv/ffmpeg/ffmpeg -f s16le -ac 1 -i pipe:0  -acodec libmp3lame -ab 128k -f flv rtmp://localhost:1935/live/test" &
           ch_pid=$!
       echo $ch_pid
       echo $ch_pid > $pid_file
       echo `( >>/dev/null )&`;
            ;;

    stop)
       echo "Stop radio";
       PID=`cat $pid_file 2>/dev/null`
       kill $PID >/dev/null 2>&1
           rm -f $pid_file
            ;;
           *)
       echo "Usage: /etc/init.d/$name {start|stop}"
            exit 1
            ;;
    esac


    exit 0
  • Error writing trailer of feed1.ffm Broken pipe

    28 août 2016, par Bullgod

    i’m using ffserver to streaming videos but i have a problem when i create the playlist to stream.
    The problem is :

    av_interleaved_write_frame(): Broken pipe
    Error writing trailer of http://localhost:8090/feed1.ffm: Broken pipe

    The Command with the problem is :

    # ffmpeg -i 16portrait.mp4 http://localhost:8090/feed1.ffm
    ffmpeg version git-2016-08-27-dc7e5ad Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
    configuration : —prefix=/root/ffmpeg_build —extra-cflags=-I/root/ffmpeg_build/include —extra-ldflags=-L/root/ffmpeg_build/lib —bindir=/root/bin —extra-libs=-ldl —enable-gpl —enable-nonfree —enable-libfdk_aac —enable-libmp3lame —enable-libopus —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libfreetype —enable-libspeex —enable-libtheora
    libavutil 55. 29.100 / 55. 29.100
    libavcodec 57. 54.100 / 57. 54.100
    libavformat 57. 48.100 / 57. 48.100
    libavdevice 57. 0.102 / 57. 0.102
    libavfilter 6. 57.100 / 6. 57.100
    libswscale 4. 1.100 / 4. 1.100
    libswresample 2. 1.100 / 2. 1.100
    libpostproc 54. 0.100 / 54. 0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’16portrait.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    date : 2013-11-29T13:19:09+0100
    encoder : Lavf57.41.100
    location-fra : +48.8789+002.3376+48.927994/
    location : +48.8789+002.3376+48.927994/
    Duration : 00:00:02.12, start : -0.025057, bitrate : 1226 kb/s
    Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 320x568, 978 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    (default)
    Metadata :
    handler_name : VideoHandler
    Stream #0:1(und) : Audio : mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 256 kb/s (default)
    Metadata :
    handler_name : SoundHandler
    [tcp @ 0x3f08e20] Connection to tcp ://localhost:8090 failed (Connection refused), trying next address
    [tcp @ 0x3f29ee0] Connection to tcp ://localhost:8090 failed (Connection refused), trying next address
    [libvpx @ 0x3f15cc0] v1.6.0
    [ffm @ 0x3f8c640] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
    Output #0, ffm, to ’http://localhost:8090/feed1.ffm’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    date : 2013-11-29T13:19:09+0100
    creation_time : now
    location-fra : +48.8789+002.3376+48.927994/
    location : +48.8789+002.3376+48.927994/
    encoder : Lavf57.48.100
    Stream #0:0(und) : Audio : vorbis (libvorbis), 22050 Hz, mono, fltp, 64 kb/s (default)
    Metadata :
    handler_name : SoundHandler
    encoder : Lavc57.54.100 libvorbis
    Stream #0:1(und) : Video : vp8 (libvpx), yuv420p, 720x576, q=10-42, 400 kb/s, 29.97 fps, 1000k tbn, 25 tbc (default)
    Metadata :
    handler_name : VideoHandler
    encoder : Lavc57.54.100 libvpx
    Side data :
    cpb : bitrate max/min/avg : 0/0/0 buffer size : 800000 vbv_delay : -1
    Stream mapping :
    Stream #0:1 -> #0:0 (mp3 (native) -> vorbis (libvorbis))
    Stream #0:0 -> #0:1 (h264 (native) -> vp8 (libvpx))
    Press [q] to stop, [?] for help
    av_interleaved_write_frame() : Broken pipe
    Error writing trailer of http://localhost:8090/feed1.ffm : Broken pipeframe= 3 fps=0.0 q=0.0 Lsize= 60kB time=00:00:00.08
    bitrate=6143.9kbits/s dup=1 drop=0 speed=0.44x
    video:50kB audio:0kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead : 19.768417%
    Conversion failed !

  • Pipe opencv frames to ffmpeg

    17 juillet 2016, par baci

    I am trying to pipe opencv frames to ffmpeg using rawvideo format, which should accept the input as BGRBGRBGR... encoding the frame before piping is not an option.

    cv::Mat frame;
    cv::VideoCapture cap("cap.avi");

    while(1)
    {
       cap >> frame;
       if(!frame.data) break;

       // some processing

       cv::Mat array = frame.reshape(0, 1); // to make continuous
       std::string output((char*) array.data, array.total() * array.elemSize());
       std::cout << output;
    }

    with command

    cap.exe | ffplay -f rawvideo -pixel_format bgr24 -video_size 1920x1080 -framerate 10 -i -

    gives this kind of distorted result

    I think problem is not related to ffmpeg/ffplay, but something is wrong with my frame to raw conversion

    how to convert mat with 3 channels to rawvideo bgr24 format ?