Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (65)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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 2011

    MediaSPIP 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, par

    MediaSPIP 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 (8795)

  • libavformat/mpegtsenc : allow to set service_type in sdt

    2 février 2015, par dhead666
    libavformat/mpegtsenc : allow to set service_type in sdt
    

    This adds an option to set the service type in mpegts as defined in ETSI 300 468.

    I added what I believe are the most useful service types as pre defined values,
    the others can be sent by using their hexdecimal form directly (e.g. -mpegts_service_type digital_radio, -mpegts_service_type 0x07).

    I’ve been using this patch in order to pipe internet radio stream (originally as HLS/m3u8) from ffmpeg to tvheadend,
    when the service type set right tvheadend recognize the mpegts stream as a radio channel.

    The patch in its original form was written by linuxstb from freenode’s hts channel which allowed me pushing it upstream.

    This close issue 4118.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/muxers.texi
    • [DH] libavformat/mpegtsenc.c
  • Errno 20 Not a directory : 'ffmpeg' WHEN running with systemd

    4 avril 2022, par Ivan Arturo Salazar Ortiz

    Hi guys I have a head ache running this as a service I am really stuck here and have wasted quite the hours here, i am on ubuntu 20 LTS.

    &#xA;

    I have a celery worker which is waiting for an audio to transform using ffmpeg python library.

    &#xA;

    If I run it like this :

    &#xA;

    source venv/bin/activate && Celery -A tasks worker -l info It works without a problem and complete the tasks.

    &#xA;

    but when I run it as a service in systemd I get this error :

    &#xA;

    [Errno 20] Not a directory: &#x27;ffmpeg&#x27;&#xA;                                              Traceback (most recent call last):&#xA;                                                File "/home/ubuntu/p1-react-flask-app/app/tasks.py", line 58, in transform_audio_format&#xA;                                                  output.run()&#xA;                                                File "/home/ubuntu/p1-react-flask-app/app/venv/lib/python3.8/site-packages/ffmpeg/_run.py", line 313, in run&#xA;                                                  process = run_async(&#xA;                                                File "/home/ubuntu/p1-react-flask-app/app/venv/lib/python3.8/site-packages/ffmpeg/_run.py", line 284, in run_async&#xA;                                                  return subprocess.Popen(&#xA;                                                File "/usr/lib/python3.8/subprocess.py", line 858, in __init__&#xA;                                                  self._execute_child(args, executable, preexec_fn, close_fds,&#xA;                                                File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child&#xA;                                                  raise child_exception_type(errno_num, err_msg, err_filename)&#xA;                                              NotADirectoryError: [Errno 20] Not a directory: &#x27;ffmpeg&#x27;&#xA;

    &#xA;

    I really do not know why and have tried different ways. python os can access the audio folder and files without problem but the problem here, I think, is that my systemd service does not find ffmpeg.exe, but how do I specify it to my service ?

    &#xA;

    My celery config file :

    &#xA;

    # The names of the workers. This example create one worker&#xA;CELERYD_NODES="worker1"&#xA;&#xA;# The name of the Celery App, should be the same as the python file&#xA;# where the Celery tasks are defined&#xA;CELERY_APP="tasks"&#xA;&#xA;# Log and PID directories&#xA;CELERYD_LOG_FILE="/var/log/celery/%n%I.log"&#xA;CELERYD_PID_FILE="/var/run/celery/%n.pid"&#xA;&#xA;# Log level&#xA;CELERYD_LOG_LEVEL=INFO&#xA;&#xA;# Path to celery binary, that is in your virtual environment&#xA;CELERY_BIN=/home/ubuntu/venv/bin/celery&#xA;&#xA;# Options for Celery Beat&#xA;CELERYBEAT_PID_FILE="/var/run/celery/beat.pid"&#xA;CELERYBEAT_LOG_FILE="/var/log/celery/beat.log"&#xA;

    &#xA;

    my celeryd.service :

    &#xA;

    [Unit]&#xA;Description=Celery Service&#xA;After=network.target&#xA;&#xA;[Service]&#xA;Type=forking&#xA;User=ubuntu&#xA;Group=ubuntu&#xA;EnvironmentFile=/etc/default/celeryd&#xA;WorkingDirectory=/home/ubuntu/p1/app&#xA;ExecStart=/bin/sh -c &#x27;${CELERY_BIN} multi start ${CELERYD_NODES} \&#xA;-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \&#xA;--logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}&#x27;&#xA;ExecStop=/bin/sh -c &#x27;${CELERY_BIN} multi stopwait ${CELERYD_NODES} \&#xA;--pidfile=${CELERYD_PID_FILE}&#x27;&#xA;ExecReload=/bin/sh -c &#x27;${CELERY_BIN} multi restart ${CELERYD_NODES} \&#xA;-A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \&#xA;--logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}&#x27;&#xA;&#xA;[Install]&#xA;WantedBy=multi-user.target&#xA;

    &#xA;

    My python code :

    &#xA;

    @app.task&#xA;def transform_audio_format(url_original,url_destiny):&#xA;    input = ffmpeg.input(url_original)&#xA;    &#xA;    output = ffmpeg.output(input,url_destiny,shell=True)&#xA;&#xA;    output.run()&#xA;

    &#xA;

    any help would be appreciated.

    &#xA;

  • Using ffmpeg to "re-time" an RTSP stream ?

    29 mars 2021, par Tom S

    I recently set up a birdbox in my garden, and have been using a cheapie camera that I bought, along with ffmpeg on a raspberry pi to stream from the camera to YouTube.

    &#xA;

    But YouTube keeps telling me that I am sending data too fast - multiple seconds of video per second, and at that point the stream seems to stall and I just get a buffering spinner on YouTube and have to restart ffmpeg to restore the stream.

    &#xA;

    This is happening very frequently, infact even more frequently now than when I originally got everything up and running for some reason... So much so that Ive had to setup ffmpeg to run as a service, and restart it once an hour via cron. But even this is not enough and now it seems that it can go bonkers within 10-15 minutes of a restart - almost like the more often I restart the quicker it gets...

    &#xA;

    I dont know where the issue is, or how to find it (does ffmpeg simply restream "verbatim" what ever the camera supplies ?), but I wonder if it might be possible to have ffmpeg re-time the stream so that I only send to YouTube the 25fps that it is happy with (i.e. dropping any frames in excess of this) ?

    &#xA;

    I have key frames set to 1 second on the camera.

    &#xA;

    Thanks !

    &#xA;


    &#xA;

    Here is my service file which contains the command that I use to start ffmpeg :

    &#xA;

    [Unit]&#xA;Description=BirbCam 1 streaming service&#xA;After=network.target&#xA;StartLimitIntervalSec=0&#xA;&#xA;[Service]&#xA;Type=simple&#xA;Restart=always&#xA;RestartSec=1&#xA;User=root&#xA;# Uncomment one ExecStart line below, then run `sudo systemctl daemon-reload` before restart&#xA;# With audio&#xA;ExecStart=/usr/local/bin/ffmpeg -rtsp_transport tcp -i rtsp://172.25.144.35:554/user=admin&amp;password=&amp;channel=1&amp;stream=0.sdp?real_stream -tune zerolatency -vcodec libx264 -pix_fmt &#x2B; -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx&#xA;&#xA;# Without audio&#xA;# ExecStart=/usr/local/bin/ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://172.25.144.35:554/user=admin&amp;password=&amp;channel=1&amp;stream=0.sdp?real_stream -tune zerolatency -vcodec libx264 -pix_fmt &#x2B; -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx&#xA;&#xA;[Install]&#xA;WantedBy=multi-user.target&#xA;

    &#xA;