Opened 3 years ago

Closed 3 years ago

#4675 closed defect (duplicate)

+genpts doesn't work with -f h264

Reported by: ronag Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffmpeg

-fflags +genpts

-f h264 -i 1.h264 -flags +global_header -c copy 1.mp4 -y

ffmpeg version N-73024-g58d7dde Copyright (c) 2000-2015 the FFmpeg developers

built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libvpx --enable-librtmp --enable-ffplay --enable-libfdk-aac --enable-libopus --enable-libwebp --enable-nonfree --enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 44.101 / 56. 44.101
libavformat 56. 38.101 / 56. 38.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 18.100 / 5. 18.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100

Input #0, h264, from '1.h264':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1200k tbn, 48 tbc

Output #0, mp4, to '1.mp4':

Metadata:

encoder : Lavf56.38.101
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 24 tbr, 1200k tbn, 1200k tbc

Stream mapping:

Stream #0:0 -> #0:0 (copy)

Press [q] to stop, ? for help
[mp4 @ 0x7fc482000600] pts has no value

Last message repeated 119 times

frame= 120 fps=0.0 q=-1.0 Lsize= 1463kB time=00:00:04.87 bitrate=2459.4kbits/s
video:1461kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.113600%

Change History (1)

comment:1 Changed 3 years ago by cehoyos

  • Component changed from ffmpeg to avcodec
  • Keywords h264 added
  • Resolution set to duplicate
  • Status changed from new to closed

This is a duplicate of several tickets (for example #3369) and is a known limitation of our h264 decoder.

Note: See TracTickets for help on using tickets.