Recherche avancée

Médias (91)

Autres articles (83)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (13375)

  • How can I reencode a video to match another's codec exactly ?

    24 janvier 2020, par Stephen Schrauger

    When I’m on vacation, I usually use our camcorder to record videos. Since they’re all the same format, I can use ffmpeg to concat them into one large, smooth video without re-encoding.

    However, sometimes I will use a phone or other camera to record a video (if the camcorder ran out of space/battery or was left at a hotel).

    I’d like to determine the codec, framerate, etc used by my camcorder and use those parameters to convert the phone vidoes into the same format. That way, I will be able to concatonate all the videos without re-encoding the camcorder videos.

    Using ffprobe, I found my camcorder has this encoding :

     Input #0, mpegts, from 'camcorderfile.MTS':
     Duration: 00:00:09.54, start: 1.936367, bitrate: 24761 kb/s
     Program 1
       Stream #0:0[0x1011]: Video: h264 (High) (HDPR / 0x52504448), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
       Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s
       Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080

    The phone (iPhone 5s) encoding is :

     Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mov.MOV':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2017-01-02T03:04:05.000000Z
       com.apple.quicktime.location.ISO6709: +12.3456-789.0123+456.789/
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: iPhone 5s
       com.apple.quicktime.software: 10.2.1
       com.apple.quicktime.creationdate: 2017-01-02T03:04:05-0700
     Duration: 00:00:14.38, start: 0.000000, bitrate: 11940 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 11865 kb/s, 29.98 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
       Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler
       Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
       Metadata:
         creation_time   : 2017-01-02T03:04:05.000000Z
         handler_name    : Core Media Data Handler

    I’m presuming that ffmpeg will automatically take any acceptable video format, and that I only need to figure out the output settings. I think I need to use -s 1920x1080 and -pix_fmt yuv420p for the output, but what other flags do I need in order to make the phone video into the same encoding as the camcorder video ?

    Can I get some pointers as to how I can translate the ffprobe output into the flags I need to give to ffmpeg ?

    Edit : Added the entire Input #0 for both media files.

  • tv unable to playback ffmpeg converted media

    27 juin 2017, par Sambir

    I am trying to convert some raw video camerafiles using the following ffmpeg commmand. after conversion the pc plays back the files without any problem. also the phone plays it back using vlc. but the tv gives unsupported format. the tv plays back all files even h265 but only this file it gives an error. any help is appreciated :

    ffmpeg command :

    ffmpeg -i 1.mov -map_metadata -1 -c:v libx264 -c:a aac -ac 2 -b:a 128k -strict -2 -crf 23 -preset veryfast -threads 0 converted/1.mp4

    and this is the ffmpeg info of the original file :

    built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
     configuration: --prefix=/root/ffmpeg/target --extra-cflags='-I/root/ffmpeg/target/inclu     de -static' --extra-ldflags='-L/root/ffmpeg/target/lib -lm -static' --extra-version=Xtrea     m-Codes --enable-nonfree --enable-openssl --disable-debug --disable-shared --enable-libx2     65 --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-     doc --enable-gpl --enable-pthreads --enable-postproc --enable-libass --enable-gray --enab     le-runtime-cpudetect --enable-gnutls --enable-libmp3lame --enable-libopus --enable-libthe     ora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --e     nable-version3 --enable-libvpx --enable-libxavs --disable-devices --enable-librtmp --extr     a-libs='-lrtmp -lnettle -lhogweed -lgmp -lssl -lcrypto -lz -lc -ldl'
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 28.100 / 56. 28.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 12.100 /  5. 12.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2017-05-18 07:39:04
     Duration: 00:10:38.28, start: 0.000000, bitrate: 239010 kb/s
       Stream #0:0(und): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709), 1920x1080, 2     36756 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 5k tbn, 5k tbc (default)
       Metadata:
         creation_time   : 2017-05-18 07:39:04
         handler_name    : Core Media Data Handler
         encoder         : Apple ProRes 422
         timecode        : 00:00:00:00
       Stream #0:1(und): Audio: pcm_s24le (lpcm / 0x6D63706C), 44100 Hz, stereo, s32 (24 bit     ), 2116 kb/s (default)
       Metadata:
         creation_time   : 2017-05-18 07:39:04
         handler_name    : Core Media Data Handler
       Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
       Metadata:
         creation_time   : 2017-05-18 07:39:04
         handler_name    : Core Media Data Handler
         timecode        : 00:00:00:00
    At least one output file must be specified

    After conversion i get like 1.mp4,2.mp4,3.mp4... then I concat them using concat command to one file. all went ok without any problem but the tv does not support the file.

    I found out it is encoded with apple prores so I googled some conversion commands but they also did not seem to help like this :

    yuv422p, lossless audio
    ffmpeg -i "input.mov" -pix_fmt "yuv422p" -vcodec libx264 -preset medium -qp 0 -acodec pcm_s16le "output_yuv422p.mkv"

    yuv422p, aac audio
    ffmpeg -i "input.mov" -pix_fmt "yuv422p" -vcodec libx264 -preset medium -qp 0 -acodec -acodec libvo_aacenc -b:a 256K "output_yuv422p.mp4"
  • RTMP -> endoce using ffmpeg -> HLS,DASH

    1er juillet 2017, par Ubunkun

    I would like to do "RTMP -> endoce using ffmpeg -> HLS,DASH".

    ・OS: CentOS7
    ・nginx version: nginx/1.13.0
     with nginx-rtmp-module
    ・ffmpeg
    ffmpeg version N-83692-gb8a7dcbde2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 47.100 / 55. 47.100
     libavcodec     57. 81.100 / 57. 81.100
     libavformat    57. 66.102 / 57. 66.102
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100

    /usr/local/nginx/conf/nginx.conf
    rtmp {
     server {
         listen 1935;
         application test {
           live on;
           exec /root/ffmpeg -i rtmp://localhost/test/$name
           -b:v 1000k -r 30 -s 720x480 -c:v libx264 -f flv rtmp://localhost/live/$name_low;
         }
         application live {
           live on;
           hls  on;
           hls_path /usr/local/nginx/html/hls;
           hls_fragment 10s;
           hls_type live;
           dash on;
           dash_path /usr/local/nginx/html/dash;
         }
     }
    }

    When I tried "rtmp ://domain.com/live/test1", it was success. There are some segment on hls and dash folder.

    But, When I teird "rtmp ://domain.com/test/test2", it was fail.

    In error.log

    2017/07/01 22:02:03 [alert] 23951#0 : unknown process 24019 exited on signal 9

    What wrong is setting ? If you know the cause of problem, let me know how to resolve it.