Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (102)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4778)

  • The duration of the combined video with FFmpeg becomes 0

    24 août 2019, par sido

    I am developing an app for Android by Unity.
    When I merge video and audio with FFmpeg, the duration of the output video file is 0 though it can be played back normally.

    I tried to set duration when merging, but it didn’t work.

    The commands being executed are as follows :

    -y -i /storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_video.mp4 -i /storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_audio.mp3 -t 3 -c copy -map 0:v -map 1:a -shortest /storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_merged.mp4

    I expected that the duration of the merged file was the value set in MovieTime, but the duration of the actually merged file was 0.

    The log is as follows :

    Started
    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (GCC)
     configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2019-08-24 03:21:20
       com.android.version: 7.0
     Duration: 00:00:03.65, start: 0.000000, bitrate: 2821 kb/s
       Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 360x640, 2814 kb/s, SAR 1:1 DAR 9:16, 59.42 fps, 59.94 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2019-08-24 03:21:20
         handler_name    : VideoHandle
    [mp3 @ 0xed92f600] Skipping 0 bytes of junk at 880.
    Input #1, mp3, from '/storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_audio.mp3':
     Metadata:
       encoder         : Lavf57.25.100
     Duration: 00:00:03.55, start: 0.025057, bitrate: 257 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s
       Metadata:
         encoder         : Lavc57.24
    Output #0, mp4, to '/storage/emulated/0/Android/data/jp.ne.company.app/files/Record/20190824122116_merged.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.0
       encoder         : Lavf57.25.100
       Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 360x640 [SAR 1:1 DAR 9:16], q=2-31, 2814 kb/s, 59.42 fps, 59.94 tbr, 90k tbn, 90k tbc (default)
       Metadata:
         creation_time   : 2019-08-24 03:21:20
         handler_name    : VideoHandle
       Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 256 kb/s
       Metadata:
         encoder         : Lavc57.24
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  178 fps=0.0 q=-1.0 Lsize=    1098kB time=00:00:03.00 bitrate=2992.8kbits/s speed= 122x    
    video:997kB audio:95kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.534772%
  • Could not find codec parameters for stream 0 (Video : png, none)

    22 août 2019, par Vipul Solanki

    I’m trying to overlap png over jpg but getting bellow error. I’ve tried in FFMPEG version 3.4.6 and GCC 5.5.0

    ffmpeg -i Emily-Bett-Rickards.jpg -i abc.png -filter_complex "[0:v][1:v] overlay=(W-w)/2:(H-h)/2:enable='between(t,0,20)'" -pix_fmt yuv420p -c:a copy bc38775d-278d-41f0-821f-89917475200b-meta.jpg
    ffmpeg version N-94608-gaeae628 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 5.5.0 (Ubuntu 5.5.0-12ubuntu1~16.04) 20171010
     configuration: --enable-decoder='mjpeg,png' --enable-demuxer=image2 --enable-protocol=file
     libavutil      56. 33.100 / 56. 33.100
     libavcodec     58. 55.100 / 58. 55.100
     libavformat    58. 31.101 / 58. 31.101
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.100 /  7. 58.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
    Input #0, image2, from 'Emily-Bett-Rickards.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 34289 kb/s
       Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 600x400, 25 tbr, 25 tbn, 25 tbc
    [png_pipe @ 0x389fdc0] Could not find codec parameters for stream 0 (Video: png, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #1, png_pipe, from 'abc.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, none, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 (mjpeg) -> overlay:main
     Stream #1:0 (?) -> overlay:overlay
     overlay -> Stream #0:0 (mjpeg)
    Decoder (codec png) not found for input stream #1:0

    Any help would be appreciated.

  • Using Unicast RTSP URIs via ffmpeg

    6 août 2019, par Chris Marshall

    I’m fairly new to ffmpeg, so I’d certainly appreciate being given an "M" to "RTFM." The ffmpeg docs are...not-so-easy...to navigate, but I’m trying.

    The goal is to develop a compiled server that incorporates ffmpeg, but first, I need to get it working via CLI.

    I have a standard AXIS Surveillance camera (AXIS M5525-E), set up as an ONVIF device (but that isn’t really relevant to this issue).

    When I query it, I get the following URI as its video streaming URI :

    rtsp://192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&streamtype=unicast

    The IP is local to a sandboxed network.

    I add the authentication parameters to it, like so :

    rtsp://<login>:<password>@192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&amp;streamtype=unicast
    </password></login>

    (Yeah, I know that’s not secure, but this is just for testing and feasibility study. The whole damn sandbox is an insecure mess).

    Now, if I use VLC to open the URI, it works great (of course). Looking at it with a packet analyzer, I see the following negotiation between the device and my computer (at .2 - Clipped for brevity) :

    Id = 11
    Source = 192.168.4.12
    Destination = 192.168.4.2
    Captured Length = 82
    Packet Length = 82
    Protocol = TCP
    Date Received = 2019-08-06 12:18:37 +0000
    Time Delta = 1.342024087905884
    Information = 554 -> 53755 ([ECN, ACK, SYN], Seq=696764098, Ack=3139240483, Win=28960)
                       °
                       °
                       °
    Id = 48
    Source = 192.168.4.12
    Destination = 192.168.4.2
    Captured Length = 366
    Packet Length = 366
    Protocol = TCP
    Date Received = 2019-08-06 12:18:38 +0000
    Time Delta = 2.09382700920105
    Information = 554 -> 53755 ([ACK, PUSH], Seq=696765606, Ack=3139242268, Win=1073)

    Followed immediately by UDP stream packets.

    If, however, I feed the same URI to ffmpeg :

    ffmpeg -i rtsp://<login>:<password>@192.168.4.12/onvif-media/media.amp?profile=profile_1_jpeg&amp;streamtype=unicast -c:v libx264 -crf 21 -preset veryfast -g 30 -sc_threshold 0 -f hls -hls_time 4 /Volumes/Development/webroot/fftest/stream.m3u8
    </password></login>

    I get nothing. No negotiation at all between the device and my computer.

    After that, if I then remove the &amp;streamtype=unicast argument, I get a negotiation, and a stream :

    Id = 10
    Source = 192.168.4.12
    Destination = 192.168.4.2
    Captured Length = 82
    Packet Length = 82
    Protocol = TCP
    Date Received = 2019-08-06 10:37:48 +0000
    Time Delta = 3.047425985336304
    Information = 554 -> 49606 ([ECN, ACK, SYN], Seq=457514925, Ack=2138974173, Win=28960)
                       °
                       °
                       °
    Id = 31
    Source = 192.168.4.12
    Destination = 192.168.4.2
    Captured Length = 345
    Packet Length = 345
    Protocol = TCP
    Date Received = 2019-08-06 10:37:49 +0000
    Time Delta = 3.840152025222778
    Information = 554 -> 49606 ([ACK, PUSH], Seq=457516393, Ack=2138975704, Win=1039)

    I will, of course, be continuing to work out why this is [not] happening, and will post any solutions that I find, but, like I said, I’m fairly new to this, so it’s entirely possible that I’m missing some basic stuff, and would appreciate any guidance.

    Thanks !