
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (105)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (10330)
-
Solving The XVD Puzzle
I downloaded a multimedia file a long time ago (at least, I strongly suspected it was a multimedia file which is why I downloaded it). It went by the name of ‘lamborghini_850kbps.vg2′. I have had it in my collection for at least 7 years. I couldn’t remember where I found it. I downloaded it before it occurred to me to take notes about this sort of stuff.
I found myself staring at the file again today and Googled the filename. This led me to a few Japanese sites which also contained working URLs for a few more .vg2 samples. Some other clues led me to a Russian language forum where someone had linked to a site that had Win32 codec modules that could process the files. The site was defunct but the Internet Archive Wayback Machine kept a copy for me, as well as copies of several more .vg2 samples from a defunct Japanese site previously involved with this codec.
Sometimes this internet technology works really well. But I digress.
Anyway, through all this, I finally found a clue : XVD. and wouldn’t you know, there is already a basic page on the MultimediaWiki describing the technology. In fact, while VG2 is a custom container, the MultimediaWiki states that the video component has a FourCC of VGMV, and there is already a file named VGMV.avi in the root V-codecs/ samples directory, something I vow to correct (that’s a big pet peeve of mine– putting samples in the root V-codecs/ or A-codecs/ directories).
XVD… XVD… XVD… why does that sound so familiar ? Oh, of course ; there is a company named XVD and they have an office in the Bay Area which I have passed on numerous occasions, like this morning :
<
Someone originally connected with the multimedia technology in question operates a website which contains an unofficial history of the XVD tech. At first, I was wondering if the technology was completely defunct (and should therefore be open sourced). But if XVD’s solutions page (dated 2010) is to be believed, the technology is still in service, and purported to be better than H.264 and VC-1 : “The current generation of XVD video compression technology provides better video quality at any given data rate than standards-based codecs (H.264 or VC-1) with four times lower encoding complexity (when compared with H.264 Main Profile).”
If they say so. For my part, I’m just happy that I have finally figured out what this lamborghini_850kbps.vg2 is so that I can properly catalog it on the samples site, which I have now done, along with other samples and various codecs modules.
This episode reminds me that there’s a branch office of Zygo Corporation close to my home (though the headquarters are far, far away). The companies you see in Silicon Valley. Anyway, long-time open source multimedia hackers will no doubt recognize Zygo from the ZyGo FourCC & video codec transported in QuickTime files that was almost decode-able using an H.263 decoder.
I may never learn what Zygo’s core competency actually is, but I will always remember their multimedia tech every time I run past their office.
-
moov atom not found [in#0 @ 0x62ea0f9fb500] Error opening input : Invalid data found when processing input
14 août 2024, par KiranI'm trying to convert an MP4 video, created using OpenCV, to HLS format using FFmpeg. However, I keep encountering the following error :


moov atom not found [in#0 @ 0x62ea0f9fb500] Error opening input : Invalid data found when processing input.
FFmpeg Command :


ffmpeg -i input_file_path -r 30 -g 60 -keyint_min 60 -sc_threshold 0

-c:v libx264 -preset veryfast -profile:v main -level 4.0

-hls_time 2 -hls_list_size 0 -hls_flags delete_segments+append_list+split_by_time+omit_endlist

-hls_segment_filename segment_%03d.ts hls_output_path

Python Code for Creating MP4 :



import cv2
import tempfile
import os
from subprocess import call

with tempfile.NamedTemporaryFile(delete=False, suffix='.mp4') as temp_file:
 raw_filename = temp_file.name
 fourcc = cv2.VideoWriter_fourcc(*'H264')
 out = cv2.VideoWriter(raw_filename, fourcc, fps, (width, height), True)

 out.write(cv2.cvtColor(first_frame, cv2.COLOR_RGB2BGR))
 for frame in frame_generator:
 out.write(cv2.cvtColor(frame, cv2.COLOR_RGB2BGR))

 out.release()

with tempfile.NamedTemporaryFile(delete=False, suffix='.mp4') as temp_file:
 final_filename = temp_file.name

command = [
 'ffmpeg',
 '-y', 
 '-i', raw_filename,
 final_filename
]
call(command)

with open(final_filename, 'rb') as file:
 video_bytes = file.read()

os.remove(raw_filename)
os.remove(final_filename)



Environment :


OS : Ubuntu
Cloud : AWS EC2
FFmpeg Version : 6.1.1-3ubuntu5


-
Merge commit ’db32f14c3dfd75290b57a086183d6577457beac4’
9 mars 2014, par Michael NiedermayerMerge commit ’db32f14c3dfd75290b57a086183d6577457beac4’
* commit ’db32f14c3dfd75290b57a086183d6577457beac4’ :
isom : add "MNG" FourCCSee : 8d0ec6e060b23c8ef188d759f59ee1e536c494ed
Merged-by : Michael Niedermayer <michaelni@gmx.at>