Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (40)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4871)

  • How to decrypt AES 128 encrypted HLS stream when URI for key is "k/timestamp"

    25 janvier 2021, par Wilfred Almeida

    I have downloaded 1784 .ts files and they are AES 128 encrypted.

    


    The .m3u8 file has #EXT-X-KEY:METHOD=AES-128,URI="k/timestamp",IV=0x496daa1c6914000e408c65cead91fc29 which I guess indicates that the key must be in a file named timestamp. I got the "timestamp" file and now I want to decrypt.

    


    I tried replacing the URI with URI="file:timestamp" with all the .ts, the .m3u8 and the timestamp file all in same directory and ran the ffmpeg command

    


    ffmpeg -allowed_extensions ALL -protocol_whitelist file,tcp,crypto,http,https  -i playlist.m3u8 -c copy op.mp4

    


    but got the errors Error when loading first segment 'hls_350k_000.ts'                                  playlist.m3u8: Invalid data found when processing input even though it opened the file successfully.

    


    I tried specifying the URI as URI="http://localhost/mydir/timestamp" but got the same error as specified above. I had all .ts,.m3u8,"timestamp" file in XAMPP's htdocs folder.

    


    When I open the "timestamp" file in browser's inspect->Network->Click on file->preview, I see weird text like kf¯2“.ú¸“Á•ª   Bn5ydr/x$.9+cgKC!<ßû¢ÌNñ®jûŸŸ and it changes everytime I refresh the site.

    


    I specified the link of the file in URI and tried, same error.

    


    I tried specifying .key extension to the "timestamp" file, same error.

    


    I downloaded the "timestamp" file by entering its URL into browser which I got from inspect->Network->Click on file->Headers, I didn't download it as HAR or other stuff.

    


    I tried playing the .m3u8 file in chrome using chrome by using Native HLS Playback extension with files hosted using XAMPP but it doesn't play, video player shows loading and the chrome's console has following errors

    


    (anonymous) @ player.js:57
player.js:11 trying to recover from media Error ...
handleMediaError @ player.js:11
hls.0.12.4.min.js:1 Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
player.js:57 Player error: mediaError - fragParsingError
(anonymous) @ player.js:57
player.js:17 trying to swap Audio Codec and recover from media Error ...
handleMediaError @ player.js:17
player.js:57 Player error: mediaError - fragParsingError
(anonymous) @ player.js:57
player.js:22 cannot recover, last media error recovery failed ...
handleMediaError @ player.js:22
DevTools failed to load SourceMap: Could not load content for chrome-extension://emnphkkblegpebimobpbekeedfgemhof/hlsjs/hls.min.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME


    


    I tried combining the .ts files using ffmpeg but got the same errors specified above.

    


    How do I decrypt the files and combine them into a single vlc playable file ?

    


  • Getting this error using ffmpeg concat in ReactNative "concat imposible to open"

    2 février 2021, par Josip Bogdan

    Hy, I am trying to concat multyple video using ffmpeg concat, testing on samsung j76, android version 8.1.0

    


    const textFile = await (await writeTextFileWithAllVideoFiles(filePaths))  
const outputPath = Platform.OS === 'ios' ? `${RNFS.DocumentDirectoryPath}/video-1.mp4` : `${RNFS.DocumentDirectoryPath}/video-1.mp4`
console.log(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)
const result = await RNFFmpeg.execute(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)


    


    And here is how I create the txt file

    


    const writeTextFileWithAllVideoFiles = async (filePaths) => {
var RNFS = require('react-native-fs');
var path = RNFS.DocumentDirectoryPath + '/videoList.txt';

var fileContent = ''
console.log("fileplay1");
filePaths.forEach(path => {
   fileContent += 'file ' + '\'' + path.substring(8) + '\'' + '\r\n'
});
console.log(fileContent);
return RNFS.writeFile(path, fileContent, 'utf8')
.then((success) => {
   console.log(path)
   if (RNFS.exists(path))
      console.log('FILE WRITTEN!')
   return path
})
.catch((err) => {
    console.log(err.message)
    return err.message
});  
}


    


    This is my console log output

    


    file 'data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
file 'data/user/0/com.videoeditorapp/cache/Camera/58130175-bd20-4002-9629-070d0cdd18ac.mp4'

[Tue Feb 02 2021 16:30:45.375]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt
[Tue Feb 02 2021 16:30:45.376]  LOG      FILE WRITTEN!
[Tue Feb 02 2021 16:30:45.376]  LOG      -f concat -safe 0 -i /data/user/0/com.videoeditorapp/files/videoList.txt -c copy /data/user/0/com.videoeditorapp/files/video-1.mp4
[Tue Feb 02 2021 16:30:45.376]  LOG      [concat @ 0xe2b22000] Impossible to open '/data/user/0/com.videoeditorapp/files/data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
[Tue Feb 02 2021 16:30:45.377]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt: No such file or directory


    


    And the txt file is not on my android device
