Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (108)

Sur d’autres sites (16123)

  • FFMPEG demuxer seek error in Chrome range slider with AWS S3 audio file

    4 avril, par Tania Rascia

    I'm encountering an issue where if you click or slide enough on a range slider in Chrome, it will eventually stop working and give this error, an error 2 (network error) :

    


    PIPELINE_ERROR_READ: FFmpegDemuxer: demuxer seek failed


    


    If I google this error, I only find the Chrome source code :

    


    Line 1749 of Chrome source code

    


    First, this issue only happens in Chrome, not Firefox. Second, I can only get it to happen with an encrypted file from AWS, which I can't get into a sandbox, so the sandbox I made will never encounter that error with the random audio file I used.

    


    Here's the sandbox.

    


    The only difference I can find between this code and the failing code is the source of the audio file (AWS S3).

    


  • Why can't I seek using PTS while reading an MXF file until av_write_trailer() is called ?

    1er mai, par Summit

    I'm writing an MXF file using FFmpeg in C++ and then reading it back for real-time playback. However, I'm running into a problem : seeking by PTS (av_seek_frame()) doesn't work properly until I call av_write_trailer() at the end of the writing session.

    


    Here’s the workflow :

    


    I'm encoding and writing frames to an MXF file using avformat_write_header() and av_interleaved_write_frame().

    


    I want to read from the same file while it’s still being written (like a growing file or EVS-style live playback).

    


    But seeking using av_seek_frame() to a specific PTS fails or behaves incorrectly until I finalize the file with av_write_trailer().

    


    Here is a simplified version of my writing logic :

    


    avformat_write_header(formatContext, nullptr);
// ... loop ...
avcodec_send_frame(codecContext, frame);
avcodec_receive_packet(codecContext, &pkt);
av_interleaved_write_frame(formatContext, &pkt);
// NO call to av_write_trailer() yet


    


    And this is how I try to seek in the reading logic :

    


    av_seek_frame(inputFormatContext, videoStreamIndex, targetPts, AVSEEK_FLAG_BACKWARD);


    


  • Migrated main development to Visual Studio 2008 (which has a better integration with...

    20 novembre 2010, par Cristian Adam

    Migrated main development to Visual Studio 2008 (which has a better integration with...