Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (38)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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 (4621)

  • Trying to encode video file as hevc error in python

    29 juin 2022, par jatt

    I am getting a syntax error when trying to run this code with it saying the end quotes being the error. process = sp.Popen(shlex.split(f'usr/bin/ffmpeg -y -s {width}x{height} -pixel_format bgr24 -f rawvideo -r {fps} -i pipe: -vcodec libx265 -pix_fmt yuv420p -crf 24 {output_filename}') stdin=sp.PIPE)

    


    I don't know why because the end quote is supposed to be there and I am not sure how to fix it.
The original code is from here : How to output x265 compressed video with cv2.VideoWriter

    


    import cv2
import numpy as np
import subprocess as sp
import shlex

width, height, n_frames, fps = 1344, 756, 50, 25  # 50 frames, resolution 1344x756, and 25 fps

output_filename = 'output.mp4'

# Open ffmpeg application as sub-process
# FFmpeg input PIPE: RAW images in BGR color format
# FFmpeg output MP4 file encoded with HEVC codec.
# Arguments list:
# -y                   Overwrite output file without asking
# -s {width}x{height}  Input resolution width x height (1344x756)
# -pixel_format bgr24  Input frame color format is BGR with 8 bits per color component
# -f rawvideo          Input format: raw video
# -r {fps}             Frame rate: fps (25fps)
# -i pipe:             ffmpeg input is a PIPE
# -vcodec libx265      Video codec: H.265 (HEVC)
# -pix_fmt yuv420p     Output video color space YUV420 (saving space compared to YUV444)
# -crf 24              Constant quality encoding (lower value for higher quality and larger output file).
# {output_filename}    Output file name: output_filename (output.mp4)
process = sp.Popen(shlex.split(f'usr/bin/ffmpeg -y -s {width}x{height} -pixel_format bgr24 -f rawvideo -r {fps} -i pipe: -vcodec libx265 -pix_fmt yuv420p -crf 24 {output_filename}') stdin=sp.PIPE)

