Recherche avancée

Médias (91)

Autres articles (112)

Sur d’autres sites (10333)

  • doc/libav-merge : remove line about aac_adtstoasc

    24 mai 2017, par James Almer
    doc/libav-merge : remove line about aac_adtstoasc
    

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] doc/libav-merge.txt
  • ffmpeg is adding an extra new line into a box

    4 août 2017, par newbie123

    I’m overlaying weather data over my webcam stream. I put a background box filter, but the padding between the text and the box is uneven. There is "a new line" of extended box bellow the text.

    This is how it looks like

    Why is that ? There are no empty lines in a text file I’m providing to ffmpeg. Here is my code for the ffmpeg :

    ffmpeg \
    -f lavfi -i anullsrc \
    -rtsp_transport tcp \
    -i "$SOURCE" \
    -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -g 20 -b:v 1000k \
    -vf "drawtext="fontfile=${FONT}":textfile=${textfile}:x=5:y=55:reload=1: \
    fontcolor=white:fontsize=${FONTSIZE}:box=1:boxborderw=5:boxcolor=black@0.5" \
    -threads $THREADS -bufsize 512k \
    -f flv "$YOUTUBE_URL/$KEY"

    EDIT :

    I found out what the problem was. I was using printf "%s\n" "$variable1" "$variable2" to create a text file. Printf %s\n automatically prints each variable into a new line. The solution was to print the last variable without the new line. Code example :

    #!/bin/sh
    LC_CTYPE=en_US.utf8

    # Get APRS weather data from aprs.fi

    wxstation="S55MA-10"
    name="Juršče, Pivka"


    # Basic weather data
    temp="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Temperature | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o)"
    humidity="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Humidity | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o)"
    wind="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Wind | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 2p)"
    rain="$(wget -q https://aprs.fi/weather/a/${wxstation} -O - | grep Rain | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 1p)"

    # Telemetry
    radioactivity="$(wget -q https://aprs.fi/telemetry/a/${wxstation} -O - | grep Radioactivity | egrep '[-+]?([0-9]*\.[0-9]+|[0-9]+)' -o | sed -n -e 5p)"

    printf "%s\n" "$name" "Temperature: ${temp}\°C" "Humidity: ${humidity}\%" "Wind: ${wind} m/s" "Rain: ${rain} mm/h"
    printf "Radioactivity: ${radioactivity} uSv/h"
  • Is there a way to create linear Live Stream with php ? [closed]

    30 avril 2022, par Redone

    I need to create a linear live stream system with php i don't know from where i have to start,&#xA;i want to create channels and every channel have .m3u8 link created based on the channel name&#xA;and inside each channel there will be a multiple .m3u8 links from vimeo

    &#xA;

    So i want to know how i can create this kind of .m3u8 format ?&#xA;And how can i make the created file schedulable and make programms like tv channels ?&#xA;And if there is any open-source project like this concept&#xA;Thank you

    &#xA;