Log in

View Full Version : delete some frame from raw byte stream


msm_007
18th February 2009, 17:33
Hi all,
I have to develop a program that delete some frames from raw byte stream (.264), for example delete the 1st 5 frames from raw byte stream of 300 frames,

This is the cmd of coding the YUV file:
x264 --qp 30 --bframes 1 --ref 5 --8x8dct --subme 6 --trellis 2 --me umh --mixed-refs --direct spatial --no-b-adapt --keyint 999 --scenecut -1 -o SOCCER_30_orig_02_704x576.264 SOCCER_30_orig_02_704x576.yuv

My problem is that I don’t know which is the test I have to make for starting copying at frame 6 (how can I detect the end flag of frame 5 or the start flag of frame 6)

cacepi
18th February 2009, 20:49
Hi all,
I have to develop a program that delete some frames from raw byte stream (.264), for example delete the 1st 5 frames from raw byte stream of 300 framesFrom x264 --longhelp:

--seek <integer> First frame to encode

msm_007
18th February 2009, 23:09
I have the .264 file, already compressed (I want to delete some frames from this byte stream)
the original file is compressed with this cmd : x264 --qp 30 --bframes 1 --ref 5 --8x8dct --subme 6 --trellis 2 --me umh --mixed-refs --direct spatial --no-b-adapt --keyint 999 --scenecut -1 -o SOCCER_30_orig_02_704x576.264 SOCCER_30_orig_02_704x576.yuv

Guest
19th February 2009, 00:20
You can't just arbitrarily delete frames from a compressed stream. You'll leave the remaining frames with possibly orphaned references.