Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (38)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5785)

  • Send stream from hdhomerun to AWS EC2 instance

    13 novembre 2018, par icalvete

    I’m trying something odd to get fun. Send stream from hdhomerun to AWS EC2 instance.

    First aproach. Read stream with ffmpeg
    (tested locally successfully)

    hdhomerun_config discover sya my device have ip 192.168.1.200 so I open port on my router in this way

    <my home="home" public="public" ip="ip">:5005 -> 192.168.1.200:80
    <my home="home" public="public" ip="ip">:5004 -> 192.168.1.200:5004
    </my></my>

    w3m and telnet say everything is ok.

    But...

    from EC2 instance I do

    /usr/bin/ffmpeg -y -i 'http://<my home="home" public="public" ip="ip">:5004/auto/v5057?transcode=internet240' -t 12 -vn -acodec pcm_s16le -ar 16000 -ac 1 '/tmp/test.wav'
    </my>

    In tuner1 I can see...

    Virtual Channel none
    Frequency   698.000 MHz
    Program Number  186
    Modulation Lock t8qam64
    Signal Strength 89%
    Signal Quality  100%
    Symbol Quality  100%
    Streaming Rate  none
    Resource Lock   <ec2 public="public" ip="ip">
    </ec2>

    In hdhomerun system logs...

    19700102-10:27:25 Tuner: tuner0 tuning 5057 Telecinco (t8qam64:698MHz-186)
    19700102-10:27:25 Tuner: tuner0 streaming http to <ec2 public="public" ip="ip">:34124
    </ec2>

    Everything seems ok but ffmpeg don’t get any data.

    Seccond aproach. Send stream to wowza

    I have a wowza server running in EC2 instance

    From a linux box at my home I do.

    root# /usr/bin/hdhomerun_config 1250D7B2 scan /tuner1 scan.log
    root# /usr/bin/hdhomerun_config 1250D7B2 set /tuner1/channel auto:651000000
    root# /usr/bin/hdhomerun_config 1250D7B2 get /tuner1/streaminfo
    root# /usr/bin/hdhomerun_config 1250D7B2 get /tuner1/program 190
    root# /usr/bin/hdhomerun_config 1250D7B2 set /tuner1/target rtp://<wowza server="server" public="public" ip="ip">:1935/TEST/hdhr
    root# echo $?
    root# 0
    </wowza>

    Ends without error buy doesn’t work
    This was a long shot but ....

    Any ideas to do this.

    Thanks !!!

  • Invalid data found in the last hls segment after transcoding

    28 février 2024, par GalaDOS

    When I use ffmpeg to transcode some pure audio flv files to hls segments, the last .ts segment contains some decoding errors. It seems that it happens when the last segment's duration is short enough (about 1.5 second).

    &#xA;&#xA;

    Here is my transcode command :

    &#xA;&#xA;

    ffmpeg -i 111.flv -c:a aac -b:a 128k -f hls -hls_time 10.00 -hls_list_size 9999 tmp.m3u8&#xA;

    &#xA;&#xA;

    And output :

    &#xA;&#xA;

    ffmpeg version n4.0.1-5-gb5106c5 Copyright (c) 2000-2018 the FFmpeg developers&#xA;  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)&#xA;  configuration: --prefix=/home/zx/ffmpeg_build --extra-cflags=-I/home/zx/ffmpeg_build/include --extra-ldflags=&#x27;-L/home/zx/ffmpeg_build/lib -ldl&#x27; --bindir=/home/zx/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-version3 --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libspeex --enable-libvpx --enable-libx264 --disable-shared --enable-static --disable-debug&#xA;  libavutil      56. 14.100 / 56. 14.100&#xA;  libavcodec     58. 18.100 / 58. 18.100&#xA;  libavformat    58. 12.100 / 58. 12.100&#xA;  libavdevice    58.  3.100 / 58.  3.100&#xA;  libavfilter     7. 16.100 /  7. 16.100&#xA;  libswscale      5.  1.100 /  5.  1.100&#xA;  libswresample   3.  1.100 /  3.  1.100&#xA;  libpostproc    55.  1.100 / 55.  1.100&#xA;Input #0, flv, from &#x27;111.flv&#x27;:&#xA;  Metadata:&#xA;    major_brand     : M4A &#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2&#xA;    date            : 2018-05-31 01:31&#xA;    encoder         : Lavf57.25.100&#xA;  Duration: 00:12:11.40, start: 0.000000, bitrate: 135 kb/s&#xA;    Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[hls @ 0x25d4280] Opening &#x27;tmp0.ts&#x27; for writing&#xA;[mpegts @ 0x26feb80] frame size not set&#xA;Output #0, hls, to &#x27;tmp.m3u8&#x27;:&#xA;  Metadata:&#xA;    major_brand     : M4A &#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2&#xA;    date            : 2018-05-31 01:31&#xA;    encoder         : Lavf58.12.100&#xA;    Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.18.100 aac&#xA;[hls @ 0x25d4280] Opening &#x27;tmp1.ts&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp2.ts&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp3.ts&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp4.ts&#x27; for writing&#xA;......&#xA;[hls @ 0x25d4280] Opening &#x27;tmp71.ts&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp72.ts&#x27; for writingx    &#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp73.ts&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;[hls @ 0x25d4280] Opening &#x27;tmp.m3u8.tmp&#x27; for writing&#xA;size=N/A time=00:12:11.39 bitrate=N/A speed=84.7x    &#xA;video:0kB audio:11421kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;[aac @ 0x25a0580] Qavg: 567.976&#xA;

    &#xA;&#xA;

    After transcoding, the duration of the last segment in m3u8 file is 1.39 second :

    &#xA;&#xA;

    ....&#xA;#EXTINF:9.984000,&#xA;tmp71.ts&#xA;#EXTINF:10.005333,&#xA;tmp72.ts&#xA;#EXTINF:1.386667,&#xA;tmp73.ts&#xA;#EXT-X-ENDLIST&#xA;

    &#xA;&#xA;

    But when I use ffprobe to parse the last segment, I got an error :

    &#xA;&#xA;

    ffprobe -i tmp73.ts &#xA;ffprobe version n4.0.1-5-gb5106c5 Copyright (c) 2007-2018 the FFmpeg developers&#xA;  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)&#xA;  configuration: --prefix=/home/zx/ffmpeg_build --extra-cflags=-I/home/zx/ffmpeg_build/include --extra-ldflags=&#x27;-L/home/zx/ffmpeg_build/lib -ldl&#x27; --bindir=/home/zx/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-version3 --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libspeex --enable-libvpx --enable-libx264 --disable-shared --enable-static --disable-debug&#xA;  libavutil      56. 14.100 / 56. 14.100&#xA;  libavcodec     58. 18.100 / 58. 18.100&#xA;  libavformat    58. 12.100 / 58. 12.100&#xA;  libavdevice    58.  3.100 / 58.  3.100&#xA;  libavfilter     7. 16.100 /  7. 16.100&#xA;  libswscale      5.  1.100 /  5.  1.100&#xA;  libswresample   3.  1.100 /  3.  1.100&#xA;  libpostproc    55.  1.100 / 55.  1.100&#xA;tmp73.ts: Invalid data found when processing input&#xA;

    &#xA;&#xA;

    The input flv :

    &#xA;&#xA;

    http://45.76.56.248/hls_transcode_fail.flv&#xA;md5sum: 4627bbb27bcb22c143ad4dfa47359650&#xA;

    &#xA;&#xA;

    Since my statistic module relies on the output of ffprobe, this exception will cause the entire transcoding task to fail. My temporary solution is to skip the last segment which is too short in the statistics phase. But I need a more reasonable and robust way to fix or bypass this issue. Any suggestion will be appreciated.

    &#xA;

  • openCV doesn't play video on Fedora 28

    2 octobre 2018, par Enes

    I have just started learn opencv and i encountered a problem about playing video. I use qt-creator for opencv and my os is fedora 28.

    My code :

    cv::VideoCapture vCap;
    vCap.open("/home/enes/sample.mp4");
    if(vCap.isOpened()){
       cv::Mat frame;
       cv::namedWindow("Video");
       for(;;){
           if(!vCap.read(frame)) break;
           cv::imshow("Video", frame);
       }
    }

    My problem is below.

    Failed to query video capabilities: Inappropriate ioctl for device
    libv4l2: error getting capabilities: Inappropriate ioctl for device
    VIDEOIO ERROR: V4L: device /home/enes/sample.mp4: Unable to query number of channels
    OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
    ) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
    VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:

    OpenCV(3.4.1) /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:1869: error: (-2) GStreamer: your gstreamer installation is missing a required plugin
    in function handlemessage

    CvCapture_OpenNI::CvCapture_OpenNI : Failed to open input file (/home/enes/sample.mp4): Bad file extension

    What should I do to solve this problem ? Thanks.