
Recherche avancée
Autres articles (67)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (4432)
-
Pipe a HTTP response
30 juillet 2014, par viperfxHow do I pipe an HTTP response like in NodeJS. Here is the snippet I am using in NodeJS :
request({
url: audio_file_url,
}).pipe(ffmpeg_process.stdin);How can I achieve the same result in Go ?
I am trying to pipe a audio stream from HTTP into an FFmpeg process so that it converts it on the fly and returns the converted file back to the client.
Just so its clear to everyone here is my source code so far :
func encodeAudio(w http.ResponseWriter, req *http.Request) {
path, err := exec.LookPath("youtube-dl")
if err != nil {
log.Fatal("LookPath: ", err)
}
path_ff, err_ff := exec.LookPath("ffmpeg")
if err != nil {
log.Fatal("LookPath: ", err_ff)
}
streamLink := exec.Command(path,"-f", "140", "-g", "https://www.youtube.com/watch?v=VIDEOID")
var out bytes.Buffer
streamLink.Stdout = &out
cmdFF := exec.Command(path_ff, "-i", "pipe:0", "-acodec", "libmp3lame", "-f", "mp3", "-")
resp, err := http.Get(out.String())
if err != nil {
log.Fatal(err)
}
// pr, pw := io.Pipe()
defer resp.Body.Close()
cmdFF.Stdin = resp.Body
cmdFF.Stdout = w
streamLink.Run()
//get ffmpeg running in another goroutine to receive data
errCh := make(chan error, 1)
go func() {
errCh <- cmdFF.Run()
}()
// close the pipeline to signal the end of the stream
// pw.Close()
// pr.Close()
// check for an error from ffmpeg
if err := <-errCh; err != nil {
// ff error
}
}Error : 2014/07/29 23:04:02 Get : unsupported protocol scheme ""
-
Fix CBR output for IP multicasting video
19 août 2014, par ddhungI’m using ffmpeg for transcoding live ip multicasting video on server linux Centos 5.9 OS. This is my ffmpeg command
ffmpeg -i "udp:// x.x.x.x:6000?fifo_size=1000000&overrun_nonfatal=1&timeout=1000000" -filter:v yadif=0:-1:1 -vcodec libx264 -vprofile main -level 30 -tune zerolatency -pass 1 -b:v 900k -minrate 900k -maxrate 900k -bufsize 900k -x264opts nal_hrd=cbr:rc_lookahead=40:interlaced=1:scenecut=0:cabac=1:keyint=120:deblock=0,0:aud=1:qpmin=16:qpmax=51:qpstep=10:ref=2:mixed-refs=1:subme=9:me=esa:chroma_me=0:merange=64:8x8dct=0:fast_pskip=0:chroma_qp_offset=0:trellis=2:psy=0:bframes=0:weightp=2:sliced_threads -s:v 720x576 -r:v 25 -force_key_frames 'expr:gte(t,n_forced*3)' -threads 0 -acodec aac -strict -2 -ac 1 -ar 32000 -b:a 32k -filter:a volume=1 -f mpegts -muxrate 1400k udp://x.x.x.x:6000?pkt_size=1316
My output video is for broadcasting so I have to configure CBR video output by feature –
muxrate
. But when I watch this stream on VLC the bitrate change very much not constant. The null packet is very high to force cbr mpeg2ts output.I also measure IP output video by HST3000 JDSU equipment and I see the measurement result is very bad as images.
The PCR Jitter, IGMP Latency, Jitter Max which is not good as measurement standard by JDSUI try many way to change the ffmpeg command but not successful. The bitrate changes sometime > 1400kbps a lot. I think the problem may be the bitrate not constant. I have heard to change the muxrate output is CBR, it had to be change the code C mpegtsenc.c in libavformat library to new patch.
So could you help me fix this problem and make the measurment result is better.
Thank you so much.Best Regards
-
License or not ? As website owner do i have to pay license for using ffmpeg (x264) -> mp4 decoding in my webiste ?
28 août 2014, par lindermanI am very confused about my legal or illegal rights to use H.264 mp4 file.
I had long time reading various websites about should i pay license or not ... still cant understand ..
So here is the exact situation :
I have website , where users can upload their videos. Videos are taken with their smart-phones or home cameras , or webcam etc.
After they upload their videos , i am using FFMPEG (x264) to convert the video from 3gp, mov, or even "mp4 to mp4".
Then other users can watch these decoded videos on my website.
I am not charging the end users anything. My website is free for uploaders and viewers.
You will be right if you say that my website have the same purpose as youtube - and you will be right.. video sharing !
So ME - as website owner , hosting buyer and ffmpeg user ... should i have to pay license ? OR ABANDON THE MP4 decoding in my website ?
Thank you