Recherche avancée

Médias (91)

Autres articles (75)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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.

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7815)

  • Flask send_file not sending file

    30 avril 2021, par jackmerrill

    I'm using Flask with send_file() to have people download a file off the server.

    



    My current code is as follows :

    



    @app.route('/', methods=["GET", "POST"])
def index():
    if request.method == "POST":
        link = request.form.get('Link')
        with youtube_dl.YoutubeDL(ydl_opts) as ydl:
            info_dict = ydl.extract_info(link, download=False)
            video_url = info_dict.get("url", None)
            video_id = info_dict.get("id", None)
            video_title = info_dict.get('title', None)
            ydl.download([link])
        print("sending file...")
        send_file("dl/"+video_title+".f137.mp4", as_attachment=True)
        print("file sent, deleting...")
        os.remove("dl/"+video_title+".f137.mp4")
        print("done.")
        return render_template("index.html", message="Success!")
    else:
        return render_template("index.html", message=message)


    



    The only reason I have .f137.mp4 added is because I am using AWS C9 to be my online IDE and I can't install FFMPEG to combine the audio and video on Amazon Linux. However, that is not the issue. The issue is that it is not sending the download request.

    



    Here is the console output :

    



    127.0.0.1 - - [12/Dec/2018 16:17:41] "POST / HTTP/1.1" 200 -
[youtube] 2AYgi2wsdkE: Downloading webpage
[youtube] 2AYgi2wsdkE: Downloading video info webpage
[youtube] 2AYgi2wsdkE: Downloading webpage
[youtube] 2AYgi2wsdkE: Downloading video info webpage
WARNING: You have requested multiple formats but ffmpeg or avconv are not installed. The formats won't be merged.
[download] Destination: dl/Meme Awards v244.f137.mp4
[download] 100% of 73.82MiB in 00:02
[download] Destination: dl/Meme Awards v244.f140.m4a
[download] 100% of 11.63MiB in 00:00
sending file...
file sent, deleting...
done.
127.0.0.1 - - [12/Dec/2018 16:18:03] "POST / HTTP/1.1" 200 -


    



    Any and all help is appreciated. Thanks !

    


  • FFmpeg stops temporarily when downloading HLS segment files

    9 mai 2022, par Nemdr

    I am downloading a video from a website in the HLS (M3U8) format, by downloading the segment (.ts) files. I am not re-encoding, but just copying the codecs, the command that I use :

    


    ffmpeg -user_agent "my ua" -referer "my referer" -i https://website/file.m3u8 -c copy outputfile.mp4 


    


    Sometimes the download suddenly stops in the middle of the download, and after a few seconds or a minute, it resumes. I am thinking that perhaps this has to do with the speed at which I am downloading, maybe the CDN temporarily rate limits me ?

    


    I have tried using this option : -http_multiple 0 to use only 1 HTTP connection to download the segment files, but this happens sometimes with this option as well. What could be the reason behind the sudden pauses ? And is there something I can do to slow down the download speed ? I have tried using the -re option as well, which downloads the segments at the native speed as if I'm watching the video, but that's too slow.

    


    Another possibility is that ffmpeg cannot find the next segment files, because the segment files in the .m3u8 manifest file are relative URLs, not full URLs, so ffmpeg has to search for the URL ??

    


  • Error while installing ffmpeg on standalone computer

    10 juillet 2018, par newuser

    I am trying to install libx264 and ffmpeg on a computer without internet access
    My plan is to first download all required packages and dependencies on a laptop with internet and then copy them over
    To download the packages I used :

    apt-get download $(apt-rdepends <package>|grep -v "^ ")
    </package>

    I was able to install yasm, libvpx and libx264 without issues this way.
    When I try to install ffmpeg, I get this error.

    The following packages have unmet dependencies:
    chromium-codecs-ffmpeg-extra-dbg : Depends: chromium-codecs-ffmpeg-extra (= 51.0.2704.79-0ubuntu0.16.04.1.1242) but 66.0.3359.181-0ubuntu0.16.04.1 is installed
    ffmpeg-dbg : Depends: ffmpeg (= 7:2.8.14-0ubuntu0.16.04.1)
    ffmpeg-doc : Depends: libjs-bootstrap but it is not installed
    ffmpeg2theora : Depends: liboggkate1 (>= 0.3.0) but it is not installed
    ffmpegthumbs : Depends: libkf5kiowidgets5 (>= 4.99.0) but it is not installed
    kffmpegthumbnailer : Depends: libkio5 (>= 4:4.3.4) but it is not installed
    moc-ffmpeg-plugin : Depends: moc (= 1:2.6.0~svn-r2788-1) but it is not installed

    where do I get these packages from ? I dont want apt-get to download them for me as I want to be able to get the package files.