Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (63)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9281)

  • FFMPEG update from 5.0 to 6.0 out_0_0 buffer queued [closed]

    16 mai 2023, par Kevitto

    I've been using ffmpeg 5.0 for some time, encoding an audio stream to an rtp server, but since I updated to ffmpeg 6.0 I get this :

    


    [out_0_0 @ 0x55ac187b60] 100 buffers queued in out_0_0, something may be wrong.


    


    Below is the ffmpeg call :

    


    ffmpeg -re -f alsa -i default:CARD:card1 -ac 2 -af aresample=async=1 -acodec libopus -b:a 48000 -f rtp "rtp://127.0.0.1:5002"


    


    And here is the full startup log :

    


    ffmpeg version 549430e Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs='-lpthread -lm -latomic' --arch=arm64 --enable-gmp --enable-gpl --enable-libopus --enable-nonfree --enable-version3 --target-os=linux --enable-pthreads --enable-openssl --enable-hardcoded-tables
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'default:CARD=pisound':
  Duration: N/A, start: 1684250059.973334, bitrate: 1536 kb/s
  Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> opus (libopus))
Press [q] to stop, [?] for help
Output #0, rtp, to 'rtp://127.0.0.1:5002':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Audio: opus, 48000 Hz, stereo, s16, 48 kb/s
    Metadata:
      encoder         : Lavc60.3.100 libopus
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 60.3.100
m=audio 5002 RTP/AVP 97
b=AS:48
a=rtpmap:97 opus/48000/2
a=fmtp:97 sprop-stereo=1

size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[out_0_0 @ 0x559f530c60] 100 buffers queued in out_0_0, something may be wrong.
size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
size=       0kB time=-00:00:00.00 bitrate=  -0.0kbits/s speed=N/A    
size=       0kB time=-00:00:00.00 bitrate=  -0.0kbits/s speed=N/A    
[alsa @ 0x559f4db460] ALSA buffer xrun.
size=       6kB time=00:00:02.81 bitrate=  16.7kbits/s speed=0.93x    
size=       6kB time=00:00:02.81 bitrate=  16.7kbits/s speed=0.797x    
size=       6kB time=00:00:02.83 bitrate=  16.6kbits/s speed=0.703x    
size=       6kB time=00:00:02.83 bitrate=  16.6kbits/s speed=0.624x    
size=       6kB time=00:00:02.83 bitrate=  16.6kbits/s speed=0.562x    
size=       6kB time=00:00:02.83 bitrate=  16.6kbits/s speed=0.511x    
[alsa @ 0x559f4db460] ALSA buffer xrun.
size=      10kB time=00:00:05.67 bitrate=  14.8kbits/s speed=0.939x    
size=      10kB time=00:00:05.67 bitrate=  14.8kbits/s speed=0.866x    
size=      10kB time=00:00:05.67 bitrate=  14.8kbits/s speed=0.805x    
size=      10kB time=00:00:05.67 bitrate=  14.8kbits/s speed=0.751x    
size=      10kB time=00:00:05.69 bitrate=  14.8kbits/s speed=0.707x    
[alsa @ 0x559f4db460] ALSA buffer xrun.
size=      13kB time=00:00:05.95 bitrate=  17.8kbits/s speed=0.696x    
size=      16kB time=00:00:08.51 bitrate=  15.2kbits/s speed=0.939x    
size=      16kB time=00:00:08.51 bitrate=  15.2kbits/s speed=0.89x    
size=      16kB time=00:00:08.53 bitrate=  15.2kbits/s speed=0.847x    
size=      16kB time=00:00:08.53 bitrate=  15.2kbits/s speed=0.806x    
size=      16kB time=00:00:08.53 bitrate=  15.2kbits/s speed=0.77x    
[alsa @ 0x559f4db460] ALSA buffer xrun.
size=      21kB time=00:00:11.37 bitrate=  14.8kbits/s speed=0.981x  


    


    I tried changing the output to -f null /dev/null to see if the rtp was the issue, but I get the same thing. I made sure the user running it was a member to the "audio" group and arecord -l and aplay -l both show the card with the right name and information. I even tried to use its hw code instead of the default name, and same issue.

    


  • Failed setup for format dxva2_vld : hwaccel initialisation returned error

    13 juin 2023, par james

    My program is a video player based on ffmpeg implementation, enabling d3d11va and dxva2 hardware acceleration to decode video frames, play most of the video is normal, only a small part of the video will report this error, ffmpeg printed log as follows :
I:2023-06-13 15:34:53 ms:887:No decoder device for codec found
I:2023-06-13 15:34:53 ms:887:Failed setup for format dxva2_vld : hwaccel initialisation returned error.
I:2023-06-13 15:34:53 ms:888:Format dxva2_vld not usable, retrying get_format() without it.
I:2023-06-13 15:34:53 ms:888:decode_slice_header error
I:2023-06-13 15:34:53 ms:888:no frame !

    


    If ffplay is used and d3d11va and dxva2 hardware acceleration is not enabled, the video can be played normally, and the printed video information is as follows :
