[FFmpeg-user] ffmpeg reads cfr as vfr
Felix Muster
felixjan.muster at icloud.com
Wed Jan 9 05:51:35 EET 2019
Hello,
I'm trying to mux a video stream embedded in mkv from that mkv container to
mp4 container (ffmpeg -r 24000/1001 -i test.mkv -map 0:0 -c copy test.mp4).
Video stream has cfr 24000/1001 but ffmpeg thinks it is vfr. I tried the
solution from here https://trac.ffmpeg.org/ticket/4768 and force framerate
with -r. But that don't work. When I try to mux the raw h264 stream (ffmpeg
-r 24000/1001 -i video.264 -c copy test.mp4) I get this message: "pts has no
value time=00:02:38.19 bitrate=1312.4kbits/s speed= 154x" many times. Can
you help me?
Best regards,
Felix
ffmpeg -r 24000/1001 -i test.mkv -map 0:0 -c copy test.mp4
ffmpeg version N-92932-g038d291b70 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --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-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
libavutil 56. 25.100 / 56. 25.100
libavcodec 58. 43.100 / 58. 43.100
libavformat 58. 25.100 / 58. 25.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 46.101 / 7. 46.101
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, matroska,webm, from 'test.mkv':
Metadata:
title : Test
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2019-01-07T18:15:21.000000Z
Duration: 02:01:01.55, start: 0.000000, bitrate: 20800 kb/s
Chapter #0:0: start 0.000000, end 241.282000
Metadata:
title : (01)00:00:00:000
Chapter #0:1: start 241.282000, end 808.349000
Metadata:
title : (02)00:04:01:282
Chapter #0:2: start 808.349000, end 1154.194000
Metadata:
title : (03)00:13:28:349
Chapter #0:3: start 1154.194000, end 1538.537000
Metadata:
title : (04)00:19:14:194
Chapter #0:4: start 1538.537000, end 2034.574000
Metadata:
title : (05)00:25:38:537
Chapter #0:5: start 2034.574000, end 2278.567000
Metadata:
title : (06)00:33:54:574
Chapter #0:6: start 2278.567000, end 2765.095000
Metadata:
title : (07)00:37:58:567
Chapter #0:7: start 2765.095000, end 2829.660000
Metadata:
title : (08)00:46:05:095
Chapter #0:8: start 2829.660000, end 3309.014000
Metadata:
title : (09)00:47:09:660
Chapter #0:9: start 3309.014000, end 3840.336000
Metadata:
title : (10)00:55:09:014
Chapter #0:10: start 3840.336000, end 4142.388000
Metadata:
title : (11)01:04:00:336
Chapter #0:11: start 4142.388000, end 4515.469000
Metadata:
title : (12)01:09:02:388
Chapter #0:12: start 4515.469000, end 4876.079000
Metadata:
title : (13)01:15:15:469
Chapter #0:13: start 4876.079000, end 5259.295000
Metadata:
title : (14)01:21:16:079
Chapter #0:14: start 5259.295000, end 5674.877000
Metadata:
title : (15)01:27:39:295
Chapter #0:15: start 5674.877000, end 5956.408000
Metadata:
title : (16)01:34:34:877
Chapter #0:16: start 5956.408000, end 6418.412000
Metadata:
title : (17)01:39:16:408
Chapter #0:17: start 6418.412000, end 6740.024000
Metadata:
title : (18)01:46:58:412
Chapter #0:18: start 6740.024000, end 7074.942000
Metadata:
title : (19)01:52:20:024
Chapter #0:19: start 7074.942000, end 7261.547000
Metadata:
title : (20)01:57:54:942
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive),
1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
(default)
Metadata:
BPS : 16001624
BPS-eng : 16001624
DURATION : 02:01:01.171000000
DURATION-eng : 02:01:01.171000000
NUMBER_OF_FRAMES: 174094
NUMBER_OF_FRAMES-eng: 174094
NUMBER_OF_BYTES : 14523816039
NUMBER_OF_BYTES-eng: 14523816039
_STATISTICS_WRITING_APP: DVDFab 11.0.1.0
_STATISTICS_WRITING_APP-eng: DVDFab 11.0.1.0
_STATISTICS_WRITING_DATE_UTC: 2019-01-07 18:15:21
_STATISTICS_WRITING_DATE_UTC-eng: 2019-01-07 18:15:21
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(deu): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p
(default)
Metadata:
BPS : 2398247
BPS-eng : 2398247
DURATION : 02:01:01.547000000
DURATION-eng : 02:01:01.547000000
NUMBER_OF_FRAMES: 680770
NUMBER_OF_FRAMES-eng: 680770
NUMBER_OF_BYTES : 2176873544
NUMBER_OF_BYTES-eng: 2176873544
_STATISTICS_WRITING_APP: DVDFab 11.0.1.0
_STATISTICS_WRITING_APP-eng: DVDFab 11.0.1.0
_STATISTICS_WRITING_DATE_UTC: 2019-01-07 18:15:21
_STATISTICS_WRITING_DATE_UTC-eng: 2019-01-07 18:15:21
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(kor): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p
Metadata:
BPS : 2395235
BPS-eng : 2395235
DURATION : 02:01:01.547000000
DURATION-eng : 02:01:01.547000000
NUMBER_OF_FRAMES: 680770
NUMBER_OF_FRAMES-eng: 680770
NUMBER_OF_BYTES : 2174139552
NUMBER_OF_BYTES-eng: 2174139552
_STATISTICS_WRITING_APP: DVDFab 11.0.1.0
_STATISTICS_WRITING_APP-eng: DVDFab 11.0.1.0
_STATISTICS_WRITING_DATE_UTC: 2019-01-07 18:15:21
_STATISTICS_WRITING_DATE_UTC-eng: 2019-01-07 18:15:21
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, mp4, to 'test.mp4':
Metadata:
title : Test
encoder : Lavf58.25.100
Chapter #0:0: start 0.000000, end 241.282000
Metadata:
title : (01)00:00:00:000
Chapter #0:1: start 241.282000, end 808.349000
Metadata:
title : (02)00:04:01:282
Chapter #0:2: start 808.349000, end 1154.194000
Metadata:
title : (03)00:13:28:349
Chapter #0:3: start 1154.194000, end 1538.537000
Metadata:
title : (04)00:19:14:194
Chapter #0:4: start 1538.537000, end 2034.574000
Metadata:
title : (05)00:25:38:537
Chapter #0:5: start 2034.574000, end 2278.567000
Metadata:
title : (06)00:33:54:574
Chapter #0:6: start 2278.567000, end 2765.095000
Metadata:
title : (07)00:37:58:567
Chapter #0:7: start 2765.095000, end 2829.660000
Metadata:
title : (08)00:46:05:095
Chapter #0:8: start 2829.660000, end 3309.014000
Metadata:
title : (09)00:47:09:660
Chapter #0:9: start 3309.014000, end 3840.336000
Metadata:
title : (10)00:55:09:014
Chapter #0:10: start 3840.336000, end 4142.388000
Metadata:
title : (11)01:04:00:336
Chapter #0:11: start 4142.388000, end 4515.469000
Metadata:
title : (12)01:09:02:388
Chapter #0:12: start 4515.469000, end 4876.079000
Metadata:
title : (13)01:15:15:469
Chapter #0:13: start 4876.079000, end 5259.295000
Metadata:
title : (14)01:21:16:079
Chapter #0:14: start 5259.295000, end 5674.877000
Metadata:
title : (15)01:27:39:295
Chapter #0:15: start 5674.877000, end 5956.408000
Metadata:
title : (16)01:34:34:877
Chapter #0:16: start 5956.408000, end 6418.412000
Metadata:
title : (17)01:39:16:408
Chapter #0:17: start 6418.412000, end 6740.024000
Metadata:
title : (18)01:46:58:412
Chapter #0:18: start 6740.024000, end 7074.942000
Metadata:
title : (19)01:52:20:024
Chapter #0:19: start 7074.942000, end 7261.547000
Metadata:
title : (20)01:57:54:942
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr,
24k tbn, 23.98 tbc (default)
Metadata:
BPS : 16001624
BPS-eng : 16001624
DURATION : 02:01:01.171000000
DURATION-eng : 02:01:01.171000000
NUMBER_OF_FRAMES: 174094
NUMBER_OF_FRAMES-eng: 174094
NUMBER_OF_BYTES : 14523816039
NUMBER_OF_BYTES-eng: 14523816039
_STATISTICS_WRITING_APP: DVDFab 11.0.1.0
_STATISTICS_WRITING_APP-eng: DVDFab 11.0.1.0
_STATISTICS_WRITING_DATE_UTC: 2019-01-07 18:15:21
_STATISTICS_WRITING_DATE_UTC-eng: 2019-01-07 18:15:21
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 2599 fps=0.0 q=-1.0 size= 166657kB time=00:01:48.31
bitrate=12604.2kbits/s speed= 210x
frame= 5196 fps=5047 q=-1.0 size= 350977kB time=00:03:36.63
bitrate=13272.2kbits/s speed= 210x
frame= 7771 fps=5032 q=-1.0 size= 573441kB time=00:05:24.03
bitrate=14497.4kbits/s speed= 210x
frame=10445 fps=5072 q=-1.0 size= 790273kB time=00:07:15.56
bitrate=14863.4kbits/s speed= 212x
frame=12360 fps=4802 q=-1.0 size= 1015553kB time=00:08:35.43
bitrate=16140.6kbits/s speed=200x
frame=13313 fps=4310 q=-1.0 size= 1090561kB time=00:09:15.18
bitrate=16091.8kbits/s speed= 180x
frame=15070 fps=4182 q=-1.0 size= 1192449kB time=00:10:28.46
bitrate=15543.6kbits/s speed= 174x
frame=17291 fps=4198 q=-1.0 size= 1331969kB time=00:12:01.09
bitrate=15131.8kbits/s speed= 175x
frame=18083 fps=3903 q=-1.0 size= 1388801kB time=00:12:34.12
bitrate=15086.4kbits/s speed= 163x
frame=19544 fps=3796 q=-1.0 size= 1489665kB time=00:13:35.06
bitrate=14972.2kbits/s speed= 158x
frame=21765 fps=3843 q=-1.0 size= 1612289kB time=00:15:07.69
bitrate=14550.9kbits/s speed= 160x
frame=23847 fps=3860 q=-1.0 size= 1750017kB time=00:16:34.53
bitrate=14414.9kbits/s speed= 161x
frame=24455 fps=3654 q=-1.0 size= 1784065kB time=00:16:59.89
bitrate=14330.0kbits/s speed= 152x
frame=24978 fps=3466 q=-1.0 size= 1805313kB time=00:17:21.70
bitrate=14197.0kbits/s speed= 145x
frame=26715 fps=3460 q=-1.0 size= 1920257kB time=00:18:34.15
bitrate=14119.0kbits/s speed= 144x
frame=28830 fps=3500 q=-1.0 size= 2048001kB time=00:20:02.36
bitrate=13953.5kbits/s speed= 146x
frame=29283 fps=3346 q=-1.0 size= 2075649kB time=00:20:21.26
bitrate=13923.1kbits/s speed= 140x
frame=31034 fps=3354 q=-1.0 size= 2184961kB time=00:21:34.29
bitrate=13829.3kbits/s speed= 140x
frame=32892 fps=3368 q=-1.0 size= 2335489kB time=00:22:51.78
bitrate=13947.0kbits/s speed= 140x
frame=34613 fps=3367 q=-1.0 size= 2465793kB time=00:24:03.56
bitrate=13993.0kbits/s speed= 140x
frame=35009 fps=3243 q=-1.0 size= 2498305kB time=00:24:20.08
bitrate=14017.1kbits/s speed= 135x
frame=35440 fps=3133 q=-1.0 size= 2535681kB time=00:24:38.06
bitrate=14053.8kbits/s speed= 131x
frame=35901 fps=3036 q=-1.0 size= 2566913kB time=00:24:57.28
bitrate=14044.2kbits/s speed= 127x
frame=36288 fps=2941 q=-1.0 size= 2595585kB time=00:25:13.42
bitrate=14049.6kbits/s speed= 123x
frame=37339 fps=2905 q=-1.0 size= 2665729kB time=00:25:57.26
bitrate=14023.1kbits/s speed= 121x
frame=39226 fps=2937 q=-1.0 size= 2809857kB time=00:27:15.96
bitrate=14070.2kbits/s speed= 122x
frame=41066 fps=2961 q=-1.0 size= 2944257kB time=00:28:32.71
bitrate=14082.6kbits/s speed= 123x
frame=42627 fps=2963 q=-1.0 size= 3052033kB time=00:29:37.81
bitrate=14063.4kbits/s speed= 124x
frame=43049 fps=2889 q=-1.0 size= 3100161kB time=00:29:55.41
bitrate=14145.2kbits/s speed= 120x
frame=43400 fps=2815 q=-1.0 size= 3130625kB time=00:30:10.05
bitrate=14168.6kbits/s speed= 117x
frame=43770 fps=2748 q=-1.0 size= 3168769kB time=00:30:25.49
bitrate=14220.0kbits/s speed= 115x
frame=43849 fps=2737 q=-1.0 Lsize= 3176103kB time=00:30:28.78
bitrate=14227.3kbits/s speed= 114x
video:3175433kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.021115%
Exiting normally, received signal 2.
ffmpeg -r 24000/1001 -i video.264 -c copy test.mp4
ffmpeg version N-92932-g038d291b70 Copyright (c) 2000-2019 the FFmpeg
developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --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-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
libavutil 56. 25.100 / 56. 25.100
libavcodec 58. 43.100 / 58. 43.100
libavformat 58. 25.100 / 58. 25.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 46.101 / 7. 46.101
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[h264 @ 00000000004f2cc0] Stream #0: not enough frames to estimate rate;
consider increasing probesize
Input #0, h264, from 'video.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive),
1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
Output #0, mp4, to 'test.mp4':
Metadata:
encoder : Lavf58.25.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709,
progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr,
24k tbn, 23.98 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0000000002f90980] Timestamps are unset in a packet for stream 0. This
is deprecated and will stop working in the future. Fix your code to set the
timestamps properly
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 2019 times
frame= 2020 fps=0.0 q=-1.0 size= 114688kB time=00:01:24.16
bitrate=11162.6kbits/s speed= 163x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1949 times
frame= 3970 fps=3856 q=-1.0 size= 269056kB time=00:02:45.49
bitrate=13318.0kbits/s speed= 161x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1982 times
frame= 5953 fps=3855 q=-1.0 size= 421376kB time=00:04:08.20
bitrate=13907.4kbits/s speed= 161x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1968 times
frame= 7922 fps=3847 q=-1.0 size= 585984kB time=00:05:30.33
bitrate=14532.1kbits/s speed= 160x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1397 times
frame= 9320 fps=3621 q=-1.0 size= 697344kB time=00:06:28.63
bitrate=14699.1kbits/s speed= 151x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1320 times
frame=10641 fps=3445 q=-1.0 size= 808448kB time=00:07:23.73
bitrate=14925.1kbits/s speed= 144x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1432 times
frame=12074 fps=3351 q=-1.0 size= 966400kB time=00:08:23.50
bitrate=15723.3kbits/s speed= 140x
[mp4 @ 0000000002f90980] pts has no value
Last message repeated 1678 times
frame=13753 fps=3378 q=-1.0 Lsize= 1112380kB time=00:09:33.53
bitrate=15888.6kbits/s speed= 141x
video:1112307kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.006569%
Exiting normally, received signal 2.
More information about the ffmpeg-user
mailing list