[FFmpeg-user] Adding an audio track to a video using ffmpeg 4.0
Shlomi Fish
shlomif at shlomifish.org
Sat Apr 28 12:09:43 EEST 2018
Hi all!
Using r.sh in this repo -
https://github.com/shlomif/pysolfc-black-hole-solver--screencast , I am getting
this output: http://www.shlomifish.org/Files/files/text/f.txt and a zero-timed
file. A different command worked in the past here:
https://bitbucket.org/shlomif/pysolfc-qualified-seed-improved-screencast , but
compatibility was broken. Thanks for any help.
Here is the start of f.txt:
===================================================
Hi all! I am trying to overlay an audio track on a video
using ffmpeg 4.0 but I am getting a zero-length file and no audio,
using this command and its errors. How can I fix it?
+ ofn=pysolfc-bhs-with-audio.ogv
+ rm -f pysolfc-bhs-with-audio.ogv
+ ffmpeg -i '006 - David Amber - Gnarly _feat. Devyn Rush_.ogg' -i
pysolfc-bhs.ogv -map 1:v -map 0:a -shortest -c:a libvorbis -q:a 7 -c:v copy -af
asetpts=PTS-STARTPTS pysolfc-bhs-with-audio.ogv ffmpeg version 4.0 Copyright
(c) 2000-2018 the FFmpeg developers built with gcc 7.3.0 (Mageia 7.3.0-3.mga7)
configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64
--shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping
--enable-postproc --enable-gpl --enable-pthreads --enable-libtheora
--enable-libvorbis --disable-encoder=vorbis --enable-libvpx
--enable-runtime-cpudetect --enable-libdc1394 --enable-librtmp
--enable-libspeex --enable-libfreetype --enable-libgsm --enable-libcelt
--enable-libopus --enable-libopenjpeg --enable-libtwolame --enable-libxavs
--enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls
--enable-libcdio --enable-libpulse --enable-libv4l2 --enable-avresample
--enable-opencl --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libx265
--enable-libvo-amrwbenc --enable-libxvid libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100
Input #0, ogg, from '006 - David Amber - Gnarly _feat. Devyn Rush_.ogg':
Duration: 00:03:16.84, start: 0.000000, bitrate: 110 kb/s Stream #0:0: Audio:
vorbis, 44100 Hz, stereo, fltp, 112 kb/s Metadata: ARTIST : David
Amber track : 3 GENRE : rock MUSICBRAINZ_ALBUMARTIST: David
Amber ALBUM : David Amber and Friends, Vol. 1 TITLE :
Gnarly (feat. Devyn Rush) DATE : 2015 JAMENDO-TRACK-ID: 1243462
ORGANIZATION : http://www.jamendo.com PUBLISHER :
http://www.jamendo.com comment : http://www.jamendo.com
LICENSE : http://creativecommons.org/licenses/by/3.0/
COPYRIGHT : http://creativecommons.org/licenses/by/3.0/
ENCODED-BY : http://www.jamendo.com
WCOP : http://creativecommons.org/licenses/by/3.0/
WOAF : http://www.jamendo.com/en/track/1253559
Input #1, ogg, from 'pysolfc-bhs.ogv':
Duration: 00:01:25.02, bitrate: 1606 kb/s
Stream #1:0: Video: theora, yuv420p, 1920x1072 [SAR 1:1 DAR 120:67], 15
fps, 15 tbr, 15 tbn, 15 tbc Metadata:
RECORDMYDESKTOP : 0.3.8.1
ENCODER : Lavf58.12.100
Stream #1:1: Audio: vorbis, 44100 Hz, stereo, fltp, 499 kb/s
Metadata:
ENCODER : Lavf58.12.100
Stream mapping:
Stream #1:0 -> #0:0 (copy)
Stream #0:0 -> #0:1 (vorbis (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
Output #0, ogv, to 'pysolfc-bhs-with-audio.ogv':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: theora, yuv420p, 1920x1072 [SAR 1:1 DAR 120:67],
q=2-31, 15 fps, 15 tbr, 15 tbn, 15 tbc Metadata:
RECORDMYDESKTOP : 0.3.8.1
ENCODER : Lavf58.12.100
Stream #0:1: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp
Metadata:
ARTIST : David Amber
TRACKNUMBER : 3
GENRE : rock
MUSICBRAINZ_ALBUMARTIST: David Amber
ALBUM : David Amber and Friends, Vol. 1
TITLE : Gnarly (feat. Devyn Rush)
DATE : 2015
JAMENDO-TRACK-ID: 1243462
ORGANIZATION : http://www.jamendo.com
PUBLISHER : http://www.jamendo.com
DESCRIPTION : http://www.jamendo.com
LICENSE : http://creativecommons.org/licenses/by/3.0/
COPYRIGHT : http://creativecommons.org/licenses/by/3.0/
ENCODED-BY : http://www.jamendo.com
WCOP : http://creativecommons.org/licenses/by/3.0/
WOAF : http://www.jamendo.com/en/track/1253559
encoder : Lavc58.18.100 libvorbis
[ogg @ 0xc927c0] invalid pts -43592
[ogg @ 0xc927c0] DTS 35 < 288230376151711778 out of order
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552823; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552824; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552825; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552826; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552827; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552828; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552829; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552830; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552831; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552832; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552833; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552834; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552835; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552836; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552837; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552839; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552840; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552841; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552842; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552843; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552844; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552847; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552848; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552850; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552851; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552852; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552853; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552863; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552864; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552865; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552866; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552872; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552873; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552878; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552879; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552880; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552881; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552882; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552883; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552884; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552885; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552886; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552887; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552888; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552889; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552890; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552891; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552892; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552893; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552894; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552895; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552896; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552897; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552898; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552899; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552900; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552901; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552902; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552903; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552904; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
[ogv @ 0xc8d1c0] Non-monotonous DTS in output stream 0:0; previous:
288230376151711808, current: 138350580552905; changing to 288230376151711808.
This may result in incorrect timestamps in the output file. [ogv @ 0xc8d1c0]
Non-monotonous DTS in output stream 0:0; previous: 288230376151711808, current:
138350580552906; changing to 288230376151711808. This may result in incorrect
timestamps in the output file. [ogv @ 0xc8d1c0] Non-monotonous DTS in output
stream 0:0; previous: 288230376151711808, current: 138350580552907; changing to
288230376151711808. This may result in incorrect timestamps in the output file.
=============================
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
https://github.com/shlomif/Freenode-programming-channel-FAQ
If you have the same ideas as everybody else, but have them one week earlier
than everyone else — then you will be hailed as a visionary. But if you have
them five years earlier, you will be named a lunatic. ( Barry Jones )
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the ffmpeg-user
mailing list