# Build synthetic video frames and write them to ffmpeg input stream.
for i in range(n_frames):
    # Build synthetic image for testing ("render" a video frame).
    img = np.full((height, width, 3), 60, np.uint8)
    cv2.putText(img, str(i+1), (width//2-100*len(str(i+1)), height//2+100), cv2.FONT_HERSHEY_DUPLEX, 10, (255, 30, 30), 20)  # Blue number

    # Write raw video frame to input stream of ffmpeg sub-process.
    process.stdin.write(img.tobytes())

# Close and flush stdin
process.stdin.close()

# Wait for sub-process to finish
process.wait()

# Terminate the sub-process
process.terminate()


    


  • FFMPEG SreenRecorder with Audio does not add DrawText

    19 octobre 2020, par John Henderson

    I am using FFMPEG to record the whole screen using gdigrab as well as recording the microphone audio and virtual-audio-capturer. It has taken a good while, but I got it to work and save as an mkv file. I am using Vb.net to pass the string to FFMPEG. Here is the string.

    


    "/k ffmpeg.exe -y -rtbufsize 1500M -f dshow -i audio=@device_cm_33D9A762-90C8-11D0-BD43-00A0C911CE86\wave_16F2BCE9-4F86-4C29-8B2C-B70508551DC7 -f dshow -i audio=@device_sw_33D9A762-90C8-11D0-BD43-00A0C911CE868E146464-DB61-4309-AFA1-3578E927E935 -f gdigrab -framerate 50 -i desktop -codec:v h264_nvenc -qp 0 -vf drawtext=fontfile=C :\Windows\ARLRDBD.TTF:Text=" & MyProgName & "fontcolor=white:fontsize=24:box=1:shadowcolor=darkblue:shadowx=1:shadowy=1:boxcolor=blue@0.6:boxborderw=5:x=50:y=H-th-50 :-filter_complex [0:a][1:a]amerge=inputs=2[a] -map 2 -map [a] " & str & "\Recordings\ScreenRecorder" & FileTime & ".mkv"

    


    The problem is that it will not draw the text on the screen and I get the following error.

    


        Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, dshow, from 'audio=@device_cm_{33D9A762-90C8-11D0-BD43- 
    00A0C911CE86}\wave_{16F2BCE9-4F86-4C29-8B2C-B70508551DC7}':
    Duration: N/A, start: 840168.175000, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, dshow, from 'audio=@device_sw_{33D9A762-90C8-11D0-BD43- 
    00A0C911CE86}\{8E146464-DB61-4309-AFA1-3578E927E935}':
    Duration: N/A, start: 840168.949000, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    [gdigrab @ 000001b92bad9880] Capturing whole desktop as 
    1366x768x32 at (0,0)
    [gdigrab @ 000001b92bad9880] Stream #0: not enough frames to 
    estimate rate; consider increasing probesize
    Input #2, gdigrab, from 'desktop':
    Duration: N/A, start: 1602928621.299032, bitrate: 1678562 kb/s
    Stream #2:0: Video: bmp, bgra, 1366x768, 1678562 kb/s, 50 fps, 
    1000k tbr, 1000k tbn, 1000k tbc
    [NULL @ 000001b92badb300] Unable to find a suitable output format 
    for '[0:a][1:a]amerge=inputs=2[a]'
    [0:a][1:a]amerge=inputs=2[a]: Invalid argument
    Received stop event after 9 passes


    


    If anyone can see where I am going wrong and point me in the right direction it would be really appreciated.

    


  • FFMPEG replace audio with new mp3 audio gives error Unrecognized option 'codec'

    15 février 2016, par Waqleh

    I am trying to replace an audio in a video with another audio like so :

    ffmpeg -i \/home\/test\/public_html\/ted\/videos\/c812e2423b6b5da2f4e00c62bf70d2f3.mp4 -i \/home\/test\/public_html\/ted\/app\/templates\/default\/sounds\/taj-express-30sec.mp3 -codec copy -shortest \/home\/test\/public_html\/ted\/videos\/55e5a21e111af1cc0bdb3637b601f64d_with_audio.mp4
    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
     built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libavfilter    1.19. 0 /  1.19. 0
     libswscale     0.11. 0 /  0.11. 0
     libpostproc   51. 2. 0 / 51. 2. 0

    Seems stream 0 codec frame rate differs from container frame rate: 20.00 (20/1) -> 10.00 (20/2)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/test/public_html/ted/videos/c812e2423b6b5da2f4e00c62bf70d2f3.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp41isom
     Duration: 00:00:23.44, start: 0.000000, bitrate: 273 kb/s
       Stream #0.0(und): Video: h264, yuv420p, 1364x698 [PAR 1:1 DAR 682:349], 268 kb/s, 9.98 fps, 10 tbr, 10k tbn, 20 tbc
       Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 1 kb/s
    [mp3 @ 0x1c648a0]max_analyze_duration reached
    Input #1, mp3, from '/home/test/public_html/ted/app/templates/default/sounds/taj-express-30sec.mp3':
     Metadata:
       comment         : Description
       TENC            : BLUE PRODUCTION
       originator_reference: CCOOONNNNNNNNNNNNHHMMSSRRRRRRRRR
       TDRC            : 2012:05:03
       coding_history  : A=PCM,F=44100,W=16,M=stereo,T=Nuendo

       time_reference  : 1601731
       umid            : 0x24FF296F2093409DA42CA66529FF7FA800000000000000000000000000000000
       TSSE            : Lavf57.23.101
     Duration: 00:00:30.04, start: 0.000000, bitrate: 128 kb/s
       Stream #1.0: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
    Unrecognized option 'codec'

    but I keep getting Unrecognized option ’codec’

    It work local fine on ubuntu, but on the server centos 6 with WHM cPanel it is not ! why ?