Hello
I googled before asking but am still not sure how to doctor a video where the audio is slighty late and must be advanced by 0.2s:
Is the following command the right solution?Code:Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x426 [SAR 213:176 DAR 20:11], 759 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default) Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Ideally, I'd like to avoid introducing yet more loss by re-encoding.Code:ffmpeg -i input.mp4 -itsoffset 0.2 -i input.mp4 -map 0:0 -map 1:1 -vcodec libx264 -r 20 -b:v 300k -acodec copy -f mp4 output.mp4
Thank you.
---
Found it:
Code:ffmpeg -i input.mp4 -itsoffset 0.2 -i input.mp4 -map 0:0 -map 1:1 -c copy -f mp4 output.m4
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by yetanotherlogin; 8th Dec 2015 at 04:11.
-
https://www.ffmpeg.org/ffmpeg-filters.html#setpts_002c-asetpts
seem to be more appropriate
Apply an offset of 10 seconds to the input PTS:
setpts=PTS+10/TB
Similar Threads
-
extract whatever audio part with ffmpeg
By marcorocchini in forum Newbie / General discussionsReplies: 0Last Post: 31st Oct 2014, 13:31 -
Nondestructively move h.264 from MKV to m4a (mp4) while compressing Audio?
By pwes in forum MacReplies: 9Last Post: 27th May 2013, 16:05 -
Hollow Audio in FFMPEG
By encodingmonkey in forum AudioReplies: 3Last Post: 8th Jan 2013, 04:08 -
mp4 to mpeg with ffmpeg - no audio
By ilpilo in forum Video ConversionReplies: 15Last Post: 29th Mar 2012, 09:17 -
changing audio bitrate with ffmpeg
By wallywalters in forum Video ConversionReplies: 4Last Post: 11th Feb 2011, 04:45