Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (69)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (6689)

  • Merge two MP3 files and maintain high bitrate and original properties of MP3s

    19 juillet 2019, par sigur7

    I have two MP3 files that were created from the same source, with different audio within them. Here are the properties from ffprobe

    Duration: 00:00:08.86, bitrate: 384 kb/s
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, 1 channels, s16, 384 kb/s

    NOTE : Even though the file is an MP3 it shows as pcm_s16le

    When I try and join the two files together using
    ffmpeg -i download.mp3 -i download1.mp3 -filter_complex [0:a:0][1:a:0]concat=n=2:v=0:a=1[outa] -map [outa] joineddownloads.mp3

    I get the following result and a big drop in bitrate(quality)

    Duration: 00:00:10.42, start: 0.046042, bitrate: 32 kb/s
       Stream #0:0: Audio: mp3, 24000 Hz, mono, fltp, 32 kb/s

    How can I maintain the high 320kbs bitrate and all the other properties that were present before I created the joined file ?

  • ffmpeg send video to ffserver without reencode, CPU usage still very high.How ?

    3 septembre 2019, par Wayne Chen

    I’m using ffmpeg to send H.264 video to ffserver. Command looks like this :

    ffmpeg -re -stream_loop -1 -i test.mp4 -c copy http://localhost:8090/feed1.ffm

    I thought with -c copy option, the CPU usage of ffmpeg should be very low, but it actually used 99% of CPU.Please help cutdown the usage of CPU.
    Thanks

    ----------------------

    ffserver.conf :

    <feed>
    File /tmp/feed1.ffm
    FileMaxSize 5M
    ACL allow 127.0.0.1
    ACL allow 192.168.1.250
    </feed>

    <stream>
    Feed feed1.ffm
    Format rtp
    VideoCodec libx264
    VideoFrameRate 25
    VideoBufferSize 80000
    VideoSize 1920x1080
    PreRoll 15
    NoDefaults
    NoAudio
    </stream>

    ffserver log:

    ffserver -d -f /etc/ffserver.conf
    ffserver version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
     configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-version3 --enable-ffplay --enable-ffserver --enable-shared
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Tue Sep  3 09:45:38 2019 Codecs do not match for stream 0
    Tue Sep  3 09:45:38 2019 [ffm @ 0x1072d80]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Tue Sep  3 09:45:38 2019 Codecs do not match for stream 0
    Tue Sep  3 09:45:38 2019 [ffm @ 0x10695e0]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Tue Sep  3 09:45:38 2019 FFserver started.
    Tue Sep  3 09:45:39 2019 192.168.1.240 - - [] " " 200 0
    Tue Sep  3 09:45:39 2019 192.168.1.240 - - [] " " 200 0
    Tue Sep  3 09:45:39 2019 192.168.1.240:0 - - "PLAY test2-rtsp/streamid=0 RTP/TCP"
    Tue Sep  3 09:45:39 2019 192.168.1.240:0 - - "PLAY test1-rtsp/streamid=0 RTP/TCP"
    Tue Sep  3 09:45:39 2019 192.168.1.240:0 - - "PLAY test2-rtsp/streamid=0 RTP/TCP"
    Tue Sep  3 09:45:39 2019 192.168.1.240:0 - - "PLAY test1-rtsp/streamid=0 RTP/TCP"

    FFmpeg log:

    wayne@ubuntu:~$ ffmpeg -re -stream_loop -1 -i test_main.mp4 -c copy http://localhost:8090/feed1.ffm &amp; ffmpeg -re -stream_loop -1 -i test_minor.mp4
    4 -c copy http://localsudffmpeg -re -stream_loop -1 -i test_main.mp4 -c copy http://localhost:8090/feed1.ffm &amp; ffmpm
    ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
     configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-version3 --enable-ffplay --enable-ffserver --enable-shared
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_main.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:00:51.60, start: 0.000000, bitrate: 987 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 985 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    [tcp @ 0x19ca600] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    [tcp @ 0x19d58a0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x19d67c0] VBV bufsize set but maxrate unspecified, ignored
    [libx264 @ 0x19d67c0] using SAR=1/1
    [libx264 @ 0x19d67c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x19d67c0] profile Progressive High, level 4.0, 4:2:0, 8-bit
    Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : now
       encoder         : Lavf57.71.100
       Stream #0:0(eng): Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1000k tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc57.89.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 655360000 vbv_delay: -1
    frame=   13 fps=0.0 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   26 fps= 26 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   38 fps= 25 q=0.0 size=       4kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   43 fps= 18 q=28.0 size=       4kB time=-00:00:00.03 bitrate=N/A speed=N/A    
    frame=   55 fps= 19 q=28.0 size=      16kB time=00:00:00.44 bitrate= 297.9kbits/s speed=0.151x    
    frame=   59 fps= 17 q=28.0 size=      44kB time=00:00:00.60 bitrate= 600.7kbits/s speed=0.171x  
  • ffmpeg convert from H.264 (High 4:4:4 Profile) to H.264 (Main Profile)

    15 novembre 2019, par Milad

    How can I convert a video from H.264 (High 4:4:4 Profile) to H.264 (Main Profile) using ffmpeg ?

    I can’t do that with this command : ffmpeg -i 1/25359.mp4 -profile:v main out.mp4.

    That’d return an error :

    ...
    That'd return an error:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1/25359.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:00:06.08, start: 0.000000, bitrate: 1059 kb/s
       Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 351x297, 1057 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    x264 [error]: main profile doesn't support 4:4:4
    [libx264 @ 0x8fa9640] Error setting profile main.
    [libx264 @ 0x8fa9640] Possible profiles: baseline main high high10 high422 high444
    Output #0, mp4, to '1/24545.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
       Stream #0:0(und): Video: h264, none, q=2-31, 128 kb/s, 12.50 fps (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.60.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height