Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (98)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7775)

  • Python ffmpeg https

    30 novembre 2022, par mor15Euro

    I want to download a streaming video from a website using python and ffmpeg. I can download this video using the ffmpeg command in my shell but as soon as I try to use python ffmpeg i get this error :

    


    https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.


    


    Using this code :

    


    ffmpeg.input(url).output("demo.mp4", vcodec="copy", acodec="copy").overwrite_output().run()


    


    How can I enable https support for python ffmpeg

    


    If you need more information, let me know

    


    Thank you in advance

    


  • Why Yuv data readed from ffmpeg is different from original input yuv ?

    13 mai 2021, par sianyi Huang

    I use ffmpeg to make HDR test video, my approach is write a image, converting the image to yuv420p and then use ffmpeg to make the HDR test video.

    



    But I found the yuv data readed from mp4 is different from the original input..
I was stucked in here for a while, does anyone know how to read the correct yuv data from mp4 ?

    



    #ffmpeg encode command
ffmpeg_encode_mp4 = \
"ffmpeg -y -s 100*100 -pix_fmt yuv420p -threads 4 -r 1 -stream_loop -1 -f rawvideo -i write_yuv.yuv -vf \
scale=out_h_chr_pos=0:out_v_chr_pos=0,format=yuv420p10le \
-c:v libx265 -tag:v hvc1 -t 10 -pix_fmt yuv420p10le -preset medium -x265-params \
crf=12:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=\"G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)\":max-cll=\"1000,400\" \
-an test.mp4"

#ffmpeg read yuv from mp4 command
ffmpeg_extract_yuv = "ffmpeg -i test.mp4 -vframes 1 -c:v rawvideo -pix_fmt yuv420p read_yuv.yuv"


#make 100*100 yuv raw
w, h = 100, 100
test_gray = 255
test = np.full((100, 100, 3), test_gray, dtype=np.uint8)
yuv_cv = cv.cvtColor(test, cv.COLOR_RGB2YUV_I420)
yuv_cv.tofile("write_yuv.yuv")

#encode yuv raw to mp4 with HDR metadata
print(ffmpeg_encode_mp4)
result = subprocess.check_output(ffmpeg_encode_mp4, shell = True)
print(result)
sleep(0.5)

#extract yuv from mp4
kill_existing_file("read_yuv.yuv")
print(ffmpeg_extract_yuv)
result = subprocess.check_output(ffmpeg_extract_yuv, shell = True)
print(result)
sleep(0.5)

write_yuv = np.fromfile("write_yuv.yuv",dtype='uint8')
read_yuv = np.fromfile("read_yuv.yuv",dtype='uint8')

print("input gray:", test_gray)
print("write_yuv", write_yuv[:10])
print("read_yuv", read_yuv[:10])

reader = imageio.get_reader("test.mp4")
img = reader.get_data(0)
print("imgeio read:", img[50, 50])

'''
ouput result:
input gray: 255
write_yuv [235 235 235 235 235 235 235 235 235 235]
read_yuv [234 235 234 235 234 235 234 235 234 235]
imgeio read: [253 253 253]
'''


    



    I have no idea how to validate the video I made is corret
