
Recherche avancée
Autres articles (48)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.
Sur d’autres sites (9156)
-
How to use prebuilt FFmpeg in Android Studio
26 mai 2016, par vxh.vietI’m sure this is a very basic question but since this is the my first time messing around with the NDK, a lot of thing is still very unclear to me.
Use case :
-
I’m trying to develop a video scrubbing feature so fast and accurate frame seeking is crucial. I’ve tried most of the available players out there but the performance is still not up to my demand. That’s why I’m going down the FFmpeg route.
-
Basically, what I’m looking for is FFmpeg input seeking. I’ve tried WrtingMinds’ ffmpeg-android-java. However it is a file based implementation which means the
out.jpg
need to be written to external memory and read back which has a big hit on performance (roughly 1000 milliseconds for 1 seek). -
That’s why I’m trying to built my own FFmpeg player to do the input seeking in JNI and push back the
byte[]
to be displayed in Java.
Question : After a lot of struggling with the NDK, I’ve managed to set it up and successfully calling the JNI method from my Java code. The structure is as below :
MyApp
-app
-MyFFmpegPlayer
-build
-libs
-src
-main
-java
-com.example.myffmpegplayer
+HelloJNI.java
-jni
+MyFFmpegPlayer.cAfter some fail attempt to build FFmpeg on Windows, I’ve decided to use WritingMinds prebuilt FFmpeg. However, after extraction they just come up as plain
ffmpeg
files (not.so
file) so I don’t really know how to use these.It would be a great gratitude, if someone can just chime in and give me a good starting point for my next step.
Thank you so much for your time.
-
-
I need to implement video compression for files that exceed 5 MB in size
27 septembre 2024, par KAVYA PI need to implement video compression for files that exceed 5 MB in size. I have tried several packages for this purpose, but they either do not work as expected or have significant security vulnerabilities. It's crucial for me to find a reliable and secure solution for compressing videos that meet this file size requirement. If you have any recommendations for libraries or tools that effectively handle video compression without compromising security, please let me know.


const handleFileChange = async (
 event: React.ChangeEvent<htmlinputelement>
 ) => {
 const file = event.target.files?.[0];
 if (file) {
 const isImage = file.type.startsWith('image/');
 const MAX_FILE_SIZE = isImage ? 2 * 1024 * 1024 : 5 * 1024 * 1024; // 2 MB for images, 5 MB for videos

 if (file.size > MAX_FILE_SIZE) {
 if (isImage) {
 alert('Image file size exceeds 2 MB. Compressing the file...');
 try {
 const compressedFile = await imageCompression(file, {
 maxSizeMB: 2,
 maxWidthOrHeight: 1920,
 useWebWorker: true,
 });
 onSelectFile({
 ...event,
 target: {
 ...event.target,
 files: [compressedFile] as unknown as FileList,
 },
 });
 } catch (error) {
 console.error('Error compressing the image:', error);
 }
 } else {
 alert('Video file size exceeds 5 MB. Please choose a smaller video.');
 }
 } else {
 onSelectFile(event); // Proceed with the file selection
 }
 }
 };
</htmlinputelement>


-
The YouTube live stream encountered a failure
12 février 2024, par kuldeep chopraWe are currently utilizing the ffmpeg library for streaming on YouTube Live. However, we have faced issues in a recent live streaming session that initially functioned correctly but encountered errors around the 13 to 15-minute mark. The error logs from FFmpeg during this session are as follows :


Live Stream 1 Error :(Attempt 1)




ffmpeg [flv @ 0x555c4bdfe680] Failed to update header with correct
duration. 2023-09-07T23:06:38.490+05:30 [flv @ 0x555c4bdfe680] Failed
to update header with correct filesize. 2023-09-07T23:06:38.491+05:30
failed => rtmp ://a.rtmp.youtube.com/live2/key......
2023-09-07T23:06:38.491+05:30
ffmpeg [tee @ 0x555c48843700] Slave
muxer #1 failed : Broken pipe, continuing with 1/2 slaves.




Live Stream 2 Error (Attempt 2) :




Slave muxer #1 failed : Connection reset by peer, continuing with 1/2
slaves.




It is crucial to note that we have conducted numerous live streams on YouTube without encountering this error previously ; this is the first instance of such an issue.


We kindly request your assistance in investigating and providing insights into the underlying problem causing these error messages. Any guidance or support you can offer in resolving this issue would be greatly appreciated.