[MPlayer-users] Using mplayer as a MPEG-TS cutter
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Apr 28 19:54:41 CEST 2011
On Thu, Apr 28, 2011 at 09:27:41AM +0200, Ptitboul Ptitboul wrote:
> 2011/4/25 Reimar Döffinger <Reimar.Doeffinger at gmx.de>
>
> > Bind a key to
> > osd_show_property_text stream_pos
> >
>
> Could you describe precisely how strem_pos is computed?
stream_pos gives the position after the bytes MPlayer has processed
at that point.
I would have expected it to be at most a few frames ahead of the
current position, at least if audio and video play in sync.
ffprobe from FFmpeg might help you in making the exact cuts.
If you use it with -show_packets you'll get output like
[PACKET]
codec_type=video
stream_index=0
pts=4617286652
pts_time=51303.185022
dts=4617268652
dts_time=51302.985022
duration=1800
duration_time=0.020000
size=227403.000000
pos=62042068
flags=K
[/PACKET]
Which means that at offset pos=62042068
there is a keyframe (I/IDR, flags=K) of
size 227403.
More information about the MPlayer-users
mailing list