
Recherche avancée
Autres articles (58)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (6916)
-
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 ?


-
Start .bat after files get download in torrent client
16 mai 2018, par AniEncoder