
Recherche avancée
Autres articles (102)
-
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 (...) -
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 : (...) -
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 (...)
Sur d’autres sites (6337)
-
Gstreamer preserve timestamp when encoding ts segments
1er juillet 2021, par Guru GovindanI have a series of ts files(h265) which are part of a m3u8 manifest which are fed into the pipeline through fdsrc. I use the following pipeline to transcode them to H264 to be played on a Hlsjs web browser.


cat 2021-06-30T00-55-41Z_2000000.ts | gst-launch-1.0 -q mpegtsmux name=mux ! fdsink fd=1 fdsrc ! tsdemux name=demux demux. ! queue ! h265parse ! nvh265dec ! videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! nvh264enc ! mux.



The individual ts segments are transcoded successfully and can be played.


However the DTS is out of aligment and when these ts segments are played as part of the hls manifest, it is not able to play as DTS is out of order.


[mpegts @ 0x7fb69100a400] DTS 6496420096 < 6496446847 out of order
[hls @ 0x7fb69580ea00] DTS 6496420096 < 6496446847 out of order



In FFMPEG we have copyts to preserve the timestamp.
Is there something similar in gstreamer to preserve the timestamp ? Or atleast generate a timestamp with the current time so that the player doesnt complain ?


I tried
fdsrc do-timestamp=true
but that didnt work.

I appreciate any help in this.


Best


-
Can´t convert .mp4 file to .mjpeg file with ffmpeg
19 février 2018, par Herr HupfDohleI use ffmpeg to convert a .mp4 file to a .mjpeg file and I fail doing so.
What i tried so far :
Converting directly from .mp4 to .mjpeg with one of these :"ffmpeg -i input.mp4 output.mjpeg"
"ffmpeg -i input.mp4 -framerate 25 output.mjpeg"Getting all the individual images of my video (which worked fine) and put them together to a .mjpeg file did not work as well.
"ffmpeg -i input.mp4 image%d.jpeg"
"ffmpeg -f image2 -i image%d.jpeg output.mjpeg", or
"ffmpeg -f image2 -i image%d.jpeg -framerate 25 output.mjpeg""Solutions" like the following one did not work, cause I need a file extension .mjpeg so -c:v mjpeg is not enough cause I end up with sth. like .mov !
"ffmpeg -i input.mov -c:v mjpeg -q:v 3 -huffman optimal -an output.mov"
To view my files I use vlc player.
I always end up with a .mjpeg file which has the length of 10 seconds and only shows the very first image of my 4000 pictures.
-
FFMPEG : new m3u8 playlist in every hour from the same segmented stream
23 mars 2018, par iPogI’m using the latest Windows build of FFMPEG (by Zeranoe).
Currently I create 2 outputs from the same raw live video input. I use the tee pseudo-muxer to give the user the following outputs :
- PRIMARY OUTPUT : transcoded live stream ; using the HLS or the segment muxer ; 14 pieces of 10-second-long segments on a ramdisk.
- SECONDARY OUTPUT : from the same transcoding I store every segment on the hard drive ; to make the hard drive versions watchable, I create m3u8 playlists with an automated batch script in every hour ; all individual playlist files contain 1 hour of content.
Is it possible to achieve the same result with FFMPEG only ? I.e. the secondary output should be able to finish the current m3u8 playlist, and start a new one with a new filename at every hour o’clock.
(My batch-based solution works fine, so it isn’t that important, but it would be nice to know if it is possible at all. I could not find a similar approach in the documentation/wiki.)