Changes between Initial Version and Version 1 of Ticket #1349, comment 4


Ignore:
Timestamp:
May 25, 2012, 9:14:11 PM (4 years ago)
Author:
bombo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1349, comment 4

    initial v1  
    11Replying to [comment:2 mjs973]: 
    22> The -itsoffset option does not work the way you think it does. 
     3 
     4{{{ 
    35‘-itsoffset offset (input)’ 
    46 
     
    68 
    79(http://ffmpeg.org/ffmpeg.html) 
     10}}} 
     11 
    812someone should add *video* there, i thought it would modify *any* 'input files' 
    913 
     
    1317well ok, so i need to shift the video stream 10s backwards (audio is 10s late) 
    1418it works for positive values (forwards): 
    15  
     19{{{ 
    1620Y:\test>ffmpeg -y -itsoffset 00:00:10 -i video.avi -i audio.mp3 -codec copy muxed.avi 
    1721ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers built on May 19 2012 00:45:59 with gcc 4.6.3  configuration: --enable-gpl --ena 
     
    5155frame= 1500 fps=0.0 q=-1.0 Lsize=   10476kB time=00:01:00.00 bitrate=1430.4kbits/s 
    5256video:9020kB audio:1346kB global headers:0kB muxing overhead 1.063745% 
    53  
     57}}} 
    5458result: audio starts at 00:00:00, video starts at 00:00:10 (10s later) 
    5559 
    5660but the problem is actually, the audio is 10s late, so i expect negative values to do the trick: 
    57  
     61{{{ 
    5862Y:\test>ffmpeg -y -itsoffset -00:00:10 -i video.avi -i audio.mp3 -codec copy muxed.avi 
    5963ffmpeg version N-40824-g31dfe20 Copyright (c) 2000-2012 the FFmpeg developers built on May 19 2012 00:45:59 with gcc 4.6.3 
     
    9296frame= 1500 fps=0.0 q=-1.0 Lsize=   10470kB time=00:00:50.00 bitrate=1715.5kbits/s 
    9397video:9020kB audio:1346kB global headers:0kB muxing overhead 1.007220% 
    94  
     98}}} 
    9599result: audio + video play at the same time, 00:00:00, no delay at all. 
    96100