Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (108)

Sur d’autres sites (14245)

  • Cut Video clip using Media ffmpeg c#

    28 juillet 2016, par Praveen sharma

    Requirement is that I want to cut the live stream from end position to 4 minute back and then save in video file. We have to cut the video from live stream not for video saved already. My web cam will be recording the video and i have to save the stream of 4 minutes from the last position towards start.How could we achieve this

    Here with live stream doesn’t mean that not to store stream anywhere I am storing the stream in memory representation and while going for saving the video to a file cut the frame of 4 minutes from end and save in file.

  • Segmentation fault when media played using libavcodec

    20 août 2013, par sarah john

    Myself trying to play media using libavcodec as backend.I downloaded ffmpeg-2.0.1 and installed using ./configure,make and make install.
    While trying to run an application to play an audio file, i'm getting segmentation fault while checking for the first audio stream.my program is like

    AVFormatContext* container = avformat_alloc_context();
    if (avformat_open_input(&container, input_filename, NULL, NULL) < 0) {
       die(“Could not open file”);
    }

    if (av_find_stream_info(container) < 0) {
       die(“Could not find file info”);
    }

    av_dump_format(container, 0, input_filename, false);
    int stream_id = -1;
    int i;

    for (i = 0; i < container->nb_streams; i++) {
       if (container->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO) {
           stream_id = i;
           break;
       }
    }

    Segmentation fault occurs at if(container->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO)

    How can i fix this ? I am working in ubuntu 12.04.

  • Finding file extension for media file using ffprobe

    12 septembre 2013, par luddet

    I'm writing a media handling tool, using ffmpeg and ffprobe.

    Part of the workflow consists of the application retreiving media files with nondescript extensionless file names.
    Now I could get the extension from the media source but that would not fit as neatly into the program code flow, so I'm using ffprobe to extract the format information.

    The problem i have encountered is the format "QuickTime / MOV" where ffprobe gives me

    format_name="mov,mp4,m4a,3gp,3g2,mj2"

    Is there a way to know which of the extensions is most appropriate ?

    I guess the simplest solution is to pick the first,mov, since that should work for all of them. But I would prefer to be more specific.

    Any way to accomplish this ?