Recherche avancée

Médias (91)

Autres articles (105)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (...)

Sur d’autres sites (8683)

  • ffmpeg not giving correct duration of a mp4

    1er juin 2012, par oach

    I am working with ffmpeg to convert videos into flv files via php. The tests I have done do not work for mp4 conversions. I have a 13 second video (videos will be limited to 15 seconds), when it is uploaded and I check the "duration" of the video it comes out over 300 seconds. I have tried changing around how I process the video :

    // original
    exec(&#39;ffmpeg -i <path>/<filename> 2>&amp;1&#39;, $output);

    // current
    exec(&#39;ffmpeg -i <path>/<filename> 2>&amp;1 | grep "Duration" | cut -d \&#39; \&#39; -f 4 | sed s/,//&#39;, $output);
    </filename></path></filename></path>

    The original method did not work for mpg files but the second does, but neither gives me the "correct" duration of a mp4 video. Is there a "special" way to process mp4 files ?

    Thank you for your time and help.

    Update :

    Command line

    ffmpeg -i ./custom_scraping.mp4 2>&amp;1 | grep "Duration" | cut -d &#39; &#39; -f 4 | sed s/,//
    00:05:15.84

    Complete output (formatted as best I could)

    ffmpeg -i ./custom_scraping.mp4 2>&amp;1
    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
    built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags=&#39;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC&#39; --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
    libavutil     50.15. 1 / 50.15. 1
    libavcodec    52.72. 2 / 52.72. 2
    libavformat   52.64. 2 / 52.64. 2
    libavdevice   52. 2. 0 / 52. 2. 0
    libavfilter    1.19. 0 /  1.19. 0
    libswscale     0.11. 0 /  0.11. 0
    libpostproc   51. 2. 0 / 51. 2. 0

    Seems stream 1 codec frame rate differs from container frame rate: 5994.00 (5994/1) -> 29.97 (2997/100)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;./custom_scraping.mp4&#39;:
    Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    Duration: 00:05:15.84, start: 0.000000, bitrate: 36 kb/s
    Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 2 kb/s
    Stream #0.1(eng): Video: h264, yuv420p, 480x360, 36 kb/s, 1.04 fps, 29.97 tbr, 2997 tbn, 5994 tbc

    At least one output file must be specified

    Don't know if it helps but from the listing of the file in Linux :
    1432471 May 31 13:33 custom_scraping.mp4

    Let me know if anything else is needed.

  • What is the best way to capture a screenshot from a udp multicast stream ? [on hold]

    30 novembre 2017, par yash17

    Currently I’m capturing screenshot from an UDP multicast stream, playing in VLC,using ffmpeg from command line.

    Is there any other tool that can capture the screenshot,with best resolution ?

    edit :
    ffmpeg takes more 3 seconds to capture the screen.Mentioned Below is the log for the same.And I came to know that for streaming,ffmpeg can’t be faster.
    So is there any alternate way,that will help me capture screen instantaneously.

    log :

    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc
    libavutil      55. 58.100 / 55. 58.100
    libavcodec     57. 89.100 / 57. 89.100
    libavformat    57. 71.100 / 57. 71.100
    libavdevice    57.  6.100 / 57.  6.100
    libavfilter     6. 82.100 /  6. 82.100
    libavresample   3.  5.  0 /  3.  5.  0
    libswscale      4.  6.100 /  4.  6.100
    libswresample   2.  7.100 /  2.  7.100
    libpostproc    54.  5.100 / 54.  5.100
    [mpeg2video @ 0x390cc60] Invalid frame dimensions 0x0.
    Last message repeated 7 times
    Input #0, mpegts, from 'udp://@xxx.xx.xx.xx:xxxx':
    Duration: N/A, start: 144.130744, bitrate: 4128 kb/s
    Program 1
    Metadata:
     service_name    : Program-1  
     service_provider: Encoder
    Stream #0:0[0x42]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 16:15 DAR 4:3], 4000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x43]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (mpeg2video (native) -> png (native))
    Press [q] to stop, [?] for help
    Output #0, image2, to 'player.png':
    Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: png, rgb24, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
     encoder         : Lavc57.89.100 png
    frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1 speed=0.729x    
    video:777kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  • What is the best way to capture a screenshot from a udp stream ?

    8 novembre 2017, par yash17

    I’m trying to capture a screenshot from a udp stream using ffmpeg in a Ubuntu 14.04 System.
    Following is the command

    ffmpeg -y -i udp_ip -vframes 1 -q:v 1 test.png

    But the image captured is of very poor resolution and I observed a lag while taking the screenshot.

    Please suggest a best tool or a way to take a screenshot in the fastest way and also of the best image resolution possible.

    edit :
    log files

    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [mpeg2video @ 0x390cc60] Invalid frame dimensions 0x0.
       Last message repeated 7 times
    Input #0, mpegts, from 'udp://@xxx.xx.xx.xx:xxxx':
     Duration: N/A, start: 144.130744, bitrate: 4128 kb/s
     Program 1
       Metadata:
         service_name    : Program-1  
         service_provider: Encoder
       Stream #0:0[0x42]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 16:15 DAR 4:3], 4000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1[0x43]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg2video (native) -> png (native))
    Press [q] to stop, [?] for help
    Output #0, image2, to 'player.png':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0: Video: png, rgb24, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.89.100 png
    frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1 speed=0.729x    
    video:777kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown