Opened 12 years ago
Last modified 4 years ago
#1598 open defect
Muxing raw h264 into mpegts (and mkv) fails.
Reported by: | Mista_D | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | mpegts h264 av_interleaved_write_frame |
Cc: | eml+ffmpeg@tupil.com, zagser168@yandex.ru, v0qiu24elio.ldb63qpfmjrkkiv9el@gmail.com, ffmpegbugtrac@wmchris.de, ccom@randomderp.com, ffmpeg@tmm1.net | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Can not multiplex h264 and AAC into MPEG2-TS container.
- Encode a file
ffmpeg -i $source_file -acodec libfaac -vcodec libx264 test.ts
- Demux:
ffmpeg -i test.ts -acodec copy 1.aac -vcodec copy 1.h264
- Attempt to mux back:
ffmpeg -i 1.aac -i 1.h264 -acodec copy -vcodec copy mux.ts
#3 Fails with error:
[mpegts @ 0x124de2a0] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input
FFmpeg version 0.11, gcc 4.1.2 20080704 (Red Hat 4.1.2-52).
Running Centos 5.8 on 64bit 12 core Intel.
Attachments (2)
Change History (23)
by , 12 years ago
comment:1 by , 12 years ago
Keywords: | av_interleaved_write_frame added; muxer removed |
---|
comment:2 by , 12 years ago
./ffmpeg -i movie.mpg -t 10 -s 320x240 -acodec libfaac -vcodec libx264 10.ts
ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx
libavutil 51. 66.100 / 51. 66.100
libavcodec 54. 48.100 / 54. 48.100
libavformat 54. 22.100 / 54. 22.100
libavfilter 3. 5.101 / 3. 5.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from 'movie.mpg':
Duration: 00:06:27.52, start: 0.646122, bitrate: 15023 kb/s
Program 1
Stream #0:0[0x1e1]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 13966 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x1e2](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
[libx264 @ 0x106c2d80] using SAR=4/3
[libx264 @ 0x106c2d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x106c2d80] profile High, level 1.3
[mpegts @ 0x106cd600] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '10.ts':
Metadata:
encoder : Lavf54.22.100
Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 90k tbn, 29.97 tbc
Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, ? for help
frame= 300 fps=125 q=32766.0 Lsize= 535kB time=00:00:09.94 bitrate= 440.8kbits/s dup=137 drop=0
video:295kB audio:155kB subtitle:0 global headers:0kB muxing overhead 18.794345%
[libx264 @ 0x106c2d80] frame I:4 Avg QP:19.19 size: 3744
[libx264 @ 0x106c2d80] frame P:162 Avg QP:27.61 size: 1627
[libx264 @ 0x106c2d80] frame B:134 Avg QP:29.67 size: 174
[libx264 @ 0x106c2d80] consecutive B-frames: 31.7% 25.3% 3.0% 40.0%
[libx264 @ 0x106c2d80] mb I I16..4: 47.2% 32.1% 20.8%
[libx264 @ 0x106c2d80] mb P I16..4: 3.7% 9.3% 4.2% P16..4: 21.1% 11.0% 5.0% 0.0% 0.0% skip:45.6%
[libx264 @ 0x106c2d80] mb B I16..4: 0.1% 0.1% 0.1% B16..8: 10.1% 2.2% 0.7% direct: 0.5% skip:86.1% L0:39.7% L1:50.4% BI: 9.9%
[libx264 @ 0x106c2d80] 8x8 transform intra:51.0% inter:63.4%
[libx264 @ 0x106c2d80] coded y,uvDC,uvAC intra: 57.2% 71.7% 45.0% inter: 9.4% 9.0% 1.0%
[libx264 @ 0x106c2d80] i16 v,h,dc,p: 34% 25% 5% 36%
[libx264 @ 0x106c2d80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 14% 5% 10% 12% 8% 8% 7%
[libx264 @ 0x106c2d80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 15% 5% 8% 10% 5% 7% 4%
[libx264 @ 0x106c2d80] i8c dc,h,v,p: 44% 19% 23% 14%
[libx264 @ 0x106c2d80] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x106c2d80] ref P L0: 67.1% 18.9% 8.9% 5.1%
[libx264 @ 0x106c2d80] ref B L0: 91.2% 8.6% 0.2%
[libx264 @ 0x106c2d80] ref B L1: 99.2% 0.8%
[libx264 @ 0x106c2d80] kb/s:241.33
./ffmpeg -i 10.ts -acodec copy -vn 10.aac
ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx
libavutil 51. 66.100 / 51. 66.100
libavcodec 54. 48.100 / 54. 48.100
libavformat 54. 22.100 / 54. 22.100
libavfilter 3. 5.101 / 3. 5.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x433a7a0] max_analyze_duration 5000000 reached at 5005000
Input #0, mpegts, from '10.ts':
Duration: 00:00:09.99, start: 1.378667, bitrate: 438 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 320x240 [SAR 4:3 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 247 kb/s
Output #0, adts, to '10.aac':
Metadata:
encoder : Lavf54.22.100
Stream #0:0(eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 247 kb/s
Stream mapping:
Press [q] to stop, ? for help
size= 155kB time=00:00:10.02 bitrate= 127.0kbits/s
video:0kB audio:155kB subtitle:0 global headers:0kB muxing overhead 0.000000%
./ffmpeg -i 10.ts -vcodec copy -an 10.h264
ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx
libavutil 51. 66.100 / 51. 66.100
libavcodec 54. 48.100 / 54. 48.100
libavformat 54. 22.100 / 54. 22.100
libavfilter 3. 5.101 / 3. 5.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x1bc5d7a0] max_analyze_duration 5000000 reached at 5005000
Input #0, mpegts, from '10.ts':
Duration: 00:00:09.99, start: 1.378667, bitrate: 438 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 320x240 [SAR 4:3 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x101](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16, 247 kb/s
Output #0, h264, to '10.h264':
Metadata:
encoder : Lavf54.22.100
Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
Stream mapping:
Press [q] to stop, ? for help
frame= 300 fps=0.0 q=-1.0 Lsize= 297kB time=00:00:09.96 bitrate= 243.9kbits/s
video:297kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%
./ffmpeg -i 10.aac -i 10.h264 -acodec copy -vcodec copy new_mux.ts
ffmpeg version 0.11.1.git-bc42682 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 3 2012 09:45:37 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx
libavutil 51. 66.100 / 51. 66.100
libavcodec 54. 48.100 / 54. 48.100
libavformat 54. 22.100 / 54. 22.100
libavfilter 3. 5.101 / 3. 5.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[aac @ 0x165fa7a0] max_analyze_duration 5000000 reached at 5013333
[aac @ 0x165fa7a0] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from '10.aac':
Duration: 00:00:06.30, bitrate: 202 kb/s
Stream #0:0: Audio: aac, 48000 Hz, stereo, s16, 202 kb/s
[h264 @ 0x16616ae0] max_analyze_duration 5000000 reached at 5011233
[h264 @ 0x16616ae0] Estimating duration from bitrate, this may be inaccurate
Input #1, h264, from '10.h264':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: h264 (High), yuv420p, 320x240 [SAR 4:3 DAR 16:9], 29.50 fps, 29.97 tbr, 1200k tbn, 59.94 tbc
[mpegts @ 0x16601500] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'new_mux.ts':
Metadata:
encoder : Lavf54.22.100
Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=2-31, 29.50 fps, 90k tbn, 29.97 tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, 202 kb/s
Stream mapping:
Press [q] to stop, ? for help
[mpegts @ 0x16601500] first pts value must set
av_interleaved_write_frame(): Invalid data found when processing input
comment:3 by , 12 years ago
Keywords: | h264 added |
---|---|
Priority: | important → normal |
Reproduced by developer: | set |
Status: | new → open |
Summary: | MUX fail. X264 + AAC to TS. → muxing raw h264 into mpegts (and mkv) fails |
Version: | unspecified → git-master |
$ ffmpeg -i out.h264 -vcodec copy out.ts ffmpeg version N-43170-gd84dd35 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 3 2012 21:14:14 with gcc 4.3.2 (GCC) configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs --enable-x11grab --enable-libass --enable-nonfree --enable-libfaac --enable-libopus --enable-libfdk-aac libavutil 51. 66.100 / 51. 66.100 libavcodec 54. 48.100 / 54. 48.100 libavformat 54. 22.100 / 54. 22.100 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 5.102 / 3. 5.102 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [h264 @ 0x9118500] max_analyze_duration 5000000 reached at 5011233 [h264 @ 0x9118500] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from 'out.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 176x144 [SAR 16:11 DAR 16:9], 29.50 fps, 29.97 tbr, 1200k tbn, 59.94 tbc [mpegts @ 0x9112960] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'out.ts': Metadata: encoder : Lavf54.22.100 Stream #0:0: Video: h264, yuv420p, 176x144 [SAR 16:11 DAR 16:9], q=2-31, 29.50 fps, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mpegts @ 0x9112960] first pts value must set av_interleaved_write_frame(): Invalid data found when processing input
by , 12 years ago
comment:4 by , 12 years ago
Attempted demuxing with MP4Box instead of FFmpeg:
- encode with FFmpeg.
- demux with FFmpeg.
- remux with FFmpeg fails.
2a. demux with MP4box.
3a. remux with FFmpeg successful.
=====step1=====
ffmpeg1 -threads 0 -i ~/ava/7.ts -threads 0 -t 10 -an 10.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 9 2012 11:06:13 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/home/dennisp/010_64 --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx --disable-encoder=ass --disable-demuxer=ass --disable-muxer=ass --disable-decoder=ass
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mpegts, from '/home/dennisp/ava/7.ts':
Duration: 00:00:19.87, start: 1.400000, bitrate: 19968 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 104857 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 384 kb/s
File '10.mp4' already exists. Overwrite ? [y/N] y
using SAR=1/1
[libx264 @ 0x1aed8840] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x1aed8840] profile High, level 3.1
[libx264 @ 0x1aed8840] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '10.mp4':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc
Stream mapping:
Press [q] to stop, ? for help
frame= 240 fps= 24 q=-1.0 Lsize= 6089kB time=00:00:09.92 bitrate=5025.2kbits/s
video:6087kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.040960%
[libx264 @ 0x1aed8840] frame I:3 Avg QP:22.78 size: 95179
[libx264 @ 0x1aed8840] frame P:204 Avg QP:25.42 size: 27018
[libx264 @ 0x1aed8840] frame B:33 Avg QP:27.53 size: 13178
[libx264 @ 0x1aed8840] consecutive B-frames: 72.5% 27.5% 0.0% 0.0%
[libx264 @ 0x1aed8840] mb I I16..4: 5.2% 86.6% 8.1%
[libx264 @ 0x1aed8840] mb P I16..4: 1.4% 8.8% 0.7% P16..4: 49.7% 22.5% 10.0% 0.0% 0.0% skip: 6.9%
[libx264 @ 0x1aed8840] mb B I16..4: 0.3% 1.4% 0.1% B16..8: 48.2% 11.5% 2.8% direct: 4.4% skip:31.2% L0:38.9% L1:45.2% BI:15.9%
[libx264 @ 0x1aed8840] 8x8 transform intra:81.2% inter:76.3%
[libx264 @ 0x1aed8840] coded y,uvDC,uvAC intra: 69.9% 92.6% 57.3% inter: 39.9% 56.1% 9.8%
[libx264 @ 0x1aed8840] i16 v,h,dc,p: 31% 18% 11% 39%
[libx264 @ 0x1aed8840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 16% 24% 6% 8% 7% 8% 6% 8%
[libx264 @ 0x1aed8840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 16% 14% 6% 12% 10% 10% 6% 6%
[libx264 @ 0x1aed8840] i8c dc,h,v,p: 50% 19% 19% 12%
[libx264 @ 0x1aed8840] Weighted P-Frames: Y:1.5% UV:0.5%
[libx264 @ 0x1aed8840] ref P L0: 69.6% 24.4% 4.1% 1.8% 0.1%
[libx264 @ 0x1aed8840] ref B L0: 95.5% 4.5%
[libx264 @ 0x1aed8840] kb/s:4980.75
=====step2=====
ffmpeg1 -i 10.mp4 -codec copy ffdemux.h264
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 9 2012 11:06:13 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/home/dennisp/010_64 --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx --disable-encoder=ass --disable-demuxer=ass --disable-muxer=ass --disable-decoder=ass
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '10.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.29.104
Duration: 00:00:10.01, start: 0.000000, bitrate: 4983 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4981 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
handler_name : VideoHandler
Output #0, h264, to 'ffdemux.h264':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.29.104
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 4981 kb/s, 23.98 fps, 90k tbn, 23.98 tbc
Metadata:
handler_name : VideoHandler
Stream mapping:
Press [q] to stop, ? for help
frame= 240 fps=0.0 q=-1.0 Lsize= 6087kB time=00:00:09.92 bitrate=5023.1kbits/s
video:6087kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%
=====step3=====
ffmpeg1 -i ffdemux.h264 -codec copy ffremux.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 9 2012 11:06:13 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/home/dennisp/010_64 --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx --disable-encoder=ass --disable-demuxer=ass --disable-muxer=ass --disable-decoder=ass
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
ffdemux.h264: Invalid data found when processing input
=====step2a=====
MP4Box -raw 1 10.mp4 -out mp4box_demux.h264
Extracting MPEG-4 AVC-H264 stream to h264
=====step3a=====
ffmpeg1 -i mp4box_demux.h264 -codec copy ff_remux.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 9 2012 11:06:13 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/home/dennisp/010_64 --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --enable-libfaac --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx --disable-encoder=ass --disable-demuxer=ass --disable-muxer=ass --disable-decoder=ass
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[h264 @ 0x30077a0] max_analyze_duration 5000000 reached at 5005000
[h264 @ 0x30077a0] Estimating duration from bitrate, this may be inaccurate
Input #0, h264, from 'mp4box_demux.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1200k tbn, 47.95 tbc
Output #0, mp4, to 'ff_remux.mp4':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1200k tbn, 1200k tbc
Stream mapping:
Press [q] to stop, ? for help
[mp4 @ 0x300f260] pts has no value
Last message repeated 239 times
frame= 240 fps=0.0 q=-1.0 Lsize= 6090kB time=00:00:09.88 bitrate=5048.0kbits/s
video:6087kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.054389%
===========END=============
comment:5 by , 12 years ago
Summary: | muxing raw h264 into mpegts (and mkv) fails → Demuxing raw h264 from mpegts (and mkv, mp4) fails. |
---|---|
Version: | git-master → 1.0 |
comment:6 by , 12 years ago
Seems to be fixed as per 1.0.git-099786a, please close the ticket. Thank you!
comment:7 by , 12 years ago
$ ffmpeg -i out.h264 -vcodec copy out.ts ffmpeg version N-46282-g099786a Copyright (c) 2000-2012 the FFmpeg developers built on Nov 2 2012 12:31:00 with gcc 4.7 (SUSE Linux) configuration: libavutil 52. 1.100 / 52. 1.100 libavcodec 54. 70.100 / 54. 70.100 libavformat 54. 35.100 / 54. 35.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 21.106 / 3. 21.106 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 16.100 / 0. 16.100 [h264 @ 0x320b280] max_analyze_duration 5000000 reached at 5011233 [h264 @ 0x320b280] Estimating duration from bitrate, this may be inaccurate Input #0, h264, from 'out.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 176x144 [SAR 16:11 DAR 16:9], 29.50 fps, 29.97 tbr, 1200k tbn, 59.94 tbc Output #0, mpegts, to 'out.ts': Metadata: encoder : Lavf54.35.100 Stream #0:0: Video: h264, yuv420p, 176x144 [SAR 16:11 DAR 16:9], q=2-31, 29.50 fps, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mpegts @ 0x3225f20] first pts value must set av_interleaved_write_frame(): Invalid data found when processing input
comment:8 by , 12 years ago
Summary: | Demuxing raw h264 from mpegts (and mkv, mp4) fails. → Muxing raw h264 into mpegts (and mkv) fails. |
---|---|
Version: | 1.0 → git-master |
comment:9 by , 12 years ago
I think it has nothing to do with ts (or mkv) muxers. The problem is with the raw h264 reader. It always returns AV_NOPTS_VALUE for pts/dts when reading raw h264 even if you specify frame rate. Somewhere down the chain it has to set proper timestamps based on specified frame rate and bit-stream flags
comment:10 by , 12 years ago
Cc: | added |
---|
comment:11 by , 12 years ago
I'm facing the same problem when trying to remux raw H264 video into a TS file. I've specified genpts and the frame rate:
ffmpeg -probesize 100M -analyzeduration 300M -fflags +genpts -y -r 25 -f h264 -i "H264CopyRemux No Audio_VIDEO" -i "H264CopyRemux No Audio_AUDIO0" -acodec copy -vcodec copy -f mpegts "H264CopyRemux No Audio.ts" --> ffmpeg version N-48065-g6375318 Copyright (c) 2000-2012 the FFmpeg developers --> built on Dec 21 2012 09:06:30 with gcc 4.7.2 (GCC) --> configuration: --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --enable-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --enable-runtime-cpudetect --> libavutil 52. 12.100 / 52. 12.100 --> libavcodec 54. 81.100 / 54. 81.100 --> libavformat 54. 49.102 / 54. 49.102 --> libavdevice 54. 3.102 / 54. 3.102 --> libavfilter 3. 29.100 / 3. 29.100 --> libswscale 2. 1.103 / 2. 1.103 --> libswresample 0. 17.102 / 0. 17.102 --> libpostproc 52. 2.100 / 52. 2.100 --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS referenced --> [h264 @ 003ed680] non-existing SPS 0 referenced in buffering period --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] non-existing PPS 0 referenced --> [h264 @ 003ed680] decode_slice_header error --> [h264 @ 003ed680] no frame! --> [h264 @ 003ed680] mmco: unref short failure --> Last message repeated 3 times --> [h264 @ 003ed680] Missing reference picture, default is 65592 --> Last message repeated 5 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] reference picture missing during reorder --> Last message repeated 1 times --> [h264 @ 003ed680] Missing reference picture, default is 65593 --> Last message repeated 2 times --> [h264 @ 003ed680] mmco: unref short failure --> Last message repeated 1 times --> [h264 @ 003ef4a0] Stream #0: not enough frames to estimate rate; consider increasing probesize --> [h264 @ 003ef4a0] Estimating duration from bitrate, this may be inaccurate --> Input #0, h264, from 'H264CopyRemux No Audio_VIDEO': --> Duration: N/A, bitrate: N/A --> Video duration=0 --> Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc --> [aac_latm @ 036101c0] initializing latmctx --> [loas @ 09cef800] max_analyze_duration 5000000 reached at 5013333 --> [loas @ 09cef800] Estimating duration from bitrate, this may be inaccurate --> Input #1, loas, from 'H264CopyRemux No Audio_AUDIO0': --> Duration: N/A, bitrate: N/A --> Video duration=0 --> Stream #1:0: Audio: aac_latm, 48000 Hz, stereo, fltp --> Output #0, mpegts, to 'H264CopyRemux No Audio.ts': --> Metadata: --> encoder : Lavf54.49.102 --> Stream #0:0: Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 90k tbn, 25 tbc --> Stream #0:1: Audio: aac_latm, 48000 Hz, stereo --> Stream mapping: --> Stream #0:0 -> #0:0 (copy) --> Stream #1:0 -> #0:1 (copy) --> Press [q] to stop, [?] for help --> [mpegts @ 03e6a920] first pts value must set --> av_interleaved_write_frame(): Invalid data found when processing input
comment:12 by , 12 years ago
If you believe that your sample is "better" in any way than the sample attached to this ticket please upload.
comment:13 by , 11 years ago
Cc: | added |
---|
comment:14 by , 11 years ago
Reproduced with FFmpeg 2.0.2
- ffmpeg -s 176x144 -f rawvideo -pix_fmt yuv420p -r 25 -i /dev/urandom -ar 32000 -ac 1 -f s16le -i /dev/urandom -t 10 -c:v libx264 -c:a libfaac noise.ts
- ffmpeg -i noise.ts -c:v copy noise.h264 -c:a copy noise.aac
- ffmpeg -i noise.h264 -i noise.aac -c copy remuxed.ts
Same error:
ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 23 2013 17:38:46 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
configuration: --prefix=/ff64 --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libfaac --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-avdevice --extra-ldflags=-static --disable-shared --enable-bzlib --enable-zlib --extra-libs='-lx264 -lxvidcore -lmp3lame -lpthread -lm -lbz2 -lz -lpthread -lvpx -lass -lfontconfig -lexpat -lfreetype -lfaac' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-libvpx --enable-libass --enable-version3 --enable-nonfree --enable-libfreetype
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, h264, from 'noise.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 176x144, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[aac @ 0xb1b9980] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'noise.aac':
Duration: 00:00:09.81, bitrate: 67 kb/s
Stream #1:0: Audio: aac, 32000 Hz, mono, fltp, 67 kb/s
Output #0, mpegts, to 'remuxed.ts':
Metadata:
encoder : Lavf55.12.100
Stream #0:0: Video: h264, yuv420p, 176x144, q=2-31, 25 fps, 90k tbn, 25 tbc
Stream #0:1: Audio: aac, 32000 Hz, mono, 67 kb/s
Stream mapping:
Press [q] to stop, ? for help
[mpegts @ 0xb143be0] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input
comment:16 by , 8 years ago
I have noticed the same behaviour with 3.2-static (obtained from https://www.johnvansickle.com/ffmpeg/)
However i have found that if I convert the hevc ES to mp4 and then mux the mp4 to mpegts it works.
Below is the console output for the two scenarios.
Mux to mpegts direct from ES (fails as above):
./ffmpeg -i ~/ES_FILES/hevc_testpattern.265 -c:v copy -f mpegts -muxrate 10M -pcr_period 35 -mpegts_pmt_start_pid 0x50 -mpegts_start_pid 0x51 ~/ES_FILES/hevc_testpattern.ts -y
ffmpeg version 3.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-3) 20161019
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libebur128 --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, hevc, from '/home/dvt/ES_FILES/hevc_testpattern.265':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 1200k tbn, 50 tbc
Output #0, mpegts, to '/home/dvt/ES_FILES/hevc_testpattern.ts':
Metadata:
encoder : Lavf57.56.100
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 90k tbn, 1200k tbc
Stream mapping:
Press [q] to stop, ? for help
[mpegts @ 0x5369360] 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
[mpegts @ 0x5369360] first pts value must be set
av_interleaved_write_frame(): Invalid data found when processing input
frame= 1 fps=0.0 q=-1.0 Lsize= 0kB time=-00:00:00.03 bitrate= -0.0kbits/s speed=N/A
video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
Mux to mp4 and then to mpegts (works!):
./ffmpeg -i ~/ES_FILES/hevc_testpattern.265 -c:v copy ~/ES_FILES/hevc_testpattern.mp4 -yffmpeg version 3.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-3) 20161019
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libebur128 --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, hevc, from '/home/dvt/ES_FILES/hevc_testpattern.265':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 1200k tbn, 50 tbc
Output #0, mp4, to '/home/dvt/ES_FILES/hevc_testpattern.mp4':
Metadata:
encoder : Lavf57.56.100
Stream #0:0: Video: hevc (Main 10) ([35][0][0][0] / 0x0023), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 1200k tbn, 1200k tbc
Stream mapping:
Press [q] to stop, ? for help
[mp4 @ 0x4ee8300] 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 @ 0x4ee8300] pts has no value
Last message repeated 205 times
frame= 206 fps=0.0 q=-1.0 Lsize= 222kB time=00:00:04.08 bitrate= 445.5kbits/s speed=1.46e+03x
video:220kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.861721%
./ffmpeg -i ~/ES_FILES/hevc_testpattern.mp4 -c:v copy -f mpegts -muxrate 10M -pcr_period 35 -mpegts_pmt_start_pid 0x50 -mpegts_start_pid 0x51 ~/ES_FILES/hevc_testpattern.ts -y
ffmpeg version 3.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-3) 20161019
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libebur128 --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/dvt/ES_FILES/hevc_testpattern.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Duration: 00:00:04.14, start: 0.000000, bitrate: 439 kb/s
Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], 435 kb/s, 49.76 fps, 50 tbr, 1200k tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Output #0, mpegts, to '/home/dvt/ES_FILES/hevc_testpattern.ts':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf57.56.100
Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 435 kb/s, 49.76 fps, 50 tbr, 90k tbn, 1200k tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Press [q] to stop, ? for help
[mpegts @ 0x529f5e0] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
frame= 206 fps=0.0 q=-1.0 Lsize= 4982kB time=00:00:04.08 bitrate=10002.3kbits/s speed= 649x
video:220kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2162.630859%
comment:17 by , 6 years ago
Cc: | added |
---|
comment:18 by , 6 years ago
Cc: | added |
---|
I think after two years this ticket can use a bump.
This bug makes it impossible to use modern surveillance cameras to use motion detection recording algorithms without the need of recoding the input stream.
comment:19 by , 4 years ago
Cc: | added |
---|
Please provide complete, uncut console output together with your command line.
Do you think this is a regression?
Does it also fail with -an or -vn ?
Could you test current git head?