Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (38)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (1723)

  • Video parameters for best web scrolling performance [duplicate]

    22 février 2018, par biven

    There is web application which provides next workflow. User uploads video -> backend(by using ffmpeg) transform this video for smaller size(320x240) -> web browser plays transformed video. Key feature of this application should be excellent scrolling possibility of video by progress bar. I mean that video should be scrolled as smoothly as possible (without any jumps) when user moves progress bar position back and forward.

    I thought that small size of video helps to provide good scrolling possibility. But that’s incorrect. I have 2 different videos, one scrolling perfect(as I want), second has same resolotion(320x240), but it is scrolling with jumps and breaks.

    By ffprobe I compared both videos and I have next results :

    Video 1(good scrolling) :

    libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  5.100 / 58.  5.100
     libavdevice    58.  0.101 / 58.  0.101
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'spacetestSMALL_512kb.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: mp41
       creation_time   : 1970-01-01T00:00:00.000000Z
       title           : small test video - http://www.archive.org/details/alanoakleysmalltestvideo
       encoder         : Lavf51.10.0
       comment         : license:  http://www.copyright.gov/
     Duration: 00:00:48.32, start: 0.000000, bitrate: 555 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240, 505 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 45 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler

    Video 2(bad scrolling) :

    libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  5.100 / 58.  5.100
     libavdevice    58.  0.101 / 58.  0.101
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'e10b1c93-5325-4500-ae7c-12ccd0f617bd.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.5.100
     Duration: 00:00:07.96, start: 0.000000, bitrate: 428 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 4:3 DAR 16:9], 391 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 33 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    What is the key parameter of video which provide possibility for good scrolling in web browser ?

  • Cut video command producing only audio

    12 février 2018, par Sandeep

    I am using ffmpeg in Android app and my command code looks like :

         final String[] command=new String[]{"-i",inputFileName , "-ss",
    String.valueOf(duration) , "-codec","copy", "-t",String.valueOf(start) , outputFileName};

    The logcat contains following ffmpeg output which shows video as 0kB in last line. Where should I look for fixing this because the final output file is a mp4 file but the video content is missing and only audio is present for the trimmed duration :

    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg ffmpeg version n3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   built with gcc 4.9.x (GCC) 20150123 (prerelease)
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   configuration: --target-os=linux --cross-prefix=/root/bravobit/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/root/bravobit/ffmpeg-android/toolchain-android/sysroot --disable-asm --enable-pic --enable-libx264 --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-linux-perf --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-nonfree --enable-network --enable-avresample --enable-avformat --enable-avcodec --enable-indev=lavfi --enable-hwaccels --enable-ffmpeg --enable-zlib --enable-gpl --enable-small --disable-asm --pkg-config=/root/bravobit/ffmpeg-android/ffmpeg-pkg-config --prefix=/root/bravobit/ffmpeg-android/build/x86 --extra-cflags='-I/root/bravobit/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/root/bravobit/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags= --extra-libs='-lpng -lx264 -lm -logg'
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavutil      55. 78.100 / 55. 78.100
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavcodec     57.107.100 / 57.107.100
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavformat    57. 83.100 / 57. 83.100
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavdevice    57. 10.100 / 57. 10.100
    02-12 17:22:43.837 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavfilter     6.107.100 /  6.107.100
    02-12 17:22:43.838 25335-25335/service D/FFmpeg: Started command : ffmpeg   libavresample   3.  7.  0 /  3.  7.  0
    02-12 17:22:43.838 25335-25335/service D/FFmpeg: Started command : ffmpeg   libswscale      4.  8.100 /  4.  8.100
    02-12 17:22:43.838 25335-25335/service D/FFmpeg: Started command : ffmpeg   libswresample   2.  9.100 /  2.  9.100
    02-12 17:22:43.838 25335-25335/service D/FFmpeg: Started command : ffmpeg   libpostproc    54.  7.100 / 54.  7.100
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/DCIM/SampleVideo_1280x720_1mb.mp4':
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg   Metadata:
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     major_brand     : isom
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     minor_version   : 512
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     compatible_brands: isomiso2avc1mp41
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     creation_time   : 1970-01-01T00:00:00.000000Z
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     encoder         : Lavf53.24.2
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg   Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     Metadata:
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg       creation_time   : 1970-01-01T00:00:00.000000Z
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg       handler_name    : VideoHandler
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     Metadata:
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg       creation_time   : 1970-01-01T00:00:00.000000Z
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg       handler_name    : SoundHandler
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg Output #0, mp4, to '/storage/emulated/0/VideoTriming/20180212_172243SampleVideo_1280x720_1mb.mp4':
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg   Metadata:
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     major_brand     : isom
    02-12 17:22:43.902 25335-25335/service D/FFmpeg: Started command : ffmpeg     minor_version   : 512
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     compatible_brands: isomiso2avc1mp41
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     encoder         : Lavf57.83.100
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     Metadata:
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg       creation_time   : 1970-01-01T00:00:00.000000Z
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg       handler_name    : VideoHandler
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg     Metadata:
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg       creation_time   : 1970-01-01T00:00:00.000000Z
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg       handler_name    : SoundHandler
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg Stream mapping:
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg   Stream #0:0 -> #0:0 (copy)
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg   Stream #0:1 -> #0:1 (copy)
    02-12 17:22:43.903 25335-25335/service D/FFmpeg: Started command : ffmpeg Press [q] to stop, [?] for help
    02-12 17:22:43.910 25335-25335/service D/FFmpeg: Started command : ffmpeg frame=    0 fps=0.0 q=-1.0 Lsize=      46kB time=00:00:00.98 bitrate= 387.1kbits/s speed= 115x    
    02-12 17:22:43.910 25335-25335/service D/FFmpeg: Started command : ffmpeg video:0kB audio:46kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.145508%

    My input file is the first 1MB mp4 sample video downloaded from following website :

    http://www.sample-videos.com/

  • ffmpeg generate thumbnails on GPU

    22 juin 2018, par Oleksandr Kyrpa

    I try to generate thumbnails with acceleration on GPU, so compile ffmpeg 3.4.1 and run command :

    ./ffmpeg  -i ~/Videos/1080.mp4 -vf "hwupload_cuda,thumbnail_cuda=100,scale_cuda=107:60,hwdownload,format=yuv420p" -vframes 1 -y ~/Videos/thumbs/thumb%03d.jpg

    But I get wrong output picture (the color of thumbnail is green) :

    enter image description here

    Correct image must be black.
    How to make first image with correct color ?

    enter image description here

    log : -loglevel verbose

    ffmpeg version N-89707-g89b84cb Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --cpu=native --enable-pthreads --extra-version=hd --enable-gnutls --enable-vaapi --enable-vdpau --enable-nonfree --enable-gpl --enable-swscale --enable-libx264 --enable-version3 --enable-nvenc --enable-libnpp --enable-cuda --enable-cuvid --enable-cuda-sdk --enable-filter=scale_cuda --enable-filter=thumbnail_cuda --extra-cflags=-I/usr/local/cuda-8.0/include --extra-ldflags=-L/usr/local/cuda-8.0/lib64
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7. 11.100 /  7. 11.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    [h264 @ 0x392ed40] Reinit context to 1920x1088, pix_fmt: yuv420p
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/alex/Videos/1080.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2012-05-30T20:01:34.000000Z
     Duration: 00:01:14.21, start: 0.000000, bitrate: 5476 kb/s
       Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088), 5321 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s (default)
       Metadata:
         creation_time   : 2012-05-30T20:01:34.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [h264 @ 0x3a38280] Reinit context to 1920x1088, pix_fmt: yuv420p
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] batch size: 100 frames
    [graph 0 input from stream 0:0 @ 0x4e8b640] w:1920 h:1080 pixfmt:yuv420p tb:1/60000 fr:30000/1001 sar:0/1 sws_param:flags=2
    [auto_scaler_0 @ 0x4e8ca00] w:iw h:ih flags:'bicubic' interl:0
    [format @ 0x4e8b540] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_format_4' and the filter 'format'
    [Parsed_scale_cuda_2 @ 0x4e89380] w:1920 h:1080 -> w:107 h:60
    [swscaler @ 0x4ebf0c0] deprecated pixel format used, make sure you did set range correctly
    [auto_scaler_0 @ 0x4e8ca00] w:107 h:60 fmt:yuv420p sar:0/1 -> w:107 h:60 fmt:yuvj420p sar:0/1 flags:0x4
    Output #0, image2, to '/home/alex/Videos/thumbs/thumb%03d.jpg':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf58.3.100
       Stream #0:0(und): Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 107x60, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc58.9.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    [Parsed_thumbnail_cuda_1 @ 0x4e3d8c0] frame id #76 (pts_time=2.535867) selected from a set of 100 images
    No more output streams to write to, finishing.
    frame=    1 fps=0.9 q=3.1 Lsize=N/A time=00:00:02.56 bitrate=N/A speed=2.26x    
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Input file #0 (/home/alex/Videos/1080.mp4):
     Input stream #0:0 (video): 115 packets read (134655 bytes); 101 frames decoded;
     Input stream #0:1 (audio): 1 packets read (9 bytes);
     Total: 116 packets (134664 bytes) demuxed
    Output file #0 (/home/alex/Videos/thumbs/thumb%03d.jpg):
     Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (1864 bytes);
     Total: 1 packets (1864 bytes) muxed

    UPDATE, working !
    Add format=nv12 before hwupload

    -vf "format=nv12,hwupload_cuda,thumbnail_cuda,scale_cuda=1280:72‌​0,hwdownload,format=‌​nv12"