Hi,
I would like to use the audio of video1.mp4 in video2.avi but can't manage to
find the correct procedure. The 2 videos have exactly the same content but not
the same duration. I tried to use "ffmpeg -i video2.avi -filter:v
"setpts=0,996932336679635*PTS" -qscale:v 1 video2_a.avi" to change the duration
or change the frame rate but at the end there is a delay issue when I apply the
audio.
Below the output requested for ffmpeg -i video1.mp4 -i video2.avi. Thanks for
your support.
ffmpeg version N-87871-g7480f232d2 Copyright (c) 2000-2017 the FFmpeg
developers built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 55. 79.100 / 55. 79.100
libavcodec 57.108.100 / 57.108.100
libavformat 57. 84.100 / 57. 84.100
libavdevice 57. 11.100 / 57. 11.100
libavfilter 6.108.100 / 6.108.100
libswscale 4. 9.100 / 4. 9.100
libswresample 2. 10.100 / 2. 10.100
libpostproc 54. 8.100 / 54. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.56.101
Duration: 00:44:57.52, start: 0.000000, bitrate: 9659 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/unknown/smpte170m), 640x480 [SAR 1:1 DAR 4:3], 9346 kb/s, 25 fps, 25
tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 307 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.avi':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.56.101
Duration: 00:45:05.66, start: 0.000000, bitrate: 12585 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/unknown/smpte170m), 720x480 [SAR 1:1 DAR 3:2], 12286 kb/s, 29.97 fps,
29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 290 kb/s (default)
Metadata:
handler_name : SoundHandler
At least one output file must be specified
De : Carl Eugen Hoyos <[email protected]>
À : FFmpeg user questions <[email protected]>
Envoyé le : Vendredi 20 octobre 2017 0h35
Objet : Re: [FFmpeg-user] [FFMPEG]Mux audio video - delay issue
2017-10-19 17:43 GMT+02:00 Antonio Rolo <[email protected]>:
> Any clue about my issue below ?
Please start with "ffmpeg -i video1.mp4 -i video2.mp4" and provide
the complete, uncut console output, remember that only current
FFmpeg (git head) is supported here.
Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
| | Garanti sans virus. www.avast.com |
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".