
Recherche avancée
Autres articles (38)
-
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs. -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
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
Sur d’autres sites (4480)
-
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.


-
Anomalie #3851 : Référencer code.plugins.spip.net
1er novembre 2016, par jluc -Bonne idée
mais pour les pages de plugins.spip.net il y a plus simple que parser le .txt ou changer la DTD : tester si l’url de phpdoc existe : juste tester si
http://code.plugins.spip.net/albums
existe et ne renvoie pas une 404, et alors mettre le lien PHPDOC vers cettre url -
Anomalie #3156 (Fermé) : forum : supprimer l’option lien hypertexte ou mettre à jour le formulaire ?
18 juillet 2014, par denisb -fermé par http://zone.spip.org/trac/spip-zone/changeset/83689/ (et suivants...)
(pcc erational)