Any feedback will be very appreciated !

    


  • ffmpeg is reading SDP from RTSP stream but unable to save a screenshot. is it network or utility issue ?

    8 juillet 2017, par Paul Serikov

    My task is to get a screenshot from IP camera rtsp stream via ffmpeg.
    I got following error when I’m trying to do that on DigitalOcean droplet :

    root@docker-512mb-fra1-01:~# ffmpeg -hide_banner -loglevel debug -i rtsp://10.132.193.9//ch0.h264 -f image2 latest.jpg
    Splitting the commandline.
    Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input url with argument 'rtsp://10.132.193.9//ch0.h264'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
    Reading option 'latest.jpg' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option hide_banner (do not show program banner) with argument 1.
    Applying option loglevel (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input url rtsp://10.132.193.9//ch0.h264.
    Successfully parsed a group of options.
    Opening an input file: rtsp://10.132.193.9//ch0.h264.
    [rtsp @ 0x1298440] SDP:
    v=0
    o=- 1499314217993040 1 IN IP4 192.168.1.128
    s=H.264 Program Stream, streamed by the LIVE555 Media Server
    i=ch0.h264
    t=0 0
    a=DevVer:pusher2
    a=GroupName:IPCAM
    a=NickName:CIF
    a=CfgSection:PROG_CHN0
    a=tool:LIVE555 Streaming Media v2011.08.13
    a=type:broadcast
    a=control:*
    a=range:npt=0-
    a=x-qt-text-nam:H.264 Program Stream, streamed by the LIVE555 Media Server
    a=x-qt-text-inf:ch0.h264
    m=video 0 RTP/AVP 96
    c=IN IP4 0.0.0.0
    b=AS:4000
    a=rtpmap:96 H264/90000
    a=control:trackID=1
    a=fmtp:96 packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z2QAH6wrUCgC3IA=,aO48MA==
    a=framesize:96 1280-720
    a=cliprect:0,0,1280,720
    m=audio 0 RTP/AVP 97
    a=rtpmap:97 mpeg4-generic/8000/2
    a=fmtp:97 streamtype=5;profile-level-id=1;cpresent=0;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1590
    a=control:trackID=2

    Failed to parse interval end specification ''
    [rtsp @ 0x1298440] video codec set to: h264
    [rtsp @ 0x1298440] RTP Packetization Mode: 1
    [rtsp @ 0x1298440] RTP Profile IDC: 64 Profile IOP: 0 Level: 1f
    [rtsp @ 0x1298440] Extradata set to 0x1298a20 (size: 23)
    [rtsp @ 0x1298440] audio codec set to: aac
    [rtsp @ 0x1298440] audio samplerate set to: 8000
    [rtsp @ 0x1298440] audio channels set to: 2
    [udp @ 0x129e7e0] end receive buffer size reported is 131072
    [udp @ 0x129e680] end receive buffer size reported is 131072
    [udp @ 0x12bf380] end receive buffer size reported is 131072
    [udp @ 0x12bf1c0] end receive buffer size reported is 131072
    [rtsp @ 0x1298440] hello state=0
    [rtsp @ 0x1298440] UDP timeout, retrying with TCP
    [rtsp @ 0x1298440] hello state=0
    [rtsp @ 0x1298440] Could not find codec parameters for stream 0 (Video: h264, 1 reference frame, none(left), 1280x720, 1/180000): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, rtsp, from 'rtsp://10.132.193.9//ch0.h264':
     Metadata:
       title           : H.264 Program Stream, streamed by the LIVE555 Media Server
       comment         : ch0.h264
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0, 0, 1/90000: Video: h264, 1 reference frame, none(left), 1280x720, 1/180000, 90k tbr, 90k tbn, 180k tbc
       Stream #0:1, 0, 1/8000: Audio: aac, 8000 Hz, stereo, fltp
    Successfully opened the file.
    Parsing a group of options: output url latest.jpg.
    Applying option f (force format) with argument image2.
    Successfully parsed a group of options.
    Opening an output file: latest.jpg.
    Successfully opened the file.
    detected 1 logical cores
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'video_size' to value '1280x720'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'pix_fmt' to value '-1'
    [buffer @ 0x12f9680] Unable to parse option value "-1" as pixel format
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'time_base' to value '1/90000'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'pixel_aspect' to value '0/1'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'sws_param' to value 'flags=2'
    [graph 0 input from stream 0:0 @ 0x1298280] Setting 'frame_rate' to value '180000/2'
    [buffer @ 0x12f9680] Unable to parse option value "-1" as pixel format
    [buffer @ 0x12f9680] Error setting option pix_fmt to value -1.
    [graph 0 input from stream 0:0 @ 0x1298280] Error applying options to the filter.
    Error opening filters!
    Exiting normally, received signal 2.

    As you see, ffmpeg is able to read SDP metadata, but for some reason is unable to save a screenshot

    Also same command works fine on my laptop with same VPN configuration !

    Just in case, IP camera doesn’t have a public IP address and accessible via VPN.

    What could be wrong and how to debug ?

    I tried to increase -analyzeduration and -probesize options from default 5s to 30s, but it doesn’t work.