Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (61)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5037)

  • Raspberry pi live stream to youtube stopped working

    27 décembre 2023, par Gergely Maros

    I have a working setup for streaming a video to youtube with my raspberry pi 3.
It was work until yesterday. Nothing changed but I have an error when I try to start the stream.
Running the following command :

    



    raspivid -o - -t 0 -w 1280 -h 720 -p -hf -fps 25 -b 2560000 | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/my_key


    



    And get this error :

    



    ffmpeg version 3.2.10-1 deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg
developers   built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516  
configuration : —prefix=/usr —extra-version='1 deb9u1+rpt1'
—toolchain=hardened —libdir=/usr/lib/arm-linux-gnueabihf —incdir=/usr/include/arm-linux-gnueabihf —enable-gpl —disable-stripping —enable-avresample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libcdio —enable-libebur128 —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-librubberband —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx265 —enable-libxvid —enable-libzmq —enable-libzvbi —enable-omx-rpi —enable-mmal —enable-openal —enable-opengl —enable-sdl2 —enable-libdc1394 —enable-libiec61883 —enable-chromaprint —enable-frei0r —enable-libopencv —enable-libx264 —enable-shared   libavutil      55. 34.101 / 55. 34.101   libavcodec     57. 64.101 / 57. 64.101   libavformat    57. 56.101 / 57. 56.101   libavdevice    57.  1.100 /
57.  1.100   libavfilter     6. 65.100 /  6. 65.100   libavresample   3.  1.  0 /  3.  1.  0   libswscale      4.  2.100 /  4.  2.100   libswresample   2.  3.100 /  2.  3.100   libpostproc    54.  1.100 /
54.  1.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, s16le, from '/dev/zero' :   Duration : N/A, bitrate : 1411 kb/s
    Stream #0:0 : Audio : pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Input #1, h264, from 'pipe :' :   Duration : N/A, bitrate : N/A
    Stream #1:0 : Video : h264 (High), yuv420p(progressive), 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc
rtmp ://a.rtmp.youtube.com/live2/my_key : Input/output error


    



    It worked more over a month, but now (I don't know why) stopped working.

    



    Can anyone help me ?

    



    Cheers,
Greg

    


  • how to stream live m3u8 file using ffmpeg to youtube rtmp

    18 juillet 2018, par Dark webmaster

    i want to restream a live m3u8 file to youtube
    .i used following code

    fmpeg -re -i /mypanel.tv:8080/live/****/slyv0955k9/14131.m3u8
    > -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "/live-dfw.twitch.tv/app/{live_231566994_FS4BN0qoJMeXEuWklm6j0l1ODQj9u6}>"

    and i return i get this from my linux server

    [root@server ~]# ffmpeg -re -i http://mypanel.tv:8080/live/****/slyv0955k9/14131.m3u8
    -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 3000k -f flv "/live-dfw.twitch.tv/app/{live_23156556994_FS4BN0qoJMeXEuWklm6j0l1ODQj9u6}>"ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.102 /  5. 11.102
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    [h264 @ 0x1029ba0] non-existing SPS 0 referenced in buffering period
       Last message repeated 1 times
    [h264 @ 0x1073680] non-existing SPS 0 referenced in buffering period
    Input #0, hls,applehttp, from 'http://mypanel.tv:8080/live/***/slyv0955k9/14131.m3u8':
     Duration: N/A, start: 39062.400000, bitrate: N/A
     Program 0
       Metadata:
         variant_bitrate : 0
       Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 133 kb/s
    At least one output file must be specified

    so can anyone help me with this ?please note i’m not an expert in linux so please give me specific commands to restream a live m3u8 file

  • Python PyQt5 and youtube-dl GUI console popping when converting to mp3 with ffmpeg [on hold]

    29 juin 2018, par Giblin

    I will be jumping right to the issue I am having for a while.
    I have built a GUI software with Python 3.6 with PyQt5 and the youtube-dl package for downloading audios.
    The software downloads files in mp4, 3gp, m4a and webm extensions with no problems at all and then, here comes the mp3 to change the balance for ever !
    So what it basically does, is that while it downloads it as mp3, by the time it converts it with ffmpeg (same issue with ffprobe), a console window pops right out of the GUI and does its magic.
    I have made all the necessary customizations in the code, such as to run the ffmpeg with verbose etc but it won’t go away.
    Changing the file extension from .py to .pyw doesn’t help either.
    I think it is more of a windows problem and not really a programming issue, so I thought maybe a bat script could always run it silent in the background when it pops ? And if so, I would appreciate a heads-up because I have no experience in bat scripting.
    Thanks in advance and sorry if I went on for too long.

    EDIT :

    Here’s the console I get during the convert when I download a URL as mp3 (this pops like that until it finishes the conversion to mp3 and then disappears) :

    FFMPEG Console

    And here’s the function with the options responsible for that (for other extensions, the code is similar with just few name changes but ffmpeg isn’t necessary for them in order to convert) :

    def youtubeMP3(self):
       options = {
           'format': 'bestaudio/best',
           'extractaudio': True,
           'audioformat': 'mp3',
           'outtmpl': self.location + '/%(title)s-%(id)s.%(ext)s',
           'quiet': True,
           'no_warnings': True,
           'nocheckcertificate': True,
           'progress_hooks': [self.hookMP3],
           'postprocessors': [{
               'key': 'FFmpegExtractAudio',
               'preferredcodec': 'mp3',
               'preferredquality': '192'
           }]
       }
       value = self.urlText.text()
       if value != "" and validators.url(value):
           with youtube_dl.YoutubeDL(options) as ydl:
               try:
                   ydl.download([value])
                   self.progressLabel.setText("The download was successful.")
                   self.urlText.clear()
                   time.sleep(5)
                   self.progressLabel.setText("")
               except:
                   self.progressLabel.setText("This video URL does not exist.")
                   self.urlText.clear()
                   time.sleep(5)
                   self.progressLabel.setText("")