Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5478)

  • ffmpeg : Merge multiple mpeg videos while switching audio tracks

    12 octobre 2015, par Mark Schneider

    I have 7 mpeg files that were converted from images and videos as follows :

    001.mpeg - created from a still image
    002.mpeg - created from a still image
    003.mpeg - video with an audio track
    004.mpeg - created from a still image
    005.mpeg - video with an audio track
    006.mpeg - created from a still image

    I need to concatenate them together along with an audio soundtrack into a single mp4 file. While the mpeg files created from images are being displayed, I’d like to hear the audio soundtrack, however, while the videos (003.mpeg and 005.mpeg) are being displayed, I’d like to hear their respective audio tracks instead of the soundtrack.

    I’m able to stitch together the files with the audio soundtrack playing throughout using these commands :

    ffmpeg -i concat:"001.mpeg|002.mpeg|003.mpeg|004.mpeg|005.mpeg|007.mpeg" -c copy video_before_adding_audio.mp4

    ffmpeg i video_before_adding_audio.mp4 -i soundtrack.mp3 -map 0:0 -map 1 -vcodec copy -acodec aac -strict experimental -shortest vue.mp4

    Is there a way to get ffmpeg to “duck” the audio soundtrack down to 10% volume while the videos are being shown ? If not, is there a way to duck the audio entirely while those files are being shown ?

    As a secondary question, so as to not have abrupt changes in the sound when switching between the soundtrack and the video’s audio tracks, is there a way to instruct ffmpeg fade the soundtrack out just as 003.mpeg is being reached (maybe over 1/4 second) and to fade it back in when 004.mpeg starts (and to the same for 005.mpeg and 006.mpeg) ?

    Here is the ffprobe output for the 003.mpeg and 005.mpeg files :

    ffprobe version 2.5 Copyright (c) 2007-2014 the FFmpeg developers
     built on Dec 10 2014 19:03:38 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc --enable-vda
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mpegts, from '006.vuepart.mpeg':
     Duration: 00:00:07.59, start: 1.555756, bitrate: 2356 kb/s
     Program 1
       Metadata:
         service_name    : Service01
         service_provider: FFmpeg
       Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 800x600, 12 fps, 12 tbr, 90k tbn, 24 tbc
       Stream #0:1[0x101](und): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, mono, s16p, 384 kb/s

    Here is the ffprobe output for the mpeg file created from still images :

    ffprobe version 2.5 Copyright (c) 2007-2014 the FFmpeg developers
     built on Dec 10 2014 19:03:38 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.5 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvo-aacenc --enable-vda
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.102 / 56. 15.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mpegts, from '001.vuepart.mpeg':
     Duration: 00:00:02.54, start: 1.522422, bitrate: 609 kb/s
     Program 1
       Metadata:
         service_name    : Service01
         service_provider: FFmpeg
       Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc), 800x600 [SAR 1:1 DAR 4:3], 15 fps, 15 tbr, 90k tbn, 30 tbc
       Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, mono, s16p, 384 kb/s

    Note : I’ve added a silent audio track to the still images.

  • opening ffmpeg/mpeg-4 avi in openCV 3 python 2.7

    8 février 2016, par jlarsch

    I am stuck trying to open a mpeg4 video file in openCV. The video file was generated in ffmpeg using this command :

    ffmpeg -y -f rawvideo -vcodec rawvideo -s 2048x2048 -r 30 -pix_fmt gray -i \\.\pipe\pipe1 -qv 5 -vcodec mpeg4 out.avi

    now I am trying to open the file like this

    import cv2
    #avi_path is full path to avi
    cap = cv2.VideoCapture(avi_path)
    img1=cap.read()

    but this returns : False, none

    The same procedure works fine if I use libxvid for encoding instead but I want to use mpeg4 because it encodes faster (I need to encode several streams simultaneously).

    Should openCV be able to open the mpeg4 encoded avi file ?

    I am using openCV3 and python 2.7 under Windows 64bit

    I am also attaching GSpot panels of one video encoded in xvid (left) which I can open. And one video encoded in mpeg4 (right) which I cannot open.
    enter image description here
    I have a suspicion that some LAV splitter/decoder settings may interfere ?! - but I don’t understand enough of that to get to the bottom of it.

    This is my ffprobe output for the mpeg4 file encoded with the additional ffmpeg parameter ’-vtag xvid’ as suggested in a comment by Mulvya

     ffprobe version N-75474-g74e4948 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  2.100 / 55.  2.100
     libavcodec     57.  3.100 / 57.  3.100
     libavformat    57.  2.100 / 57.  2.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6.  6.100 /  6.  6.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.100 /  2.  0.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'out1b.avi':
     Metadata:
       encoder         : Lavf57.2.100
     Duration: 00:00:23.50, start: 0.000000, bitrate: 2049 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 2048x2048 [SAR 1:1 DAR 1:1], 2044 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
  • FFmpeg : Concatenating two huffyuv codec files in .avi container causing first video to be fine but other video is just static

    15 octobre 2015, par roy

    I have two .avi video files that I am trying to concat together.

    I have a files.txt that has in it :

    file './1_tmp.avi'
    file './2_tmp.avi'

    FFprobe for 1_tmp.avi gives me :

    ffprobe version 2.7.2 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.8.5 (Gentoo 4.8.5 p1.3, pie-0.6.2)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=' ' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --disable-libxvid --enable-x11grab --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx-i
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from '1_tmp.avi':
     Metadata:
       encoder         : Lavf56.36.100
     Duration: 00:00:19.00, start: 0.000000, bitrate: 179869 kb/s
       Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgr0, 1024x768, 180390 kb/s, 18 fps, 18 tbr, 18 tbn, 18 tbc

    and for 2_tmp.avi :

    ffprobe version 2.7.2 Copyright (c) 2007-2015 the FFmpeg developers
     built with gcc 4.8.5 (Gentoo 4.8.5 p1.3, pie-0.6.2)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags=' ' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --disable-outdev=sdl --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb --disable-libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libaacplus --disable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --disable-libxvid --enable-x11grab --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=core-avx-i
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 41.100 / 56. 41.100
     libavformat    56. 36.100 / 56. 36.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, avi, from '2_tmp.avi':
     Metadata:
       encoder         : Lavf56.36.100
     Duration: 00:00:56.00, start: 0.000000, bitrate: 160560 kb/s
       Stream #0:0: Video: huffyuv (HFYU / 0x55594648), bgr0, 1024x768, 160714 kb/s, 18 fps, 18 tbr, 18 tbn, 18 tbc

    There are only video streams, they look to be the same codecs/fps

    I am using this command to concatenate them :

    ffmpeg -f concat -i files.txt -c:v copy -y output.avi

    I don’t get any output from the terminal and it outputs a file.

    The file opens and the content in 1_tmp.avi plays fine, at the same quality, but when it gets to the point in the video where 2_tmp.avi should be, it’s pixelated static all the way through (see image below).

    static screen for second file after concatentation - mama **did not** say there would be days like this.

    If I use a command like :

    ffmpeg -i 1_tmp.avi -i 2_tmp.avi -filter_complex "[0:0] [1:0] concat=n=2:v=1 [v]" -map "[v]" output.avi

    I do get full output of both videos merged together, but it is dropped to an mpeg codec and the quality loss is noticeably prominent.