Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (104)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (12641)

  • Run application in background with delete operation

    14 décembre 2016, par RoiEX

    I have the following code in my php script :

    exec ( "start ./ffmpeg.exe -i \"" . $inFile . '" "' . $outFile . '"' );
    unlink ( $inFile );

    As you may have guessed, this code will not work, because ffmpeg is started, but the file is going to be deleted before ffmpeg finishes. (Or the deletion process will fail because the file is being used.)

    I want to execute ffmpeg asynchronously using start, but delete the input file on success. I tried adding && del $inFile, but this has the same effect as my code.

    For those of you who don’t know what start does ; it starts the given command in a new process, causing the exec function to return immediately.

    Any help is appreciated :)

  • Is there a way to parse Hevc rtsp packets and find height and width in c++ application

    2 août 2021, par dinesh47

    I have written a C++ application with processing of RTP video and Audio packet(Bitstream packets) but can't able to find a way to get height and width from VPs,SPs or PPs from every keyframe.
Note:I am using only pure c++ codes until encoding and writing the file part with ffmpeg lib

    


    Need to know How to Extract it from that extra data for Memcopy it to add with start code.

    


    Need to find Height and width with it(Parsing).

    


    i have Written in case like the folowing :

    


     byte *packet=&amp;*(frameData);&#xA;int size =ptr->m_size;&#xA;boost::shared_ptr<byte> dst ;&#xA;int naltype = (packet[0] >> 1) &amp; 0x3f;&#xA;&#xA;switch(naltype)&#xA;{&#xA;case HEVC_NAL_VPS:&#xA;    m_vpsSize=(size)&#x2B;4;&#xA;    m_vpsHeader[3]=1;&#xA;    memcpy(&amp;m_vpsHeader[4],&amp;packet[0],size); //need size and packet start and End dimension&#xA;    break;&#xA;case HEVC_NAL_SPS:&#xA;    m_spsSize=(size)&#x2B;4;&#xA;    m_spsHeader[3]=1;&#xA;    memcpy(&amp;m_spsHeader[4],&amp;packet[0],size);//need size and packet start and End dimension&#xA;    break;&#xA;case HEVC_NAL_PPS:&#xA;    m_ppsSize=(size)&#x2B;4;&#xA;    m_ppsHeader[3]=1;&#xA;    memcpy(&amp;m_ppsHeader[4],&amp;packet[0],size);//need size and packet start and End dimension&#xA;    break;&#xA;case 49:&#xA;    byte new_nal_header[2]={0};&#xA;    int startFU=packet[2]&amp;0x80;&#xA;    int endFU = packet[2]&amp;0x40;&#xA;    int fuType=packet[2] &amp; 0x3f;&#xA;    new_nal_header[0] = (packet[0] &amp; 0x81) | (fuType&lt;&lt;1);&#xA;    new_nal_header[1]=packet[1];&#xA;&#xA;}&#xA;</byte>

    &#xA;

  • Adding cover art to video wtih chapters and chapters getting deleted

    31 mai 2021, par throwaway513

    I am trying to add a cover art to a video with chapters.

    &#xA;

    I added 2 chapters to a video using :

    &#xA;

    ffmpeg -i 1.mp4 -i Chapters.txt -map_metadata 1 -c copy 2.mp4

    &#xA;

    but when I try to add cover art it deletes the first chapter and only keeps the second ?

    &#xA;

    ffmpeg -i 2.mp4 -i image.jpg -map 1 -map 0 -c copy -disposition:0 attached_pic 3.mp4

    &#xA;

    I also tried mp3tag but the picture doesn't show on the file after adding chapters through ffmpeg. Chapters work fine on 2.mp4 but on 3.mp4 it deletes the first chapter. It also deletes the chapter when I do ffmpeg -i 2.mp4 -c copy any.mp4

    &#xA;

    Chapter.txt

    &#xA;

    ;FFMETADATA1&#xA;major_brand=isom&#xA;minor_version=512&#xA;compatible_brands=isomiso2avc1mp41&#xA;encoder=Lavf58.12.100&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=1152352&#xA;END=&#xA;title=&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=1378578&#xA;END=&#xA;title=&#xA;

    &#xA;


    &#xA;
    C:\Users\Dark\Desktop\ffmpeg\bin>ffmpeg -i 1.mp4 -i Chapters.txt -map_metadata 1 -c copy 2.mp4&#xA;ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers&#xA;  built with gcc 7.3.1 (GCC) 20180722&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth&#xA;  libavutil      56. 14.100 / 56. 14.100&#xA;  libavcodec     58. 18.100 / 58. 18.100&#xA;  libavformat    58. 12.100 / 58. 12.100&#xA;  libavdevice    58.  3.100 / 58.  3.100&#xA;  libavfilter     7. 16.100 /  7. 16.100&#xA;  libswscale      5.  1.100 /  5.  1.100&#xA;  libswresample   3.  1.100 /  3.  1.100&#xA;  libpostproc    55.  1.100 / 55.  1.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001a7335c99c0] stream 0, timescale not set&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    creation_time   : 1970-01-01T00:00:00.000000Z&#xA;    encoder         : Lavf52.31.0&#xA;  Duration: 00:27:10.00, start: 0.000000, bitrate: 3338 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 3120 kb/s, 29.97 fps, 29.97 tbr, 770589.00 tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 103 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : SoundHandler&#xA;    Stream #0:2: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc&#xA;Input #1, ffmetadata, from &#x27;Chapters.txt&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.12.100&#xA;  Duration: 504900:42:04.42, start: 0.000000, bitrate: N/A&#xA;    Chapter #1:0: start 1152.352000, end 1817642524.416000&#xA;    Metadata:&#xA;      title           :&#xA;    Chapter #1:1: start 1378.578000, end 1817642524.416000&#xA;    Metadata:&#xA;      title           :&#xA;[mp4 @ 000001a733efdfc0] Application provided duration: 1817641372064 is invalid&#xA;[mp4 @ 000001a733efdfc0] Application provided duration: 1817641145838 is invalid&#xA;Output #0, mp4, to &#x27;2.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.12.100&#xA;    Chapter #0:0: start 1152.352000, end 1817642524.416000&#xA;    Metadata:&#xA;      title           :&#xA;    Chapter #0:1: start 1378.578000, end 1817642524.416000&#xA;    Metadata:&#xA;      title           :&#xA;    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 3120 kb/s, 29.97 fps, 29.97 tbr, 770589.00 tbn, 770589.00 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 103 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : SoundHandler&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (copy)&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;frame=48851 fps=0.0 q=-1.0 Lsize=  642768kB time=00:27:09.96 bitrate=3230.5kbits/s speed=3.04e&#x2B;03x&#xA;video:620855kB audio:20549kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.212700%&#xA;

    &#xA;


    &#xA;
    C:\Users\Dark\Desktop\ffmpeg\bin>ffmpeg -i 2.mp4 -i image.jpg -map 1 -map 0 -c copy -disposition:0 attached_pic 3.mp4&#xA;ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers&#xA;  built with gcc 7.3.1 (GCC) 20180722&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth&#xA;  libavutil      56. 14.100 / 56. 14.100&#xA;  libavcodec     58. 18.100 / 58. 18.100&#xA;  libavformat    58. 12.100 / 58. 12.100&#xA;  libavdevice    58.  3.100 / 58.  3.100&#xA;  libavfilter     7. 16.100 /  7. 16.100&#xA;  libswscale      5.  1.100 /  5.  1.100&#xA;  libswresample   3.  1.100 /  3.  1.100&#xA;  libpostproc    55.  1.100 / 55.  1.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001cdbdbd9b40] Referenced QT chapter track not found&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;2.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.12.100&#xA;  Duration: 00:27:10.00, start: 0.000000, bitrate: 3230 kb/s&#xA;    Chapter #0:0: start 1152.352000, end 1378.578000&#xA;    Metadata:&#xA;      title           :&#xA;    Chapter #0:1: start 1378.578000, end 1629.996000&#xA;    Metadata:&#xA;      title           :&#xA;    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 3120 kb/s, 29.97 fps, 29.97 tbr, 770589.00 tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 103 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;Input #1, image2, from &#x27;image.jpg&#x27;:&#xA;  Duration: 00:00:00.04, start: 0.000000, bitrate: 24266 kb/s&#xA;    Stream #1:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc&#xA;Output #0, mp4, to &#x27;3.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.12.100&#xA;    Chapter #0:0: start 1152.352000, end 1378.578000&#xA;    Metadata:&#xA;      title           :&#xA;    Chapter #0:1: start 1378.578000, end 1629.996000&#xA;    Metadata:&#xA;      title           :&#xA;    Stream #0:0: Video: mjpeg (mp4v / 0x7634706D), yuvj444p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 tbr, 12800 tbn, 25 tbc&#xA;    Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 3120 kb/s, 29.97 fps, 29.97 tbr, 770589.00 tbn, 770589.00 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 103 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;Stream mapping:&#xA;  Stream #1:0 -> #0:0 (copy)&#xA;  Stream #0:0 -> #0:1 (copy)&#xA;  Stream #0:1 -> #0:2 (copy)&#xA;Press [q] to stop, [?] for help&#xA;frame=    1 fps=0.0 q=-1.0 Lq=-1.0 size=  642887kB time=00:27:09.96 bitrate=3231.1kbits/s speed=2.79e&#x2B;03x&#xA;video:620973kB audio:20549kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.212752%&#xA;

    &#xA;