My manifest is like this

    


    &#xA;  &#xA;      &#xA;&#xA;<application></application>&#xA;

    &#xA;

  • Basic "pass-through" use of FFmpegReader/FFmpegWriter in scikit-video

    6 février 2021, par JonathanZ supports MonicaC

    I am starting to use scikit-video and am having trouble writing files. I have reduced the problem to the simplest possible example

    &#xA;

    vid_file = "6710185719062326259_stamp_25pct.mp4"&#xA;output_file = "out_temp3.mp4"&#xA;reader = skvideo.io.FFmpegReader(vid_file)&#xA;writer = skvideo.io.FFmpegWriter(output_file)&#xA;for frame in reader.nextFrame():&#xA;        writer.writeFrame(frame)&#xA;writer.close()&#xA;

    &#xA;

    I'm playing the files in VLC, and the vid_file is valid but the output file, though playable, is mostly big green blocks (though I can discern some details from the original video in it).

    &#xA;

    My goal, or course, is to do "interesting" manipulations of the frame before I write it out, but I need to get the "no modifications" version working correctly first. I'm also going to be using this on large files, so the vread/vwrite functions that process an entire file at once are not appropriate.

    &#xA;

    I'm guessing I need to set the appropriate values in the outputdict parameter for the FFmpegWriter, but there are so many that I don't know where to start. I have tried

    &#xA;

    writer = skvideo.io.FFmpegWriter(output_file, outputdict={&#x27;-crf&#x27;: &#x27;0&#x27;, &#x27;-pix_fmt&#x27;: &#x27;rgb24&#x27;})&#xA;

    &#xA;

    (-crf 0 to suppress any compression, -pixfmt rgb24 as that's what FFmpegReader says it delivers by default, but these don't work either.

    &#xA;

    Any ideas on how to make this work ?

    &#xA;

    Here's the skvideo.io.ffprobe video information for the input file.

    &#xA;

    {&#xA;    "@index": "0",&#xA;    "@codec_name": "h264",&#xA;    "@codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;    "@profile": "High",&#xA;    "@codec_type": "video",&#xA;    "@codec_time_base": "1/30",&#xA;    "@codec_tag_string": "avc1",&#xA;    "@codec_tag": "0x31637661",&#xA;    "@width": "480",&#xA;    "@height": "270",&#xA;    "@coded_width": "480",&#xA;    "@coded_height": "272",&#xA;    "@has_b_frames": "2",&#xA;    "@pix_fmt": "yuv420p",&#xA;    "@level": "21",&#xA;    "@chroma_location": "left",&#xA;    "@refs": "1",&#xA;    "@is_avc": "true",&#xA;    "@nal_length_size": "4",&#xA;    "@r_frame_rate": "15/1",&#xA;    "@avg_frame_rate": "15/1",&#xA;    "@time_base": "1/15360",&#xA;    "@start_pts": "0",&#xA;    "@start_time": "0.000000",&#xA;    "@duration_ts": "122880",&#xA;    "@duration": "8.000000",&#xA;    "@bit_rate": "183806",&#xA;    "@bits_per_raw_sample": "8",&#xA;    "@nb_frames": "120",&#xA;    "disposition": {&#xA;        "@default": "1",&#xA;        "@dub": "0",&#xA;        "@original": "0",&#xA;        "@comment": "0",&#xA;        "@lyrics": "0",&#xA;        "@karaoke": "0",&#xA;        "@forced": "0",&#xA;        "@hearing_impaired": "0",&#xA;        "@visual_impaired": "0",&#xA;        "@clean_effects": "0",&#xA;        "@attached_pic": "0",&#xA;        "@timed_thumbnails": "0"&#xA;    },&#xA;    "tag": [&#xA;        {&#xA;            "@key": "language",&#xA;            "@value": "und"&#xA;        },&#xA;        {&#xA;            "@key": "handler_name",&#xA;            "@value": "VideoHandler"&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    I will mention that when I ffprobe the output file the only differences I see are 1) the timing data is different, which isn't surprising, and 2) the output file has

    &#xA;

        "@has_b_frames": "0",&#xA;    "@pix_fmt": "yuv444p",&#xA;

    &#xA;

    I'm pretty confident the reader is working okay, because if I write out the data with

    &#xA;

    skimage.io.imsave(&#x27;x.png&#x27;, frame,  check_contrast=False)&#xA;

    &#xA;

    it looks good.

    &#xA;