
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (50)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (5490)
-
FFMPEG command for video and audio
19 mai 2012, par StackOverflowNewbieI'm not building the next YouTube or iTunes, but I do need to give my users the ability to upload their videos and audios — then present it on the web at the highest possible quality with the lowest possible file size.
Questions :
-
FOR INPUT : What video and audio formats should I support ? I'm guessing I should try to support the most common formats, but I'm not entirely sure what they are. Also, I'm not sure if I should support the most common formats. Maybe there is a reason not to support a certain format.
-
FOR OUTPUT : What video and audio output formats should I generate ? I'd like to use HTML5's and tags, but know I should consider supporting non-HTML5 browsers. Should I do OGG, MP4 and FLV for videos ? What about audios ?
-
Given an unknown video and audio file uploaded by the user, what command should I use to generate the desired output formats. I'd like one command to convert to particular outputs — and hopefully not have to do anything different to the commands depending on the input (it'll be a pain for me to know what the MIME type is of the file, etc. and can't really do an "if input is a WMV, then run this command" logic).
Suggestion FFMPEG experts ?
-
-
asyncio.create_subprocess_shell error : Future exception was never retrieved - BrokenPipeError
10 juin 2021, par AbdelmalekWhenever I use asyncio.create_subprocess_shell() with sp.communicate() I get this error at the end of my program.


If I run multiple suprocesses using asyncio, the error would be print at the end for each one of them.


Aulthough it doesn't affect my program, I want to find the source and fix the issue. Thanks for the help !


Traceback :


Future exception was never retrieved
future: <future finished="finished" exception="BrokenPipeError(32," pipe="pipe" has="has" been="been">
Traceback (most recent call last):
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\subprocess.py", line 153, in _feed_stdin
 await self.stdin.drain()
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\streams.py", line 387, in drain
 await self._protocol._drain_helper()
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\streams.py", line 197, in _drain_helper
 await waiter
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 379, in _loop_writing
 f.result()
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 812, in _poll
 value = callback(transferred, key, ov)
 File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 538, in finish_send
 return ov.getresult()
BrokenPipeError: [WinError 109] The pipe has been ended
</future>


Code :


async def get(cs, url):
 async with cs.get(url) as r:
 b = b''
 while True:
 chunk = await r.content.read(4000000)
 b += chunk
 if not chunk:
 break
 
 if int(r.headers['content-length']) < 8000000:
 result = BytesIO(b)
 return [result, 'full']
 else:
 command = f"ffmpeg -y -i - -c:v copy -fs 8000000 -f matroska -"
 sp = await asyncio.create_subprocess_shell(command, stdin=asyncio.subprocess.PIPE,
 stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
 stdout, stderr = await sp.communicate(b)
 sp.wait()

 print(stderr.decode())
 print(len(stdout))
 output = str(stderr)
 index_d = output.find('Duration: ')
 index_t = output.rfind('time=')
 duration = await get_sec(output[index_d + 10:].split(",")[0])
 time_ = await get_sec(output[index_t + 5:].split(" ")[0])
 percentage = f"{round((time_ / duration) * 100)}%"

 result = BytesIO(stdout)
 return [result, 'preview', percentage]

async def main(urls):
 async with aiohttp.ClientSession() as cs:
 
 tasks = []
 for url in urls:
 task = asyncio.create_task(get(cs, url))
 tasks.append(task)
 
 results = []
 for task in tasks:
 result = await task
 results.append(result)
 
 return results

loop = asyncio.get_event_loop()
results = loop.run_until_complete(main(urls))



-
Anomalie #3177 (Nouveau) : padding auto n’existe pas
4 mars 2014, par b bOn a une règle qui tente de coller la valeur auto en tant que padding dans la dist :
http://zone.spip.org/trac/spip-zone/browser/_core_/plugins/dist/css/layout.css#L73
Pourtant cette valeur n’est pas reconnue et ne semble pas être "valide", cf :
padding : [
| ] 1,4 https://developer.mozilla.org/fr/docs/CSS/padding
Si ce n’est pas voulu il serait bon supprimer ce padding : auto !important ;