Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (30)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (5102)

  • How to force FFMPEG to ignore KeyboardInterrupts ?

    3 mars 2023, par Straxan

    In my Python script I intercept KeyboardInterrupts to ensure that the script can finish what its doing before shutting down. However I've found that FFMPEG, which I'm using by triggering commandline commands, immediately ends its current prosessing, before then leading into my script's shutdown processes.

    


    The code below shows my KeyboardInterrupt handling system.

    


    prepareToStop = 0
while prepareToStop == 0:
    t = threading.Thread(target=main_loop, args=[instanceID])
    try:
        t.start()
        t.join() # wait for the threading task to end
    except KeyboardInterrupt:
        prepareToStop = 1


    


    And the code below creates and runs the FFMPEG commands :

    


    command = "\"" + ffmpeg + "\" -y -i " + "uploaded/" + videofile_name + " -c:v " + codec + " " + commandDimensions + " " + commandCompression + " -c:a copy" + commandAspect + " "+str(outputFilePath) #bash command to proccess file
print("Running command: " + command) 
res = os.system(command) #run command 


    


    What I'm looking for is a way to ensure that FFMPEG ignores KeyboardInterrupts, so that the system can handle shutdown process after it has completed.

    


    Edit :

    


    I've identified that this is an issue with FFMPEG. I need it to ignore external commands while processing. I've seen examples suggesting that using '-nostdin' can do this, however it appeared to have no effect when I added it to the command. I intended on posting about this as a seperate question, but my account is apparently restricted.

    


  • How to convert coordinates of react-native-draggable into pixels for getting text embed on exact place in video using ffmpeg

    2 mai 2023, par RoshaanAli

    I am using this package

    


    


    react-native-draggable

    


    


    here its link [https://www.npmjs.com/package/react-native-draggable?activeTab=readme][1]

    


    I want to add caption on video. For merging i am using ffmpeg.
Here is its command

    


    ffmpeg -i path/of/video -vf "drawtext=fontfile=font/file/path: text=TestingText: fontsize=70: fontcolor=white: x=360: y=600" -codec:a copy output/path/of/video


    


    As I mentioned that I am using react-native-draggable for dragging text on video. Its giving me coordinates where I place text but its working according to the screen size. When I give these coordinates in ffmpeg command in place of "x" and "y", the placed is appeared after embedding in some other place because the value of "x" and "y" in ffmpeg command consider number value in pixels.
Now how can I convert these coordinates into pixels for getting text embed on exact place where I place it on video using react-native-draggable ??

    


  • How to ignore invalid dropping st:0 that broke the stream

    11 novembre 2023, par sazer kpla

    I am using ffmpeg to capture live stream in flv format 'there is m3u8 format' and restreamed to Youtube, my problem is when i run the code above the ffmpeg keep stuck on 'invalid dropping st:0' and that broke the stream.

    


    Is there a way to ignore those dropped frames , or at least stop ffmpeg and I will loop it to keep the stream running, by reading the output log so when there is dropped frame I will close ffmpeg and run it again.

    


    The second question is it possible to capture the live flv stream and save it in flv file and made some deley after that i will restream it again to youtube
live stream in FLV fromat ----> save it in file -----> wait 1 min ------> stream the saved file to youtube this is the code i use :

    


    #!/bin/bash
u="https://pull-flv-l11-va01.xxxxxxxx.com/stage/stream-2995889464288477225_ld.flv"

key_stream="rtmp://a.rtmp.youtube.com/live2/zzzzz-zzzzz-zzzzz-zzzzz"
trap printout SIGINT
printout() {
    echo ""
    echo "Finished with count=$count"
    exit
}
while :
do
    ((count++))

ffmpeg  -i $u \
-c:v libx264 -b:a 384k -ac 2 -preset slow -crf 28 \
-profile:v high -bf 2 -pix_fmt yuv420p \
-threads 4 -xerror \
-maxrate 5M -bufsize 10M -r 30 -g 15 -coder 1 -f flv $key_stream

    sleep 1
done


    


      

    1. Read the log of ffmpeg and close it it immediatly when dropped frames appeared and run it again
    2. 


    3. Using a file to store the coming stream and restreamed, but I wish to keep that file in small size because the stream is too long
    4. 


    5. The best solution is to just ignore those frames or replace them with black pic to keep the live stream running
    6.