Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (100)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (14966)

  • How do I decrypt the HLS stream to a .ts file when I have the key and IV ?

    28 décembre 2017, par A___ea_

    I have access to all the .ts files.
    My .m3u8 starts like this :

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:13
    #EXT-X-KEY:METHOD=AES-128,URI="https://localserver/get_key?title_id=144", IV=0x4d1acfe1962002a4abedb8b68c65fa93
    #EXTINF:12.066667,
    1500_144_00000.ts
    #EXTINF:9.000000,
    1500_144_00001.ts
    EXTINF:9.000000,
    1500_144_00002.ts
    ...

    ... and the .m3u8 continues to show all the .ts files. It gives me the IV, and my Access key is f0d3321327cbaa1aa9ddba07801607442bebaad65b17ca75a15affd5

    No I’ve been searching my brain and the web for an answer on how to decrypt the .ts files (or the concatenated file) and I have seen suggestions using both openssl and ffmpeg but I can not seem to reach all the way with either tool.

    From what I’ve figured I can use the IV and Access_key to decrypt the stream using openssl. I have used the IV=4d1acfe1962002a4abedb8b68c65fa93 (removed 0x).

    I have so far tried to with the concatenated file :

    openssl aes-128-cbc -d -in concatenatedfile.ts -out decrypted_concatenatedfile.ts -nosalt -iv 4d1acfe1962002a4abedb8b68c65fa93 -K f0d3321327cbaa1aa9ddba07801607442bebaad65b17ca75a15affd5

    But this just gives me

    bad decrypt
    139793444538016:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:539:

    I’ve seen suggestions that use a .key file and convert that to a readable format. But since I don’t have a .key file, but a ready string, I figure this is where I fail.

    I’ve tried using ffmpeg in accordance to this beautiful post by @aergistal.

    ffmpeg -i my.m3u8 -c copy output.ts

    But here too I seem to fail with my long string key.

    Any suggestions on how to proceed using openssl or ffmpeg are very welcome.

    Kindly

  • ffmpeg not converting entire video in java application

    12 décembre 2017, par Urvashi Soni

    My code converts a video into different formats (160p to 2160p). The codec of video with rotate tag 90 needs to be changed. below id the code for the same which works fine for all videos till date.

    log_wfm.debug("Changing the codec video for file [" + orgFileName + "] and name of source file ["
                       + srcFileName + "]");
               String codecFlipCommand = "ffmpeg -i " + orgFileName + " -c:v libx264 -preset ultrafast " + srcFileName;

               log_wfm.info("Executing command to change the codec of video!");
               fp = Runtime.getRuntime().exec(codecFlipCommand);

               inputStream = new BufferedReader(new InputStreamReader(fp.getInputStream()));
               outputStream = new BufferedReader(new InputStreamReader(fp.getErrorStream()));

               StringBuffer output = new StringBuffer();
               String line;
               while ((line = inputStream.readLine()) != null) {
                   output.append(line).append('\n');
               }
               log_wfm.debug("stdInputForCodecChange: " + output);

               output = new StringBuffer();
               while ((line = outputStream.readLine()) != null) {
                   output.append(line).append('\n');
               }
               log_wfm.debug("stdErrorForCodecChange: " + output);

    now have a file of size 1.5Gb. The video does not create the file with changed codec. The file till size 848.5 MB is created and then the program hangs (with no exception or error logs)
    Please suggest some way to finish this codec change process.
    The ffmpeg command converts the video, but via java application, the process hangs
    Logs While converting via commandLine :

    ffmpeg version N-83433-ge87a4a8 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.1 (GCC) 20161221 (Red Hat 6.3.1-1)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags='-L/root/ffmpeg_build/lib -ldl' --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
     libavutil      55. 46.100 / 55. 46.100
     libavcodec     57. 75.100 / 57. 75.100
     libavformat    57. 66.101 / 57. 66.101
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 73.100 /  6. 73.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/urvashi/test/SachinSagaGameLaunchEvent.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2017-12-07T06:26:23.000000Z
       com.android.version: 7.1.1
    Duration: 00:14:16.02, start: 0.000000, bitrate: 14231 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 13971 kb/s, SAR 1:1 DAR 16:9, 29.94 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2017-12-07T06:26:23.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
       Metadata:
         creation_time   : 2017-12-07T06:26:23.000000Z
         handler_name    : SoundHandle
    [libx264 @ 0x4601a20] using SAR=1/1
    [libx264 @ 0x4601a20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x4601a20] profile Constrained Baseline, level 4.0
    [libx264 @ 0x4601a20] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, mp4, to '/home/urvashi/test/Manual_SachinSagaGameLaunchEvent.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.1.1
       encoder         : Lavf57.66.101
       Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 29.92 fps, 11488 tbn, 29.92 tbc (default)
       Metadata:
         handler_name    : VideoHandle
         creation_time   : 2017-12-07T06:26:23.000000Z
         encoder         : Lavc57.75.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2017-12-07T06:26:23.000000Z
         handler_name    : SoundHandle
         encoder         : Lavc57.75.100 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help Past duration 0.600212 too large   48193kB time=00:00:27.26 bitrate=14479.2kbits/s speed=2.07x
    Past duration 0.998863 too large
    frame=25611 fps= 55 q=-1.0 Lsize= 1721466kB time=00:14:16.04 bitrate=16473.7kbits/s dup=0 drop=17 speed=1.85x
    video:1707295kB audio:13453kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.041757%
    [libx264 @ 0x4601a20] frame I:103   Avg QP:22.16  size:242916
    [libx264 @ 0x4601a20] frame P:25508 Avg QP:25.17  size: 67557

    Thanks in Advance.

  • OpenCV3.3.1 fails to read a video

    1er janvier 2018, par Kasparov92

    Here is the code I use

    file_name = 'movie.avi'
    cap = cv2.VideoCapture(file_name)

    success, frame = cap.read()

    i = 0

    while success:
       i +=1
       success, frame = cap.read()

    print "Frames successfully read:", i

    And I am getting this error :

    Unable to stop the stream: Inappropriate ioctl for device

    (python:139873): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
       Frames successfully read: 0

    On this particular video, it fails to read ! I tried the same code on other videos and they work fine. I also tried the same piece of code with another laptop (same operating system : Ubuntu 16.04) and it works.

    Is it a codec issue ? if so why other videos could be loaded and read successfully ?

    EDIT 1 :

    I recompiled opencv using -DWITH_LIBV4L=ON after sudo apt-get install libv4l-dev and Now I am getting this error :

    Failed to query video capabilities: Inappropriate ioctl for device
    libv4l2: error getting capabilities: Inappropriate ioctl for device
    VIDEOIO ERROR: V4L: device /root/datasets/UCF-101/TableTennisShot/v_TableTennisShot_g22_c02.avi: Unable to query number of channels

    (python:173084): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed