Recherche avancée

Médias (91)

Autres articles (37)

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

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

Sur d’autres sites (5014)

  • How to extract anamorphic video frame correctly using ffmpeg ?

    12 mai 2019, par user10246830

    I can extract the frames using below ffmpeg but it comes out 720x576 square pixel instead of anamorphic non-square 1024x576. How do I output 720x576 rectangle pixel as shown on TV ?

    How do i deinterlace the frames as output is interlaced ?

    ffmpeg -i Midnight.vob -vf fps=1,setdar=16:9 -q:v 2 Midnight%06d.jpg

    How do i deal with this below in ffmpeg.

    [swscaler @ 0000000002a8ec40] deprecated pixel format used, make sure
    you did set range correctly. Video : mjpeg, yuvj420p(pc).

    Am I to understand that the video colour format is out of date and that (pc) is the range 0-255 for colours ?

    ffmpeg -i Midnight.vob -vf fps=1,setdar=16:9 -q:v 2 Midnight%06d.jpg ffmpeg version N-93828-g68bac50604 Copyright (c) 2000-2019 the FFmpeg developers

    built with gcc 8.3.1 (GCC) 20190414 configuration: --enable-gpl
    --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt libavutil      56. 26.101 / 56. 26.101 libavcodec     58. 52.101 / 58.
    52.101 libavformat    58. 27.103 / 58. 27.103 libavdevice    58.  7.100 / 58.  7.100 libavfilter     7. 50.100 /  7. 50.100 libswscale      5.  4.100 /  5.  4.100 libswresample   3.  4.100 /  3.  4.100 libpostproc    55.  4.100 / 55.  4.100 Input #0, mpeg, from 'Midnight.vob':   Duration: 00:42:04.58, start: 0.287267, bitrate: 5829 kb/s
       Stream #0:0[0x1bf]: Data: dvd_nav_packet
       Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
       Stream #0:3[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
       Stream #0:4[0x82]: Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
       Stream #0:5[0x22]: Subtitle: dvd_subtitle
       Stream #0:6[0x24]: Subtitle: dvd_subtitle
       Stream #0:7[0x25]: Subtitle: dvd_subtitle
       Stream #0:8[0x26]: Subtitle: dvd_subtitle
       Stream #0:9[0x28]: Subtitle: dvd_subtitle
       Stream #0:10[0x21]: Subtitle: dvd_subtitle
       Stream #0:11[0x23]: Subtitle: dvd_subtitle Stream mapping:   Stream #0:1 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help [swscaler @ 000000000295ec40] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'Midnight%06d.jpg':   Metadata:
       encoder         : Lavf58.27.103
       Stream #0:0: Video: mjpeg, yuvj420p(pc), 720x576 [SAR 36:5 DAR 9:1], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
       Metadata:
         encoder         : Lavc58.52.101 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1 [mpeg @ 0000000000400340] New subtitle stream 0:12 at pos:7458830 and DTS:12.4873s [mpeg @ 0000000000400340] New subtitle stream 0:13 at pos:7475214 and DTS:12.4873s frame=  951 fps=115 q=2.0 Lsize=N/A time=00:15:51.00 bitrate=N/A speed= 115x

    video:49190kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    Settled on for large jpg to render then shrink to 1024x576. If deinterlace remove yadif=1.

    ffmpeg -i input.vob -vf yadif=1,scale=4096x2304,setdar=16:9 -qmin 1 -q:v 1 output%06d.jpg

    Jpg is original size 1024x576 square pixel.

    ffmpeg -i input.vob -vf yadif=1,fps=1,scale=iw*sar:ih,setsar=1 -qmin 1 -q:v 1 output%06d.jpg

    Png gives better quality over jpg.

    Thanks for your contributions.

  • PHP/FFmpeg can not save video

    19 mai 2019, par tour travel

    The error is :

    [Sun May 19 11:41:03.158185 2019] [php7:error] [pid 32405] [client
    85.133.232.4:35172] PHP Fatal error : Uncaught Alchemy\BinaryDriver\Exception\ExecutionFailureException : ffmpeg
    failed to execute command ’/usr/bin/ffmpeg’ ’-y’ ’-i’ ’Sample.mp4’
    ’-async’ ’1’ ’-metadata:s:v:0’ ’start_time=0’ ’-f’ ’webm’ ’-vcodec’
    ’libvpx’ ’-acodec’ ’libvorbis’ ’-b:v’ ’1000k’ ’-refs’ ’6’ ’-coder’ ’1’
    ’-sc_threshold’ ’40’ ’-flags’ ’+loop’ ’-me_range’ ’16’ ’-subq’ ’7’
    ’-i_qfactor’ ’0.71’ ’-qcomp’ ’0.6’ ’-qdiff’ ’4’ ’-trellis’ ’1’ ’-b:a’
    ’128k’ ’-vf’ ’[in]scale=320:240 [out]’ ’export-webm.webm’ in
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:100\nStack
    trace :\n#0
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php(72) :
    Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure(’’/usr/bin/ffmpe...’)\n#1
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(209) :
    Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\Process),
    Object(SplObjectStorage), false)\n#2
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(137) :
    Alchemy\BinaryDr in
    /vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/AbstractVideo.php on
    line 106a

    What I trying to do is, save video :

    require '/vendor/autoload.php';
    $ffmpeg = FFMpeg\FFMpeg::create();
    $ffprobe = FFMpeg\FFProbe::create();
    $video = $ffmpeg->open('Sample.mp4');
    $video
       ->filters()
       ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
       ->synchronize();
    $video
       ->save(new FFMpeg\Format\Video\X264('aac'), 'export-x264.mp4')

    What I have done :

    I searched and similar topics tell me to set permission to my files and folders, I set user and also set 755 to files and folders but still I have this error and no success, any idea ?

    Errorlog :

    Fatal error : Uncaught
    Alchemy\BinaryDriver\Exception\ExecutionFailureException : ffmpeg
    failed to execute command ’/usr/bin/ffmpeg’ ’-y’ ’-i’ ’Sample.mp4’
    ’-async’ ’1’ ’-metadata:s:v:0’ ’start_time=0’ ’-vcodec’ ’libx264’
    ’-acodec’ ’aac’ ’-b:v’ ’1000k’ ’-refs’ ’6’ ’-coder’ ’1’
    ’-sc_threshold’ ’40’ ’-flags’ ’+loop’ ’-me_range’ ’16’ ’-subq’ ’7’
    ’-i_qfactor’ ’0.71’ ’-qcomp’ ’0.6’ ’-qdiff’ ’4’ ’-trellis’ ’1’ ’-b:a’
    ’128k’ ’-vf’ ’[in]scale=320:240 [out]’ ’-pass’ ’1’ ’-passlogfile’
    ’/tmp/ffmpeg-passes5ce11d01dc0038yfbl/pass-5ce11d01dc0c7’
    ’export-x264.mp4’ in
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php:100
    Stack trace : #0
    /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/ProcessRunner.php(72) :
    Alchemy\BinaryDriver\ProcessRunner->doExecutionFailure(’’/usr/bin/ffmpe...’)

    1 /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php(209) :

    Alchemy\BinaryDriver\ProcessRunner->run(Object(Symfony\Component\Process\Process),
    Object(SplObjectStorage), false) #2 /vendor/alchemy/binary-driver in
    /vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/AbstractVideo.php on
    line 106

  • Video file not trimming and copying using FFMpeg in C#

    15 mai 2019, par chapperzuk

    I am trying to clip a video using C# in Visual Studios with FFMpeg. I run the code below and it doesn’t come back with any errors, except it doesn’t create a new video file.

    I’ve looked around here to make sure I’m using the correct code, but after multiple attempts it still won’t copy.

    string videoFile = @"C:\Users\dave\Documents\video 1.mp4";
    string outputFile = @"C:\Users\dave\Documents\video 2.mp4";

    Process process = new Process();
    process.StartInfo.RedirectStandardOutput = true;
    process.StartInfo.RedirectStandardError = true;
    process.StartInfo.FileName = @"C:\Users\dave\Documents\ffmpeg.exe";
    process.StartInfo.Arguments = "ffmpeg -i " + videoFile + " -ss 00:30:00 -t 00:00:10 -c copy " + outputFile;
    process.StartInfo.UseShellExecute = false;
    process.StartInfo.CreateNoWindow = true;
    process.Start();

    I was expecting to get a video cut from the original video, starting at the 30 second mark and lasting 10 seconds, but nothing is created.

    I am using the latest FFMpeg from https://ffmpeg.zeranoe.com/builds/

    UPDATE If I run the code in command prompt - The file comes out corrupt though

    ffmpeg -i "C:\\Users\\dave\\Documents\\video 1.mp4" -ss 00:30:00 -t 00:00:10 -c copy "C:\\Users\\dave\\Documents\\video 2.mp4"
    ffmpeg version N-93851-gdcc999819d Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8.3.1 (GCC) 20190414
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 27.100 / 56. 27.100
     libavcodec     58. 52.101 / 58. 52.101
     libavformat    58. 27.103 / 58. 27.103
     libavdevice    58.  7.100 / 58.  7.100
     libavfilter     7. 51.100 /  7. 51.100
     libswscale      5.  4.101 /  5.  4.101
     libswresample   3.  4.100 /  3.  4.100
     libpostproc    55.  4.100 / 55.  4.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\dave\\Documents\\video 1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       creation_time   : 2019-01-15T21:57:04.000000Z
       title           : My Movie
       encoder         : Lavf56.15.102
       description     : This video is about My Movie
     Duration: 00:06:48.22, start: 0.000000, bitrate: 1283 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1202 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 2997 tbc (default)
       Metadata:
         creation_time   : 2019-01-15T21:57:04.000000Z
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 74 kb/s (default)
       Metadata:
         creation_time   : 2019-01-15T21:57:04.000000Z
         handler_name    : SoundHandler
    Output #0, mp4, to 'C:\\Users\\dave\\Documents\\video 2.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       description     : This video is about My Movie
       title           : My Movie
       encoder         : Lavf58.27.103
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1202 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 11988 tbc (default)
       Metadata:
         creation_time   : 2019-01-15T21:57:04.000000Z
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 74 kb/s (default)
       Metadata:
         creation_time   : 2019-01-15T21:57:04.000000Z
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=    0 fps=0.0 q=-1.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown