
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (53)
-
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 -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
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 (...)
Sur d’autres sites (11517)
-
download video by ffmpeg access denied [closed]
14 septembre 2021, par Vĩnh Hộiffmpeg -i "https://stream2.hocmai.vn/media/FhxZzrGLdQz59MY4r2xKAA/1631218009/saturn/moon/2020-2021_s5/Toan/Luyen_thi_THPTQG/PEN-C_N3/Nguyen_Thanh_Tung/01.Ky_thuat_truy_nguoc_ham_28365/01_360.mp4/clipTo/60000/hocmai-14-v1-a1.ts" -c copy -bsf:a aac_adtstoasc "output.mp4"


and fail
[https @ 000002133ca2e6c0] HTTP error 403 Forbidden
https://stream2.hocmai.vn/media/FhxZzrGLdQz59MY4r2xKAA/1631218009/saturn/moon/2020-2021_s5/Toan/Luyen_thi_THPTQG/PEN-C_N3/Nguyen_Thanh_Tung/01.Ky_thuat_truy_nguoc_ham_28365/01_360.mp4/clipTo/60000/hocmai-14-v1-a1.ts : Server returned 403 Forbidden (access denied)


-
How do I combine PyTube audio and video streams in a Flask app and let the user download as one file without storing on the web server ?
10 avril 2022, par AJB9384I'm building a YouTube downloader as a side project in Flask. It allows users to input a url and download the video without storing anything on the server I'm hosting on


Lower quality videos can be sent to the user easily as they from PyTube as one file. I use the code below :


import os
import flask
from flask import redirect, url_for, session, send_file
import requests

import pytube
from pytube import YouTube
from io import BytesIO

@app.route('/pull_videos', methods = ['GET', 'POST'])
def pull_videos(): 
 buffer=BytesIO()
 yt_test=YouTube('https://www.youtube.com/watch?v=NNNPgIfK2YE')
 video = yt_test.streams.get_by_itag(251)

 video.stream_to_buffer(buffer)
 buffer.seek(0)

 return send_file(buffer, as_attachment=True, download_name="Test video")



However, I struggle when trying to pull in higher quality videos as they come in as separate audio and videos streams (see documentation here : https://pytube.io/en/latest/user/streams.html#)


I am trying to use ffmpeg to combine the two and then send to the user, but the code below isn't working as expected and throws an error :


Code :


import os
import flask
from flask import redirect, url_for, session, send_file
import requests
import ffmpeg

import pytube
from pytube import YouTube
from io import BytesIO

@app.route('/pull_videos', methods = ['GET', 'POST'])
def pull_videos(): 
 buffer=BytesIO()
 
 video = yt_test.streams.get_by_itag(137)
 input_video = ffmpeg.input(video)
 
 audio = yt_test.streams.get_by_itag(137)
 input_audio = ffmpeg.input(audio)
 
 combined = ffmpeg.concat(input_video, input_audio, v=1, a=1)
 combined.stream_to_buffer(buffer)
 buffer.seek(0)

 return send_file(buffer, as_attachment=True, download_name="Test video")



Error : AttributeError : 'FilterableStream' object has no attribute 'stream_to_buffer'


How could I combine these audio and video streams from PyTube into one file for the user to download without storing on the server ?


-
libavutil/hwcontext_qsv : Align width and heigh when download qsv frame
6 avril 2022, par Wenbin Chenlibavutil/hwcontext_qsv : Align width and heigh when download qsv frame
The width and height for qsv frame to download need to be
aligned with 16. Add the alignment operation.
Now the following command works :
ffmpeg -hwaccel qsv -f rawvideo -s 1920x1080 -pix_fmt yuv420p -i \
input.yuv -vf "hwupload=extra_hw_frames=16,format=qsv,hwdownload, \
format=nv12" -f null -Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>
Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>