
Recherche avancée
Autres articles (23)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...)
Sur d’autres sites (5750)
-
How do I use ffmpeg library in Python on Android with Pydroid ?
25 décembre 2022, par Cristina T.I'm trying to run the following code that uses the ffmpeg library on the app Pydroid 3 :


import subprocess 

# Video path 
video_path = '/storage/emulated/0/Download/video.mp4' 

# Output SRT file path 
srt_path = '/storage/emulated/0/Download/subtitles.srt' 

# Run ffmpeg command 
subprocess.run(['ffmpeg', '-i', video_path, '-map', '0:s:0', srt_path])



But I receive the message :


Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in \
start(fakepyfile,mainpyfile)
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), __main__.__dict__)
File "\", line 10, in \
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/subprocess.py", line 505, in run
with Popen(\*popenargs, \*\*kwargs) as process:
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/subprocess.py", line 953, in __init__
self.\_execute_child(args, executable, preexec_fn, close_fds,
File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/subprocess.py", line 1821, in \_execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: \[Errno 2\] No such file or directory: 'ffmpeg'



I've already installed the ffmpeg library using pip. I tried installing ffmpeg-python, python-ffmpeg and ffmpegio, but I kept getting errors. Then I installed ffmpeg using Termux and specified the ffmpeg path in the code, like this :


subprocess.run(['/data/data/com.termux/files/usr/bin/ffmpeg', '-i', video_path, '-map', '0:s:0', srt_path])



But I got the message :


PermissionError: [Errno 13] Permission denied: '/data/data/com.termux/files/usr/bin/ffmpeg'



My phone is running Android 11 and it's not rooted. I'm a complete beginner and have no idea how to fix this.


-
Is there a Python Library to extract video metadata such as [Title, Description, Caption/Subtitles] ?
10 septembre 2024, par SingularitySGI'm currently trying to find python libraries that can assist me in extracting metadata or information from video files such as [mp4, Mkv, Avi, WebM, mpg] formats for example.


The main data that I'm focusing on extracting from the video files are mostly the [Title, Description, Comment, Captions/Subtitles].


I've tried using FFmpeg-python following this guide : https://www.thepythoncode.com/article/extract-media-metadata-in-python


and Tinytag, https://www.geeksforgeeks.org/access-metadata-of-various-audio-and-video-file-formats-using-python-tinytag-library/


From my understanding, FFmpeg-python provided the most data from the probe() function but the output does not contain [Title, Description, Comment] and closed_captions is simply '0' which I assume is the source track.


Thank you for any help provided.


-
Java library for converting MP4 to MPEG-2 TS in memory ?
30 avril 2014, par LaneSO...
I have a Java FX application that runs an embedded HTTP Live Streaming server for video playback using the Media class (NOT live streaming, video on demand). The video playback consists of multiple files that are actually storing a collection of RTP packets. When my HttpHandler is called to handle the get request for the files (entries in the .m3u8 index file), I plan on...
- Loading the file into memory
- Creating a byte array of the RAW H264 packets
- Convert (wrap ?) the RAW H264 to a MPEG-2 TS (ffmpeg -i video.h264 video.ts)
- Write the MPEG-2 TS contents to the response body so that it can be played
...one of my requirements is that I am not able to create local files, even temp ones. So I cannot create a .h264 file, use ffmpeg to create a .ts file, read the ts file and then write the contents to the response body.
As far as I can tell, Xuggler does not work with streams and JCodec is slow. I am fairly confident that I can dig into and understand the MPEG-2 TS format and simply convert the RAW H264 into the appropriate format, but this seems like a lot of needless work that should have been done before.
Anyone know of a simple way to convert RAW H264 to MPEG-2 TS ? Or MP4 to MPEG-2 TS ? I can use MP4Parser to create the MP4 data in memory quickly, I just need a java library that can generate MPEG-2 TS data, thanks !