Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (56)

  • 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 ;

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9797)

  • Convert video with ffmpeg to have the same quality

    14 mai 2019, par zlon

    I want to make some present for my grandma. And prepare some video. Unfortunately here video player is old and could not read some file formats. She is not at home now, so I don’t know which player she has. But I have a file which is OK for here system :

    File which is in a correct format :

    General
    Complete name                            : let.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    File size                                : 688 MiB
    Duration                                 : 1 h 35 min
    Overall bit rate                         : 1 002 kb/s
    Writing application                      : VirtualDubMod 1.4.13
    Writing library                          : VirtualDub build 14328/release
    FileExtension_Invalid                    : avi

    Video
    ID                                       : 0
    Format                                   : MPEG-4 Visual
    Format profile                           : Simple@L3
    Format settings, BVOP                    : No
    Format settings, QPel                    : No
    Format settings, GMC                     : No warppoints
    Format settings, Matrix                  : Default (H.263)
    Codec ID                                 : XVID
    Codec ID/Hint                            : XviD
    Duration                                 : 1 h 35 min
    Bit rate                                 : 800 kb/s
    Width                                    : 544 pixels
    Height                                   : 416 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.141
    Stream size                              : 549 MiB (80%)
    Writing library                          : XviD 0.0.09 (UTC 2003-03-25)

    I have the following file, which here system could not read :

    File in the incorrect format :

    General
    Complete name                            : amf.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    Overall bit rate                         : 2 167 kb/s

    Video
    ID                                       : 0
    Format                                   : MPEG-4 Visual
    Format profile                           : Advanced Simple@L5
    Format settings                          : BVOP1
    Format settings, BVOP                    : 1
    Format settings, QPel                    : No
    Format settings, GMC                     : No warppoints
    Format settings, Matrix                  : Default (MPEG)
    Codec ID                                 : DX50
    Codec ID/Hint                            : DivX 5
    Bit rate                                 : 1 710 kb/s
    Width                                    : 720 pixels
    Height                                   : 528 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 23.976 (24000/1001) FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.188
    Stream size                              : 1.15 GiB (79%)
    Writing library                          : XviD 64

    Could you help me to convert the second file to a format of the first ? (It would be nice if the output would be of the similar quality)

    I have Ubuntu, and I think ffmpeg should be able to do it.

    CROSS POSTED FROM : SE Video production.

  • Why VLC not display RTP stream

    5 janvier 2018, par Alexandr Lukovnikov

    I am new in RTP. I whant to start RTSP server on embeded device. Now I can whatching video file, that stored in flash memory. But when I start translate video, that encoded whith x264, VLC not display anything.
    Just buffering, nothing else

    core debug: `rtsp://172.16.50.194:1935/live1.sdp' successfully opened
    core debug: Buffering 0%
    packetizer_h264 debug: found NAL_SPS (sps_id=0)
    core debug: Stream buffering done (11 ms in 133 ms)
    core debug: Decoder wait done in 0 ms
    packetizer_h264 debug: found NAL_PPS (pps_id=0 sps_id=0)
    core error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 30 ms)
    core error: ES_OUT_RESET_PCR called
    core debug: Buffering 0%
    core debug: Buffering 0%
    core debug: Buffering 0%
    core debug: Stream buffering done (111 ms in 706 ms)
    core debug: Decoder wait done in 0 ms
    core error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 594 ms)
    core error: ES_OUT_RESET_PCR called
    core debug: Buffering 0%
    ...
    core debug: Buffering 0%
    live555 warning: no data received in 10s, eof ?
    core debug: EOF reached

    That is Wireshark dump

    SPS slice

    1111 0100 = Profile_idc: Unknown (244)
    0... .... = Constraint_set0_flag: 0
    .0.. .... = Constraint_set1_flag: 0
    ..0. .... = Constraint_set2_flag: 0
    ...0 .... = Constraint_set3_flag: 0
    .... 0... = Constraint_set4_flag: 0
    .... .0.. = Constraint_set5_flag: 0
    .... ..00 = Reserved_zero_2bits: 0
    0000 1101 = Level_id: 13 [Level 1.3 768 kb/s]
    1... .... = seq_parameter_set_id: 0
    .001 00.. = log2_max_frame_num_minus4: 3
    .... ..01  1... .... = pic_order_cnt_type: 2
    .001 01.. = num_ref_frames: 4
    .... ..1. = gaps_in_frame_num_value_allowed_flag: 1
    .... ...0  10.. .... = pic_width_in_mbs_minus1: 1
    ..00 0001  0100 0... = pic_height_in_map_units_minus1: 39
    .... .0.. = frame_mbs_only_flag: 0
    .... ..0. = mb_adaptive_frame_field_flag: 0
    .... ...1 = direct_8x8_inference_flag: 1
    1... .... = frame_cropping_flag: 1
    .1.. .... = frame_crop_left_offset: 0
    ..1. .... = frame_crop_left_offset: 0
    ...1 .... = frame_crop_top_offset: 0
    .... 1... = frame_crop_bottom_offset: 0
    .... .0.. = vui_parameters_present_flag: 0
    .... ..1. = rbsp_stop_bit: 1
    .... ...0 = rbsp_trailing_bits: 0

    PPS slice

    1... .... = pic_parameter_set_id: 0
       .1.. .... = seq_parameter_set_id: 0
       ..0. .... = entropy_coding_mode_flag: 0
       ...0 .... = pic_order_present_flag: 0
       .... 1... = num_slice_groups_minus1: 0
       .... .1.. = num_ref_idx_l0_active_minus1: 0
       .... ..1. = num_ref_idx_l1_active_minus1: 0
       .... ...0 = weighted_pred_flag: 0
       00.. .... = weighted_bipred_idc: 0
       ..00 0010  110. .... = pic_init_qp_minus26(se(v)): 11
       ...1 .... = pic_init_qs_minus26: 0
       .... 1... = chroma_qp_index_offset: 0
       .... .1.. = deblocking_filter_control_present_flag: 1
       .... ..0. = constrained_intra_pred_flag: 0
       .... ...0 = redundant_pic_cnt_present_flag: 0
       1... .... = rbsp_stop_bit: 1
       .000 0000 = rbsp_trailing_bits: 0

    And SEI

    x264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=10 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00

    What could be my mistake ?

  • FFMPEG : Youtube streaming issues

    23 février 2019, par Alex Paramonov

    I am trying to make a reliable stream from my Icecast/Shoutcast servers to Youtube live.
    The command that I use is :

    /usr/bin/ffmpeg -re -loop 1 -framerate 1 -i /var/users/youtube_stream/DJ-philadelphia_jO46wsH.jpg -i http://127.0.0.1:4700/radio -c:v libx264 -preset ultrafast -maxrate 2048k -bufsize 2048k -c:a copy -ab 128k -s 1920x1080 -rtmp_live live -f flv rtmp://a.rtmp.youtube.com/live2/k123 -nostats

    The stream starts running but suddenly stops at random times with the output similar to this :

    av_interleaved_write_frame(): Broken pipe
    [flv @ 0x5641e04db260] Failed to update header with correct duration.
    [flv @ 0x5641e04db260] Failed to update header with correct filesize.
    Error writing trailer of rtmp://a.rtmp.youtube.com/live2/123: Broken pipe
    frame= 4771 fps=1.0 q=2.0 Lsize=  106465kB time=01:19:30.00 bitrate= 182.8kbits/s speed=   1x
    video:29022kB audio:74516kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.825971%
    Conversion failed!
    99%
    Exiting normally, received signal 15.

    I can’t say exactly why is this happening and maybe there is a way to fix it, but to mee it looks like ffmpeg can not send or convert some frame and it breaks the entire process, so I started digging the docs and found a fifo format that has reconnection options in case of failure.
    So my new command is :

    /usr/bin/ffmpeg -re -loop 1 -framerate 1 -i /var/users/youtube_stream/DJ-philadelphia_jO46wsH.jpg -i http://127.0.0.1:4700/radio -c:v libx264 -preset ultrafast -maxrate 2048k -bufsize 2048k -c:a copy -ab 128k -s 1920x1080 -rtmp_live live -f fifo -fifo_format flv -map 0:v -map 1:a -drop_pkts_on_overflow 1 -attempt_recovery 1 -recovery_wait_time 1 rtmp://a.rtmp.youtube.com/live2/123 -nostats

    With this command Youtube starts complaining about video resolution saying that 65535x65535 is not supported, value 65535 looks like something is not initialized properly. Please note that I have explicitly set the resolution with -s 1920x1080.

    The output from FLV and FIFO formats looks quite similar.

    FLV

    Input #0, image2, from '/var/users/youtube_stream/DJ-philadelphia_jO46wsH.jpg':
     Duration: 00:00:01.00, start: 0.000000, bitrate: 597 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 1 fps, 1 tbr, 1 tbn, 1 tbc
    Input #1, mp3, from 'http://127.0.0.1:4700/radio':
     Metadata:
       icy-br          : 128
       icy-description : test
       icy-genre       : test
       icy-name        : Test
       icy-pub         : 1
       StreamTitle     : silence
     Duration: N/A, start: 0.000000, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [libx264 @ 0x563bdde386a0] using SAR=1/1
    [libx264 @ 0x563bdde386a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x563bdde386a0] profile Constrained Baseline, level 4.0
    [libx264 @ 0x563bdde386a0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=1 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2048 vbv_bufsize=2048 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
    Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/k478-1xpz-v2de-5e79':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1 fps, 1k tbn, 1 tbc
       Metadata:
         encoder         : Lavc57.107.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 2048000/0/0 buffer size: 2048000 vbv_delay: -1
       Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p, 128 kb/s

    FIFO

    Input #0, image2, from '/var/users/youtube_stream/DJ-philadelphia_jO46wsH.jpg':
     Duration: 00:00:01.00, start: 0.000000, bitrate: 597 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 1 fps, 1 tbr, 1 tbn, 1 tbc
    Input #1, mp3, from 'http://127.0.0.1:4700/radio':
     Metadata:
       icy-br          : 128
       icy-description : test
       icy-genre       : test
       icy-name        : Test
       icy-pub         : 1
       StreamTitle     : silence
     Duration: N/A, start: 0.000000, bitrate: 128 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [libx264 @ 0x560fb2209ae0] using SAR=1/1
    [libx264 @ 0x560fb2209ae0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x560fb2209ae0] profile Constrained Baseline, level 4.0
    Output #0, fifo, to 'rtmp://a.rtmp.youtube.com/live2/k478-1xpz-v2de-5e79':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: h264 (libx264), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1 fps, 1 tbn, 1 tbc
       Metadata:
         encoder         : Lavc57.107.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 2048000/0/0 buffer size: 2048000 vbv_delay: -1
       Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s

    you can see the input streams, output, mapping - all fine except one line that is missing with fifo format :

    [libx264 @ 0x563bdde386a0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html ...

    Seems like video codec is not completely initialized and does not start with when using fifo format.

    So my questions are :

    1. is there a way to create a reliable stream with ffmpeg w/o using
      fifo format ?
    2. if fifo format is mandatory in this case, what’s wrong with my
      video codec ?