
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (92)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (7059)
-
How to pipe frames in stdout using FFMPEG and Golang
6 avril 2020, par Sven.DGI am fairly new to Golang, my goal is to build a script in Golang that :



- 

- Transcodes the video input .MOV file into frames, using FFMPEG
- Some downstream process that does something with the emitted frames.







Currently I have the following code as a first attempt :



package main

import (
 "fmt"
 "os/exec"
 "strconv"
 "io"
)

const (
 frameX = 240
 frameY = 135
 frameSize = frameX * frameY * 3
)

func main() {
 ffmpeg := exec.Command("ffmpeg", "-i", "project/data/sample.mov", "-vf", "fps=fps=1/2", "-s", strconv.Itoa(frameX)+"x"+strconv.Itoa(frameY), "-f", "rawvideo", "pipe:1") //nolint
 ffmpegOut, _ := ffmpeg.StdoutPipe()

 if err := ffmpeg.Start(); err != nil {
 panic(err)
 }

 reader(ffmpegOut)
 fmt.Println("Completed. YAY")
}

func reader(ffmpegOut io.Reader) {
 buf := make([]byte, frameSize)
 fmt.Println("Looping..")
 counter := 0
 for {
 if _, err := io.ReadFull(ffmpegOut, buf); err != nil {
 // fmt.Println(err)
 }
 if buf[0] != 0 {
 fmt.Println("Got a frame!!")
 counter++
 fmt.Println(counter)
 }
 }
 fmt.Println("total amount of frames", counter)
}




This is mainly based on this example : https://github.com/pion/example-webrtc-applications/blob/master/gocv-receive/main.go



However, when running this code, it appears that I'm getting an endless amount of data in my downstream
reader
. I would expect that the counter equals the amount of frames but that is clearly not the case looking at the rate at which the counter increases, so obviously I am doing something wrong. Can anybody point me in the right direction ?


I used the sample .mov file with 1280 x 720 resolution here : https://file-examples.com/index.php/sample-video-files/sample-mov-files-download/.
The video is about 31 seconds so I would expect to see 15 frames downstream in the reader.



Cheers !


-
Matomo Further Invests in Security by Doubling Bug Bounty Rewards
7 janvier 2022, par erin — Community, Press Releases -
ffmpeg : check ost->finished in reap_filters()
14 janvier 2014, par Michael Niedermayer