[FFmpeg-user] concatenating mp4 (non-h464) using mpegts
Konrad Karl
kk_konrad at gmx.at
Thu Apr 5 17:30:24 CEST 2012
Hello,
tried to concatenate several mp4 files w/o reencoding (they all come
from kdenlive using the same export settings) using mpegts as
intermediate format but I failed - see below.
(in the meanytime I worked around using mkvmerge but I am looking for
something pipe-able)
The result from below command does not play at all in mplayer or ffplay
(ffplay output at end of email)
what options am I missing?
Konrad
PS:
for H264 content in mp4 container the procedure works fine when using:
ffmpeg -i tag2-1.mp4 -c copy -bsf h264_mp4toannexb zz.ts
and the concat: protocol:
ffmpeg -i concat:tag1-2.ts\|tag2-1.ts -c copy -absf aac_adtstoasc out.mp4
x264 gives much better quality but my WD TV live box does not like it
so I have to use mpeg4 encoder for the moment...
If somebody knows x264 settings (1080p50) which the WD can play
properly, pls let me know.
============================================================================================================
kdenlive/20120405/bin/ffmpeg -i tag2-1.mp4 -c copy -f mpegts zz.ts
ffmpeg version N-35138-gfa1f92a Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 5 2012 14:05:40 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
configuration: --prefix=/home/ki/kdenlive/20120405 --disable-doc --disable-network --disable-ffserver --enable-gpl --enable-version3 --enable-shared --enable-debug --disable-stripping --enable-pthreads --enable-runtime-cpudetect --enable-libtheora --enable-libvorbis --enable-libmp3lame
--enable-libx264 --enable-libvpx
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.101 / 2. 66.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tag2-1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf54.2.100
Duration: 00:07:37.45, start: 0.000000, bitrate: 25132 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 24810 kb/s, 50 fps, 50 tbr, 50 tbn, 50 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 319 kb/s
Metadata:
handler_name :
[mpegts @ 0x1aec400] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'zz.ts':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf54.3.100
Stream #0:0(und): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 24810 kb/s, 50 fps, 90k tbn, 50 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, 319 kb/s
Metadata:
handler_name :
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 9321 fps=1220 q=-1.0 Lsize= 622889kB time=00:03:06.40 bitrate=27373.6kbits/s
video:569048kB audio:7282kB global headers:0kB muxing overhead 8.078518%
=======================================================================================================
kdenlive/20120405/bin/ffprobe zz.ts
ffprobe version N-35138-gfa1f92a Copyright (c) 2007-2012 the FFmpeg developers
built on Apr 5 2012 14:05:40 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
configuration: --prefix=/home/ki/kdenlive/20120405 --disable-doc --disable-network --disable-ffserver --enable-gpl --enable-version3 --enable-shared --enable-debug --disable-stripping --enable-pthreads --enable-runtime-cpudetect --enable-libtheora --enable-libvorbis --enable-libmp3lame
--enable-libx264 --enable-libvpx
libavutil 51. 44.100 / 51. 44.100
libavcodec 54. 12.100 / 54. 12.100
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 66.101 / 2. 66.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 10.100 / 0. 10.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg4 @ 0x1ec7600] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1ec7600] my guess is 6 bits ;)
[mpeg4 @ 0x1ec7600] hmm, seems the headers are not complete, trying to guess time_increment_bits
[mpeg4 @ 0x1ec7600] my guess is 6 bits ;)
[mpeg4 @ 0x1ec7600] looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
.....
.....
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpeg4 @ 0x1ec7600] [IMGUTILS @ 0x7fff155390d0] Picture size 0x0 is invalid
[mpeg4 @ 0x1ec7600] get_buffer() failed (-1 0 (nil))
[mpegts @ 0x1ec3520] decoding for stream 0 failed
[mpegts @ 0x1ec3520] Could not find codec parameters (Video: mpeg4 ([16][0][0][0] / 0x0010), yuv420p)
Input #0, mpegts, from 'zz.ts':
Duration: 00:03:06.40, start: 1.400000, bitrate: 27375 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg4 ([16][0][0][0] / 0x0010), yuv420p, 50 tbr, 90k tbn, 90k tbc
Stream #0:1[0x101](und): Audio: mp3 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16, 320 kb/s
More information about the ffmpeg-user
mailing list