Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (29)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

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

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (5515)

  • Node js Fluent ffmpeg low video quality using original file bitrate

    18 février 2021, par KopEre

    I have downloaded few sample videos from youtube with 1080p quality now I try to scale it to 1080p, 720p, and 480p but after encoding the quality is much lower (Visible compression artifacts). When I set the bitrate automatically the quality is comparable to that of the original file but the file size is a few times bigger than original. I am not sure if I am making a mistake in FFmpeg options or if youtube has any advanced algorithms that allow such a low bitrate.

    


    

    

    ffmpeg(req.file.path)
.output(`${videoPath}/1920x1080.mp4`)
.outputOption('-x264-params', 'keyint=48:min-keyint=48:scenecut=0:ref=5:bframes=3:b-adapt=2', '-force_key_frames', 'expr:gte(t,n_forced*2)')
.addOption('-preset ultrafast')
.videoCodec('libx264')
.videoBitrate(`${bitRate/1000}k`)
.audioBitrate('320k')
.audioChannels(2)
.size('1920x1080')

    


    


    



  • FFMPEG scene detection : overlay original frame number

    21 décembre 2020, par Fugi

    I'm able to extract all frames that are not similar to the previous frame from a video file using ffmpeg -i video.mp4 -vf "select=gt(scene\,0.003),setpts=N/(30*TB)" frame%d.jpg (source)

    


    I would like to overlay the frame number onto each selected frame. I tried adding drawtext=fontfile=/Windows/Fonts/Arial.ttf: text='frame\: %{frame_num}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1: fontsize=30 to the filter after select and setpts, however %frame_num returns 1, 2, 3, ... (source)

    


    If I put drawtext before select and setpts, I get something like 16, 42, 181, ... as frame numbers (which is exactly what I want), but since the scene detection runs after adding the text overlay, changes in the overlay may be detected as well.

    


    Is it possible to do the scene detection and overlay independently from another ? [in] split [out0][out1] can be used to apply filters separately, but I don't know how to "combine" the results again.

    


  • Laggy video and longer duration than the original file

    11 janvier 2021, par jagvetinte

    I'm trying to convert a file with this output in ffmpeg :

    


    ffmpeg version 4.3.1-2021-01-01-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
    Last message repeated 5 times
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
    Last message repeated 1 times
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
    Last message repeated 1 times
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
    Last message repeated 1 times
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
    Last message repeated 1 times
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
    Last message repeated 1 times
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
    Last message repeated 1 times
[mpeg2video @ 000002e8de943080] Invalid frame dimensions 0x0.
[s302m @ 000002e8de960780] S302 non PCM mode with data type 28 not supported
    Last message repeated 4 times
[mpegts @ 000002e8de93cbc0] decoding for stream 3 failed
[mpegts @ 000002e8de93cbc0] Could not find codec parameters for stream 3 (Audio: s302m (BSSD / 0x44535342), stereo, s32 (20 bit), 2304 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'G:\test\test.ts':
  Duration: 03:27:29.61, start: 3.000000, bitrate: 39124 kb/s
  Program 1
    Stream #0:0[0x200]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002), yuv422p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 450 tbr, 90k tbn, 50 tbc
    Side data:
      cpb: bitrate max/min/avg: 36898800/0/0 buffer size: 13271040 vbv_delay: N/A
    Stream #0:1[0x1010]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:2[0x1020]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:3[0x1030]: Audio: s302m (BSSD / 0x44535342), stereo, s32 (20 bit), 2304 kb/s


    


    But whatever setting i try the video ends up very laggy and the duration ends up much longer than the original file, even when I play it through VLC. It is a little hard to explain so I will provide a sample file here with the result after the conversion :

    


    https://drive.google.com/file/d/1ADPF2POSnBCiJkgMES2vOn2wznyBst6W/view?usp=sharing

    


    Is it something wrong with the file or with ffmpeg itself and how do I solve it ?

    


    Firstly I tried this command :

    


    ffmpeg -i "G:\test\test.ts" -map 0:0 -map 0:1 -vcodec libx265 -crf 23 -filter:v yadif=1 -acodec ac3 -ab 384k "C:\Users\User name\Videos\test.mkv"


    


    And then I tried this with the same result :

    


    ffmpeg -i "G:\test\test.ts" -map 0:0 -map 0:1 -vcodec copy -acodec copy "C:\Users\User name\Videos\test.mkv"


    


    The sample file is converted with the first command.