I will appreciate your advice on the following. I'am developing a video converter which based on FFmpeg's libavformat, and I need to implement an accurate seeking API. First of all, I developed an indexer of video stream which just saves a presentation timestamps(PTS) of every packet. And then my encoder uses this index to seek the video file. Before this operations, I remux file to mp4 container, for example. Remux is needed for videos which have no correct index inside, or video has no index at all. I need to implement seeking by bytes, of course with previously built index. I tried many ways to implement this, but without any success. Maybe you know how to implement an accurate seeking by bytes in FFmpeg? Best regards.
Seeking by bytes in FFmpeg
2.5k Views Asked by Yury At
1
There are 1 best solutions below
Related Questions in FFMPEG
- Extract bytes of specific stream from mpegts file using ffmpeg
- running ffmpeg command in java Process hangs in waitFor()
- ffmpeg stream rtsp to mpegts
- Android receive RTP/UDP audio stream from VLC/ffmpeg
- error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04
- webcam displayed on LAN not to the internet
- ffserver - invalid codec name libvpx
- ffmpeg to extract a video one frame per second?
- how to extract audio from video in c using ffmpeg library?
- How to extract audio form video using ffmpeg in C++?
- ffmpeg to validate video format is genune and store error into string
- FFMPEG concat videos
- Why so many partial content requests in Firefox when streaming mp4 video on Apache?
- FFServer streaming H.264 from Logitech C920 without re-encoding
- Fragment shader does not show any colour when compiled with vs2013
Related Questions in SEEK
- Seeking on a gz connection is unpredictable
- How to translate this Python code to Node.js
- ffmpeg dump specific length of video after seeking PICT_TYPE_I keyframe
- Finding strings in text files and seeking them
- Check if Youtube video ID match else load a new video id
- Finding the time it would take to read a 1000 byte file
- Is it possible to get audio from an ICY stream with percentage and seek function
- android MediaExtractor MediaCodec seek
- AttributeError when trying to use seek() to get last row of csv file
- How to flush gstreamer pipeline
- libvlc: seek issues in IOS
- Is packet duration guaranteed to be uniform for entire stream?
- Issue with fstream::tellg() and ::seekg()
- Read data from each column and finally print it in a row in perl
- Does calling seek on a consumer in a group set the offset for the whole group
Related Questions in LIBAVCODEC
- error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04
- JavaFX Media Player crashes when opening MP3s even though libav 53 libraries are present?
- undefined reference to 'av_rdft_init(int, RDFTransformType)'
- FFMPEG - AVFrame to per channel array conversion
- How to extract key-frames closest to given frame numbers from H264 video with ffmpeg
- FFmpeg - MJPEG decoding gives inconsistent values
- Unmet dependency when installing vlc on ubuntu 14.04
- Sending metadata per frame with libavcodec
- Compiling FFMPEG in Visual Studio 2013
- Android Encode h264 using libavcodec for ARGB
- How to load an image with libavcodec functions of ffmpeg?
- OpenCV's VideoCapture::open Video Source Dialog
- Convert from NV12 to RGB/YUV420P using libswscale
- using ffmpeg libavcodec encode video stream to H264, why duration is zero
- Using FFmpeg within a python application: ffmpeg tool or libav* libraries?
Related Questions in FSEEK
- convert between FILE type and filedescriptor in C
- Unable to use fseek() in backward direction from the current position
- Fseek doesn't reach the end of compiled file
- rewrite part of binary file
- getting size harddisk with fseek()
- fseek ftell reading same input
- How to insert text into a file using fseek and fwrite
- C Get a string from a file
- Alternatives to fseeko for Cygwin?
- Different value of a structure on Linux and Windows
- Can 6/2 return a different result than 6/a (where a=2)? (and how that affects the output of a .bmp file)
- Seeking by bytes in FFmpeg
- fseek char linux device
- how to rewind() an http stream file in PHP other than fclose() and fopen() again?
- Problem with fseek
Related Questions in LIBAVFORMAT
- error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04
- JavaFX Media Player crashes when opening MP3s even though libav 53 libraries are present?
- Is packet duration guaranteed to be uniform for entire stream?
- Using FFmpeg within a python application: ffmpeg tool or libav* libraries?
- FFmpeg(C/libav) VPX to mpeg2video stream cannot be reproduce in VLC
- Seeking by bytes in FFmpeg
- av_register_all() vs. avcodec_register()
- ffmpeg - mandatory filters to use
- Container for a single h264 video stream
- Get rtsp error when connection is corrupted?
- avcodec_find_decoder(CODEC_ID_MPEG2TS) always NULL
- Grabbing rtsp/rtp stream with libavformat
- Fast way of opening Live Input with libavcodec
- Why is the last frame not showing in an MP4 generated by libav?
- Is raw audio in AVFrame->data the same as LPCM?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yury! You must seek until you meet the correct frame in the GOP area in where is destination frame. Before that you have to decode two both GOP in where are first frame and last frame of segment and save their positions. This position values will use finding your correct frames.
I've found that matters in two years ago. If you don't have correct understood, I'll give you new algorithm. Best regards.