PS D :\msys64\home\wangj\ffmpeg-4.4.1\buildout\bin> .\ffplay.exe -i D :\Desktop\13132023061300012_1_C1_34.mp4
ffplay version 4.4.1 Copyright (c) 2003-2021 the FFmpeg developers
configuration : —prefix=./buildout —arch=x86 —toolchain=msvc —enable-shared —disable-debug —enable-sdl2 —enable-dxva2 —enable-d3d11va
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D :\Desktop\13132023061300012_1_C1_34.mp4' :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2avc1mp41
encoder : Lavf56.38.102
Duration : 00:00:44.00, start : 0.000000, bitrate : 1706 kb/s
Stream #0:0(und) : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 1705 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
Metadata :
handler_name : VideoHandler
vendor_id : [0][0][0][0]

    


    Is this pixel format not supported by d3d11va and dxva2 ? What can I do to get ffplay to play this video file with hardware acceleration ?

    


    When d3d11va and dxva2 hardware acceleration is enabled, most of the videos that can be played also have yuv420p pixel format, why can't this video be played?

    


  • How to combine multiple videos in android using ffmpeg ?

    23 mai 2023, par Haeiny

    I added dependency to use ffmpeg on Android.

    


    implementation "com.arthenica:mobile-ffmpeg-full:4.4"


    


    And I wanted to combine the videos from the gallery, so I temporarily saved the imported video in the cache directory in the app.

    


    After that, I wrote the following function to take the saved images and merge them using ffmpeg :

    


    
fun mergeVideos(videoPaths: List\): Int {
        val cacheDirectory = this.externalCacheDir
        mergedVideoFile = File(cacheDirectory, "merged_video.mp4").absolutePath

        val command = StringBuilder()
        command.append("ffmpeg")
        for (videoPath in videoPaths) {
            command.append(" -i ").append(videoPath)
        }

        command.append(" -filter_complex ").append("\"")
        for (i in videoPaths.indices) {
            command.append("[$i:v] ").append("[$i:a] ")
        }

        command.append("concat=n=").append(videoPaths.size).append(":v=1:a=1 [v] [a]").append("\"")
        command.append(" -map \"[v]\" -map \"[a]\" ").append(mergedVideoFile)
    
        return FFmpeg.execute(command.toString())
    }


    


    I wanted to temporarily save the merged video in the "mergedVideoFile" so that I could save them in the cache directory, and videoPaths would get the Urls of the videos I wanted to merge into the list.

    


    The command verified through Log.d :

    


    
ffmpeg -i /storage/emulated/0/Android/data/"project name"/files/Movies/VIDEO1.mp4 -i /storage/emulated/0/Android/data/"project name"/files/Movies/VIDEO2.mp4 -filter_complex "\[0:v\] \[0:a\] \[1:v\] \[1:a\] concat=n=2:v=1:a=1 \[v\] \[a\]" -map "\[v\]" -map "\[a\]" /storage/emulated/0/Android/data/"project name"/cache/merged_video.mp4


    


    result of mergeVideos execution :

    


    
Loading mobile-ffmpeg.
Loaded mobile-ffmpeg-full-arm64-v8a-4.4-20210207.
Callback thread started.
ffmpeg version v4.4-dev-416
Copyright (c) 2000-2020 the FFmpeg developers
built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)

configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec

libavutil      56. 55.100 / 56. 55.100
libavcodec     58. 96.100 / 58. 96.100
libavformat    58. 48.100 / 58. 48.100
libavdevice    58. 11.101 / 58. 11.101
libavfilter     7. 87.100 /  7. 87.100
libswscale      5.  8.100 /  5.  8.100
libswresample   3.  8.100 /  3.  8.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/"project name"/files/Movies/VIDEO1.mp4':

Metadata:
major_brand     :   mp42
minor_version   :   0
compatible_brands:  isommp42
creation_time   :   2023-05-02T12:22:45.000000Z
com.android.version:  11
com.android.capture.fps:  30.000000
Duration:  00:00:02.51  , start:   0.000000  , bitrate:  14232 kb/s

      Stream #0:0

(eng)
: Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 14022 kb/s
, SAR 1:1 DAR 16:9 ,  30 fps, 30 tbr,  90k tbn,  180k tbc   (default)

Metadata:
rotate          :  90
creation_time   : 2023-05-02T12:22:45.000000Z
handler_name    :  VideoHandle
Side data:
displaymatrix: rotation of -90.00 degrees

      Stream #0:1

(eng)
: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s   (default)

     Metadata:
        creation_time   :   2023-05-02T12:22:45.000000Z
        handler_name    :   SoundHandle

Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/"project name"/files/Movies/VIDEO2.mp4':

... Input #1's video metadatas ...

\[NULL @ 0x78367662e0\] Unable to find a suitable output format for 'ffmpeg'
ffmpeg: Invalid argument


    


    I don't know what is the problem in my code.
Please help me.