All pastes #3324305 Raw Edit

Untitled

public unlisted text v1 · immutable
#3324305 ·published 2016-01-09 20:20 UTC
rendered paste body
<prelude2004c>mark4o i dont know how to use that  :(
<mark4o>prelude2004c: -vf setpts=PTS-STARTPTS -af asetpts=PTS-STARTPTS
<mark4o>that will make both video and audio start at 0, which may not be what you want if they started at different times and that is needed for them to be in sync.  In that case figure out how much you want to adjust by and adjust them both by the same number of seconds.
<mark4o>e.g. -vf setpts=PTS+120/TS -af asetpts=PTS+120/TS  to adjust them both forward by 120 seconds
<mark4o>if you already have a -vf option then just add ,setpts=... to that, same with -af and asetpts
<prelude2004c>yup i did that
<prelude2004c>but the playback of the recorded content still starts at end of recording... the start is a negative value
<prelude2004c>and the playback player always starts at zero ( 0 )
<prelude2004c>i setpts and then i use the player for playback and it only plays the last few seconds of video and then it ends
<prelude2004c>not sure why it is doing that. the player guys tell me its because the PVRSTARTTIME starts with a negative value.. which is what i am trying to work around
<prelude2004c>i put it in like this ' -vf "field,setsar=1/1,setdar=16/9,setpts=PTS-STARTPTS" '
<mark4o>prelude2004c: well I don't know what PVRSTARTTIME is; that sounds like something outside of ffmpeg
<prelude2004c>its an HLS thing .. but the .ts files that i am encoding with ffmpeg show a negative timestamp that is the issu