[FFmpeg-trac] #1349(ffmpeg:reopened): itsoffset doesn't work for second input file (audio)
FFmpeg
trac at avcodec.org
Mon Mar 13 22:03:12 EET 2017
#1349: itsoffset doesn't work for second input file (audio)
------------------------------------+------------------------------------
Reporter: bombo | Owner:
Type: defect | Status: reopened
Priority: normal | Component: ffmpeg
Version: git-master | Resolution:
Keywords: itsoffset | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by Selur):
Since I ran into this problem again.
For testing the effect of itsoffset I took a synch avi(xvid,mp3) file and
remuxed it using:
1.
{{{
ffmpeg -y -itsoffset 00:00:10.000 -i "test.avi" -i "test.mp3" -vcodec copy
-acodec copy -map 0:0 -map 1:0 -vtag XVID -aspect 181818:100000 -r 25 -f
avi "test1.avi"
}}}
-> Audio starts 10sec before video (this is like I expected)
2.
{{{
ffmpeg -y -i "test.avi" -itsoffset -00:00:10.000 -i "test.mp3" -vcodec
copy -acodec copy -map 0:0 -map 1:0 -vtag XVID -aspect 181818:100000 -r 25
-f avi "test3.avi"
}}}
-> Audio starts 10sec before video (this is like I expected)
3.
{{{
ffmpeg -y -itsoffset -00:00:10.000 -i "test.avi" -i "test.mp3" -vcodec
copy -acodec copy -map 0:0 -map 1:0 -vtag XVID -aspect 181818:100000 -r 25
-f avi "test2.avi"
}}}
-> Audio and video start at the same time (I expected that the video would
start before the audio)
4.
{{{
ffmpeg -y -i "test.avi" -itsoffset 00:00:10.000 -i "test.mp3" -vcodec
copy -acodec copy -map 0:0 -map 1:0 -vtag XVID -aspect 181818:100000 -r 25
-f avi "test4.avi"
}}}
-> Audio and video start at the same time (I expected that the video would
start before the audio)
=> '''How to handle negative audio delays with ffmpeg and an avi
container?'''
Also all of these calls give me:
{{{
[avi @ 000001f1b4b8e280] Timestamps are unset in a packet for stream 0.
This is deprecated and will stop working in the future. Fix your code to
set the timestamps properly[/quote]
}}}
=> '''How to do it properly to avoid this warning and be save for the
future?'''
Thanks!
--
Ticket URL: <https://trac.ffmpeg.org/ticket/1349#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list