
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (46)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (5539)
-
Fragmented MP4 not playing in ffplay/QuickTime/Safari, but in VLC
6 août 2020, par Stack64I encoded a fMP4-Video (HEVC) in Swift using VideoToolbox and CoreMedia. The resulting fragmented MP4 is only playing in VLC.


The library I am using to write the fMP4 is an HEVC-adapted version of this GitHub-Project : https://github.com/krad/morsel


Process of encoding and writing :


- 

- VideoToolbox : Encoding
SampleBuffer
from the camera (VTCompressionSession
, as described in WWDC 2014 Session 513) - Using
CoreMedia
-Functions (e.g.CMVideoFormatDescriptionGetHEVCParameterSetAtIndex
,CMVideoFormatDescriptionGetDimensions
) to get the encoded streams metadata. I am writing the content ofCMFormatDescriptionGetExtension(description, extensionKey: "SampleDescriptionExtensionAtoms" as CFString)["hvcC"]
directly to the hvcC box. This box is obviously written correctly, when I alter one bit of the box of the mp4, QuickTime throws an error. - I am appending the sample buffer data to the morsel-library, which manages fragmentation and creates the moof and mdat atoms.








The result file is playable in VLC, when I just let the playback "run" without doing anything. When I scroll the time in VLC, VLC crashes and the playback stops.


It is also sort of "playable" in Safari and QuickTime (no error message shown, the playback window opens and the correct length of the file is shown, I can even change to playback time / play/pause, but there is no video shown. The window remains empty. And that is the problem I have. I need to get an fMP4 running in Safari and QuickTime.


The file is not playing at all in ffplay (same problem when converting with ffmpeg). The line where the playback time is shown remains
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
, there are no error messages. The playback just does not start.
When playing the file with ffplay, this is the output :

ffplay version 4.3 Copyright (c) 2003-2020 the FFmpeg developers
 built with Apple clang version 11.0.3 (clang-1103.0.32.62)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 1
 compatible_brands: mp41mp42isomhlsf
 creation_time : 2020-08-03T20:41:08.000000Z
 Duration: N/A, bitrate: N/A
 Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 1000000000.00 tbr, 1000000000.00 tbn, 1000000000.00 tbc (default)
 Metadata:
 creation_time : 2020-08-03T20:41:08.000000Z
 handler_name : video
 nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 



My file has this structure :


ftyp
moov
 mvhd
 trak
 tkhd
 mdia
 mdhd
 hdlr
 minf
 vmhd
 dinf
 dref
 stbl
 stsd
 stts
 stsc
 stsz
 stco
 mvex
 trex
moof-(1)
mdat
moof-(2)
mdat 
...



The result file I want to create should be like the fMP4 served within this HLS playlist : (Example : https://developer.apple.com/streaming/examples/advanced-stream-hevc.html, Playlist : https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/master.m3u8)
This file has the following structure :


ftyp
moov
 mvhd
 trak
 tkhd
 mdia
 mdhd
 hdlr
 minf
 vmhd
 dinf
 dref
 stbl
 stsd
 stts
 stsc
 stsz
 stco
 trak (same structure as above)
 mvex
 trex
moof-(1)
mdat
moof-(2)
mdat 
...



This file from Apple plays perfectly in ffmpeg and QuickTime/Safari. Except for the second
trak
atom, it has the same structure.

The "good" file is : https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/v14/main.mp4 (It is intended for use in a HLS Playlist I've downloaded it with curl)


The "bad" file is : https://www.transfernow.net/ddl/fmp4_bad (link should work, tested it just now :) ). The video shows a slowly rotating sheet of paper.


Any suggestions what the problem with my file is ?
Thanks in advance !


- VideoToolbox : Encoding
-
how to add hvt1 hvc2 to ffmpeg ?
19 août 2020, par user10716022i only add libavformat library isom.c


{ AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 'c', '2') }, /* HEVC / H.265 coded
with gpac */
 { AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 't', '1') }, /* HEVC / H.265 coded
with gpac */



i want use ffmpeg mpeg dash srd


MPD video code ffmpeg do not have
this is my MPD


<?xml version="1.0"?>

<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H3M37.792S" maxsegmentduration="PT0H0M5.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011">
 <programinformation moreinformationurl="http://gpac.io">
 
 </programinformation>

 <period duration="PT0H3M37.792S">
 <adaptationset segmentalignment="true" maxwidth="1920" maxheight="1012" maxframerate="24" par="1920:1012" lang="und" startwithsap="1">
 <essentialproperty schemeiduri="urn:mpeg:dash:srd:2014" value="1,0,0,0,0"></essentialproperty>
 <segmenttemplate media="output_qp22_dash_track1_$Number$.m4s" initialization="hight01_set1_init.mp4" timescale="24000" startnumber="1" duration="120000"></segmenttemplate>
 <representation mimetype="video/mp4" codecs="hvc2.1.6.L186.80" width="1920" height="1012" framerate="24" sar="1:1" bandwidth="3010576">
 </representation>
 </adaptationset>
</period>
</mpd>



-
ffmpeg only processes first image
8 septembre 2020, par Michael PriceI have a directory of .png images (I had previously tried .jpg until I read somewhere ffmpeg prefers .png).


The images share a file numbering format cof000.png - cof358.png.


I want to convert those images into a moving picture format. MPG or MP4 will be fine.


The command I have tried is


ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4



I adapted the command from this post, here :


https://stackoverflow.com/questions/53778503/ffmpeg-video-slideshow-only-takes-first-image



Even after trying numerous different permutations of the command the final file only has the first image in it. I am using windows.


What ffmpeg command do I need to use on Windows to compile all 180 image files into a single moving image ?


Here is the output from using the command :


$ ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200621
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enabl
e-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enabl
e-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --
enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-l
ibvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11
va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
Input #0, image2, from 'cof%03d.png':
 Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
 Stream #0:0: Video: png, rgb24(pc), 1200x1200 [SAR 2834:2834 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
File 'output.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001f7da6985c0] using SAR=1/1
[libx264 @ 000001f7da6985c0] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2
[libx264 @ 000001f7da6985c0] profile High 4:4:4 Predictive, level 4.0, 4:4:4, 8-bit
[libx264 @ 000001f7da6985c0] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264
.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_rang
e=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 s
liced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=
0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbt
ree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
 Metadata:
 encoder : Lavf58.45.100
 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1200x1200 [SAR 1:1 DAR 1:1], q=-1--1, 6 fps, 12288
tbn, 6 tbc
 Metadata:
 encoder : Lavc58.91.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame= 1 fps=0.0 q=23.0 Lsize= 26kB time=00:00:00.00 bitrate=2662518.5kbits/s speed=0.000541x
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.137195%
[libx264 @ 000001f7da6985c0] frame I:1 Avg QP:16.42 size: 25465
[libx264 @ 000001f7da6985c0] mb I I16..4: 2.1% 85.2% 12.7%
[libx264 @ 000001f7da6985c0] 8x8 transform intra:85.2%
[libx264 @ 000001f7da6985c0] coded y,u,v intra: 9.1% 0.9% 1.0%
[libx264 @ 000001f7da6985c0] i16 v,h,dc,p: 42% 39% 19% 0%
[libx264 @ 000001f7da6985c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 11% 52% 0% 0% 0% 0% 0% 0%
[libx264 @ 000001f7da6985c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 13% 5% 4% 6% 6% 6% 5%
[libx264 @ 000001f7da6985c0] kb/s:1222.32