
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (61)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes 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 : (...)
Sur d’autres sites (8058)
-
FFmeg : How to apply one unique filter type with varying durations at different times in a video
26 janvier 2023, par FaxopitaI'd like to crop top and bottom black bars of a movie. Unfortunately, black bar thickness varies during movie runtime at specific times. So I use the following command to collect crop data at specific times in the movie :


$ ffmpeg -ss 00:03:00 -i "$f" -t 1 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1



Then, I execute again this command at a different start time (replacing, e.g.
00:03:00
by00:43:17
) to collect another crop data.

Now, I'd like to use those crop data in a filter. First crop data to be applied for specific duration beginning from specific time and second crop data to be applied for another specific duration beginning from another specific time in the movie.


I thought I could use something like :


-vf="crop=3840:2016:0:72,enable=between(t,0,10),crop=2832:1600:1008:280,enable=between(t,10,50)"



But not working.


-
Video recorded from a webcam using FFmpeg is desynchronizing in iOS native player
11 mars 2021, par LuuudoObjective


I am trying to record a video (duration ≈ 1min to 4hours) from a webcam plugged into a PC. Then play just after the end of the recording the video on an Ipad connected to the same network as the PC.


To do this I'm trying to record the video using ffmpeg (the detailed command I use is below). Then I serve the video that's on the PC to the Ipad via a Java server (The server works well with other videos so I don't think the problem is here).


Problem


When I play the video on the IPad native player, for example in Safari, the sound is going faster than the video and therefore it's desynchronizing from the video. If I request a certain time the video and audio re-sync then the audio is desynchronizing again while playing.


- 

- The video when played on VLC on the PC or on Firefox by requesting the server is well synced.
- Another video (I downloaded this one to test) played on the Ipad from the server stay synced.






It is only with the combination of a video record by myself using FFmpeg played in the iOS native player that I can observe the desynchronization.


FFmpeg command


I use FFmpeg to record the video from the webcam and save it into a file format readable on iOS.


ffmpeg -y -f avfoundation -framerate 25 -pixel_format nv12 -video_size 1280x720 -i "0:0" -r 25 out.mp4



The resulting recorded file info according to ffmpeg is below :


> ffmpeg -i out.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.45.100
 Duration: 00:00:33.76, start: 0.000000, bitrate: 1510 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1440 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 61 kb/s (default)
 Metadata:
 handler_name : SoundHandler



Compatible video formats from TV and Video iPad Pro specs




Video formats supported : H.264 video up to 4K, 30 frames per second, High Profile level 4.2 with AAC‑LC audio up to 160 Kbps, 48kHz, stereo audio or Dolby Audio up to 1008 Kbps, 48kHz, stereo or multichannel audio, in .m4v, .mp4, and .mov file formats ; MPEG‑4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC‑LC audio up to 160 Kbps per channel, 48kHz, stereo audio or Dolby Audio up to 1008 Kbps, 48kHz, stereo or multichannel audio, in .m4v, .mp4, and .mov file formats ; Motion JPEG (M‑JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format




I don't see what codecs or profiles I don't respect ?


ps : I write PC but I'm currently trying this on a Mac. Eventually, I want to be able to do it also on Linux or even Windows. It looks like I just have to change the input devices to do that, which is avfoundation for MacOS.


-
FATAL EXCEPTION in Flutter with Ffmpeg
10 avril 2022, par Keyur TailorGetting this error while executing command using flutter_ffmpeg package


Command i am using to concate two video files


Running FFmpeg with arguments : [-r, 25, -f, -s, 1920x1080, -i, /data/user/0/com.example.dualites/cache/file_picker/VID-20220410-WA0002.mp4, /data/user/0/com.example.dualites/cache/file_picker/VID-20220409-WA0007.mp4, -vcodec, libx264, -crf, 25, -pix_fmt, yuv420p, /data/user/0/com.example.dualites/app_flutter/output.mp4]


Error :


I/mobile-ffmpeg(25131) : Loading mobile-ffmpeg.
E/AndroidRuntime(25131) : FATAL EXCEPTION : AsyncTask #1
E/AndroidRuntime(25131) : Process : com.example.dualites, PID : 25131
E/AndroidRuntime(25131) : java.lang.RuntimeException : An error occurred while executing doInBackground()
E/AndroidRuntime(25131) : at android.os.AsyncTask$4.done(AsyncTask.java:415)
E/AndroidRuntime(25131) : at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
E/AndroidRuntime(25131) : at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
E/AndroidRuntime(25131) : at java.util.concurrent.FutureTask.run(FutureTask.java:271)
E/AndroidRuntime(25131) : at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(25131) : at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(25131) : at java.lang.Thread.run(Thread.java:923)
E/AndroidRuntime(25131) : Caused by : java.lang.UnsatisfiedLinkError : dlopen failed : cannot locate symbol "av_default_item_name" referenced by "/data/app/ fbhkKzNZMT8l82CisXfxrA==/com.example.dualites-UrjU03DG36KYD_QyGsH3mg==/base.apk !/lib/arm64-v8a/libmobileffmpeg.so"...
E/AndroidRuntime(25131) : at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
E/AndroidRuntime(25131) : at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
E/AndroidRuntime(25131) : at java.lang.System.loadLibrary(System.java:1664)
E/AndroidRuntime(25131) : at com.arthenica.mobileffmpeg.Config.(Config.java:133)
E/AndroidRuntime(25131) : at com.arthenica.mobileffmpeg.Config.ffmpegExecute(Config.java:623)
E/AndroidRuntime(25131) : at com.arthenica.mobileffmpeg.FFmpeg.execute(FFmpeg.java:68)
E/AndroidRuntime(25131) : at com.arthenica.flutter.ffmpeg.FlutterFFmpegExecuteFFmpegAsyncArgumentsTask.doInBackground(FlutterFFmpegExecuteFFmpegAsyncArgumentsTask.java:56)
E/AndroidRuntime(25131) : at com.arthenica.flutter.ffmpeg.FlutterFFmpegExecuteFFmpegAsyncArgumentsTask.doInBackground(FlutterFFmpegExecuteFFmpegAsyncArgumentsTask.java:38)