Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (36)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (4036)

  • Need help understanding this script which uses ffmpeg to send rtmp input to node.js script

    4 juin 2022, par Arpit Shukla

    I was trying to understand this shell script which uses ffmpeg to take an rtmp input stream and send it to a node.js script. But I am having trouble understanding the syntax. Can someone please explain what is going on here ?

    


    The script :

    


    while :
do
  echo "Loop start"

  feed_time=$(ffprobe -v error -show_entries format=start_time -of default=noprint_wrappers=1:nokey=1 $RTMP_INPUT)
  printf "feed_time value: ${feed_time}"

  if [ ! -z "${feed_time}" ]
  then
  ffmpeg -i $RTMP_INPUT -tune zerolatency -muxdelay 0 -af "afftdn=nf=-20, highpass=f=200, lowpass=f=3000" -vn -sn -dn -f wav -ar 16000 -ac 1 - 2>/dev/null | node src/transcribe.js $feed_time

  else
  echo "FFprobe returned null as a feed time."
  
  fi

  echo "Loop finish"
  sleep 3
done


    


      

    • What is feed_time here ? What does it represent ?
    • 


    • What is this portion doing - 2>/dev/null | node src/transcribe.js $feed_time ?
    • 


    • What is the use of sleep 3 ? Does this mean that we are sending audio stream to node.js in chuncks of 3 seconds ?
    • 


    


  • Understanding a script which uses ffmpeg to send rtmp input to node.js script

    4 juin 2022, par Arpit Shukla

    I was trying to understand this shell script which uses ffmpeg to take an rtmp input stream and send it to a node.js script. But I am having trouble understanding the syntax. What is going on here ?

    


    The script :

    


    while :
do
  echo "Loop start"

  feed_time=$(ffprobe -v error -show_entries format=start_time -of default=noprint_wrappers=1:nokey=1 $RTMP_INPUT)
  printf "feed_time value: ${feed_time}"

  if [ ! -z "${feed_time}" ]
  then
  ffmpeg -i $RTMP_INPUT -tune zerolatency -muxdelay 0 -af "afftdn=nf=-20, highpass=f=200, lowpass=f=3000" -vn -sn -dn -f wav -ar 16000 -ac 1 - 2>/dev/null | node src/transcribe.js $feed_time

  else
  echo "FFprobe returned null as a feed time."
  
  fi

  echo "Loop finish"
  sleep 3
done


    


      

    • What is feed_time here ? What does it represent ?
    • 


    • What is this portion doing - 2>/dev/null | node src/transcribe.js $feed_time ?
    • 


    • What is the use of sleep 3 ? Does this mean that we are sending audio stream to node.js in chuncks of 3 seconds ?
    • 


    


  • AWS Rekognition error : Chunk video failed

    14 juin 2022, par Stefano Leone

    I'm using and launching Amazon Rekognition on my videos uploaded into my S3 with python. Every video is converted with FFMPEG with AAC Audio Codec and H264 Video Codec and then given to Rekognition. Videos are always fine, the problem is that only 60-70% of videos are processed successfully, while the rest of videos goes into error. In particular, inside the JSON returned from Rekognition :

    


    {&#x27;JobId&#x27;: &#x27;<id of="of" my="my" job="job">&#x27;, &#x27;Status&#x27;: &#x27;FAILED&#x27;, &#x27;API&#x27;: &#x27;StartFaceDetection&#x27;, &#x27;Message&#x27;: &#x27;Chunk video failed: Only 1 I-frames found in video&#x27;, &#x27;Timestamp&#x27;: 1655118632996, &#x27;Video&#x27;: {&#x27;S3ObjectName&#x27;: &#x27;<my video="video" inside="inside" s3="s3">&#x27;, &#x27;S3Bucket&#x27;: &#x27;<my s3="s3">&#x27;}, &#x27;ErrorCode&#x27;: &#x27;VideoNotDecodable&#x27;}&#xA;</my></my></id>

    &#xA;

    As you can see, I get an error "Chunk video failed: only 1 I-Frames found in video". Honestly I don't know what is that, but the fact that I convert every video in the same way, but Rekognition fails only with some, makes me crazy. Googling was not helpful, hope you can tell me what's wrong.

    &#xA;