Recherche avancée

Médias (91)

Autres articles (57)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (7320)

  • Writing metadata (Artist Name, Song Title, Year, Album, Duration, Genre) to mp3/m4a audio file using youtube-dl (subsequent AtomicParsely error)

    10 décembre 2016, par IRNotSmart

    I am extracting audio only from youtube videos using youtube-dl. I would like to write the metadata (i.e. Artist Name and Song Title, Year, Album, Duration, Genre) into the mp3/m4a file after downloading. My attempt to accomplish this starts with this code :

    @echo off
    youtube-dl --format m4a/mp3 --youtube-skip-dash-manifest --embed-thumbnail -o "%%(title)s.%%(ext)s" --metadata-from-title "%%(artist)s - %%(title)s" --add-metadata 2Y6Nne8RvaA
    pause

    This code produces the following output :

    [youtube] 2Y6Nne8RvaA: Downloading webpage
    [youtube] 2Y6Nne8RvaA: Extracting video information
    [youtube] 2Y6Nne8RvaA: Downloading thumbnail ...
    [youtube] 2Y6Nne8RvaA: Writing thumbnail to: Kungs vs Cookin' on 3 Burners - Thi
    s Girl.jpg
    [download] Destination: Kungs vs Cookin' on 3 Burners - This Girl.m4a
    [download] 100% of 2.99MiB in 00:01
    [ffmpeg] Correcting container in "Kungs vs Cookin' on 3 Burners - This Girl.m4a"

    [fromtitle] parsed title: This Girl
    [fromtitle] parsed artist: Kungs vs Cookin' on 3 Burners
    [ffmpeg] Adding metadata to 'Kungs vs Cookin' on 3 Burners - This Girl.m4a'
    ERROR: AtomicParsley was not found. Please install.
    Press any key to continue . . .

    As you can see, I am able to successfully able to add a few of the tags from the video, but not all of them and the Year is royally screwed up.
    enter image description here

    What is this AtomicParsely error and how do I remedy it ? Do I need this program to correctly add all the Metadata to the file that I want, or can this be accomplished in another way ?

    Referencing Steven Penny’s post, FFmpeg metadata not showing in Windows ?, is solving this problem as simple as using an ffmpeg command ?

    When I do a google search for this song, the first link that shows is the exact link I’m using on YouTube, and the search shows pertinent metadata (see below). I’m not sure if this data is input manually by users, or if Google mined this from the video :
    enter image description here

    I admit that I’m new to using youtube-dl and ffmpeg, but with the help of the commenters on StackOverflow, I’m learning more each day. This post is a follow-up to my previous question : Downloading YouTube to mp3 and writing metadata (artist/song title) to mp3 file using youtube-dl

  • How to convert rtp codec in online to amr-nb/wb (octet-align = 0) by FFMPEG ?

    28 janvier 2019, par Mehdi Talebi

    rtp is received as input with different payload types such as amr-nb and WAVE.It is necessary to convert all of them to amr-wb but in bandwidth-align (NOT octet-align).
    I use this command to convert :

    ffmpeg -re -i rtp ://127.0.0.1:1235 -ar 16000 -ab 19.85k -acodec libvo_amrbenc -f rtp rtp rtp ://127.0.0.1:1236

    But the out put (SDP) is like this :

    1. v=0
    2. o=- 0 0 IN IP4 127.0.0.1
    3. s=No Name
    4. c=IN IP$ 127.0.0.1
    5. t=0.0
    6. a=tool:libvaformat 58.25.100
    7. m=audio 1236 RTP/AVP 97
    8. b=AS:19
    9. a=rtpmap:97 AMR-WB/16000/1
    10. a=fmtp:97 octet-align =1

    My problem is octet-align =1, i need octet-align = 0. Do you know any argument to set this in the command ?

  • How to save AVPacket if I have input information from online camera

    31 mars 2020, par Orest

    I am new to libav.
I have a online video camera and want save video from archive to the video file with libav

    



    Camera provides such data

    



    uint32_t frameType, // I frame or P frame

void *frame, //pointer to the frame

size_t frameSize, //size of the frame in bytes

uint64_t timeStamp, //time stamp in time_t units

uint32_t width, //frame width

uint32_t height, //frame heigh

uint32_t genTime, //I do not now what is this. allways 0

const char *encodingType //H264 or H265


    



    I tried this

    



    void writeHeader(){
mOutputFilePath = outputFilePath;
    int ret = 0;
    avformat_alloc_output_context2(&output_format_context, nullptr, nullptr, outputFilePath.c_str());

AVStream *out_stream;
        out_stream = avformat_new_stream(output_format_context, nullptr);

        out_stream->discard = AVDISCARD_DEFAULT;//не змінювати
        out_stream->codecpar->level = 42;//не змінювати
        out_stream->codecpar->profile = FF_PROFILE_H264_HIGH;//не змінювати
        out_stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;

        if(codecID == "H264") out_stream->codecpar->codec_id = AV_CODEC_ID_H264;
        else if(codecID == "H265") out_stream->codecpar->codec_id = AV_CODEC_ID_H265;

        out_stream->codecpar->format = AV_PIX_FMT_YUV420P;
        out_stream->codecpar->height = heightFrame;
        out_stream->codecpar->width = widthFrame;
        //        out_stream->codecpar->bit_rate = 2478235;
        //        out_stream->codecpar->bits_per_coded_sample = 24;
        //        out_stream->codecpar->bits_per_raw_sample = 8;
        out_stream->codecpar->sample_aspect_ratio.num = 0;
        out_stream->codecpar->sample_aspect_ratio.den = 1;
        out_stream->codecpar->color_primaries = AVCOL_PRI_UNSPECIFIED;//не змінювати

avio_open(&output_format_context->pb, mOutputFilePath.c_str(), AVIO_FLAG_WRITE);
avformat_write_header(output_format_context, &opt);
}

void writePacket(){
 AVPacket inputPacket;
        av_init_packet(&inputPacket);
        inputPacket.buf = NULL;
        inputPacket.pts = (int)timeStamp;
        inputPacket.dts = inputPacket.pts; 
        inputPacket.data = (unsigned char*)frame;
        inputPacket.size = (int)frameSize;

        if (frameType == KP2P_FRAME_TYPE_IFRAME)
        {
            inputPacket.flags = AV_PKT_FLAG_KEY;
        }
        inputPacket.duration = 0;
        inputPacket.pos = -1;
av_interleaved_write_frame(output_format_context, &inputPacket);
    av_packet_unref(&inputPacket);
}

void closeFile()
{
av_write_trailer(output_format_context);
    if (output_format_context && !(output_format_context->oformat->flags & AVFMT_NOFILE))
        avio_closep(&output_format_context->pb);
    avformat_free_context(output_format_context);
}


    



    in output file I have black vindow and time is not correct (input 30 seconds in out 2 seconds)
What am I doing wrong ?