Apply a 25fps audio to a 23.976 fps video
It's possible to do this in one pass with ffmpeg? I've googled around and I've seen a patch that added the option -spc 23976:25000 in one mailing list but it seems it didn't reach the official ffmpeg and I'm not able to find the patch anywhere (the ml archives remove the file attachments). Anyway there is another way to do so without using external program to do it? It will be ok also to change the fps of the video without recoding it. I've tried the following command line to do so but it doesn't work, still produce a not synchronized movie with 23.976fps video and 25fps audio: ffmpeg -i video.avi -i new_audio.mp3 -vcodec copy -r 25 dest.avi -map 0.0: 0.0 -map 1.0:0.1 -- Bye, Gabry
On Fri, 1 Dec 2006 10:01:44 +0100, "Gabriele Greco" <gabrielegreco at gmail.com> wrote:
ffmpeg -i video.avi -i new_audio.mp3 -vcodec copy -r 25 dest.avi -map 0.0: 0.0 -map 1.0:0.1
Try putting the "-map" options *before* the output clause. $ ffmpeg -i video.avi -i new_audio.mp3 -vcodec copy -r 25 \ -map 0.0 -map 1.0 -f avi dest.avi -- G. Stewart - godwin.stewart at gmail.com God prefers spiritual fruit, not religious nuts...
ffmpeg -i video.avi -i new_audio.mp3 -vcodec copy -r 25 dest.avi -map 0.0: 0.0 -map 1.0:0.1
Try putting the "-map" options *before* the output clause.
$ ffmpeg -i video.avi -i new_audio.mp3 -vcodec copy -r 25 \ -map 0.0 -map 1.0 -f avi dest.avi
Thanks for the answer, but this command line give the exact result of mine, here is a dump of what ffmpeg writes: Seems that stream 0 comes from film source: 23.98 (65535/2733) -> 23.98(24000/1001) Input #0, avi, from 'H-1x01.avi': Duration: 00:43:17.1, start: 0.000000, bitrate: 1127 kb/s Stream #0.0: Video: mpeg4, yuv420p, 640x352, 23.98 fps(r) Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s Input #1, mp3, from 'H-1x01-ITA-25fps.mp3': Duration: 00:41:30.7, start: 0.000000, bitrate: 128 kb/s Stream #1.0: Audio: mp3, 48000 Hz, stereo, 128 kb/s Output #0, avi, to 'Test.avi': Stream #0.0: Video: mpeg4, yuv420p, 640x352, q=2-31, 23.98 fps(c) Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 -- Bye, Gabry
participants (2)
-
gabrielegreco@gmail.com -
godwin.stewart@gmail.com