
Recherche avancée
Autres articles (70)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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
Sur d’autres sites (8284)
-
Changing Video's rotation metadata without rotating video
2 décembre 2016, par Arshdeep SinghI have two Videos. One is from front camera and one is from back camera. When I concatenate these two. one gets vertically inverted in merged file. Video taken from front camera having rotation metadata 270. And Video taken from back camera having rotation metadata 90. While concatenation one gets inverted, while I don’t want. Please help....
-
ffmpeg remove part of video, crop, rotate video [duplicate]
2 novembre 2017, par 1234567 -
How to increase video quality of combined video and audio file using ffmpeg
29 juin 2022, par jettzeongI have a scraper script that I am using which utilizes PRAW module to scrape reddit for media.


To downloaded reddit videos, I have written the code below :


video_url = submission.media['reddit_video']['fallback_url'] 
 audio_url = submission.url + "/audio"
 print('Video: ' + video_url)
 print('Audio: ' + audio_url)
 video = requests.get(video_url).content
 audio = requests.get(audio_url).content
 videoname = "D:\\Bot\\reddit_scrape\\" + submission.id + '_video.mp4'
 audioname = "D:\\Bot\\reddit_scrape\\" + submission.id + '_audio.mp4'
 filename = "D:\\Bot\\reddit_scrape\\" + submission.id + '.mp4'
 
 with open(videoname, 'wb') as handler:
 handler.write(video)
 with open(audioname, 'wb') as handler:
 handler.write(audio)

 os.system(f"ffmpeg -i {videoname} -i {audioname} -map 0:v -map 1:a -c:v copy {filename}")
 os.remove(videoname)
 os.remove(audioname)
 save_to_dict(id = submission.id, ext = filename, txt = submission.title)



What this code does is that it fetches the video and audio seperately from reddit, and combines them via ffmpeg.


However, the video created by this block of code is very blurry and has low resolution.


May I know what kind of argument I can use to make my video file play with higher resolution ?