I am unable to get ffmpeg to export mpegts. I've tried slightly
different compile time options, and I always get the same error:
'dts < pcr, TS is invalid'
I have been following the directions at:
http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/
Interesting thing to note... if you have rpmforge loaded into yum, and
then yum install ffmpeg... I can export the mpegts successfully(?),
but it is still unusable by the segmenter.
If I'm reading the following links properly... there appears to be an
issue with mpegts...
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2009-August/021585.html
http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2009-October/022429.html
http://www.linuxquestions.org/questions/linux-software-2/creating-mpeg-ts-from-h.264-elementary-stream-761712/
Is that correct, and is there any fix on the way?
Bill
-------- details ---------
CentOS 5.4 (64-bit)
-- libx264 --
version: x264-snapshot-20091101-2245
compile options:
./configure --enable-shared --disable-pthreads
-- ffmpeg --
version: git-0c539c9
compile options:
./configure --enable-gpl --enable-nonfree --enable-libfaac --enable-
libfaad --enable-libmp3lame \
--enable-libtheora --enable-libx264 --enable-libxvid --
enable-x11g
-- libmp3lame --
version: 3.97
-- all other items installed via yum --
ffmpeg command & output:
FFmpeg version git-0c539c9, Copyright (c) 2000-2009 Fabrice Bellard,
et al.
built on Nov 6 2009 20:03:30 with gcc 4.1.2 20080704 (Red Hat
4.1.2-46)
configuration: --enable-gpl --enable-nonfree --enable-libfaac --
enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264
--enable-libxvid --enable-x11grab
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
Seems stream 0 codec frame rate differs from container frame rate:
1200.00 (1200/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
Duration: 00:00:47.46, start: 0.000000, bitrate: 3626 kb/s
Stream #0.0(und): Video: h264, yuv420p, 640x480, 3558 kb/s, 30
tbr, 600 tbn, 1200 tbc
Stream #0.1(und): Audio: aac, 44100 Hz, 1 channels, s16, 63 kb/s
Metadata
major_brand : qt
minor_version : 0
compatible_brands: qt
year : 2009-11-06T15:53:47-0800
year-eng : 2009-11-06T15:53:47-0800
File 'test.ts' already exists. Overwrite ? [y/N] y
[libx264 @ 0x84eb390]using SAR=1/1
[libx264 @ 0x84eb390]using cpu capabilities: MMX2 SSE2Slow
[libx264 @ 0x84eb390]profile Baseline, level 3.0
Output #0, mpegts, to 'test.ts':
Stream #0.0(und): Video: libx264, yuv420p, 320x240 [PAR 1:1 DAR
4:3], q=10-51, 96 kb/s, 90k tbn, 30 tbc
Stream #0.1(und): Audio: aac, 44100 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
------- >>>> [mpegts @ 0x84ea150]dts < pcr, TS is invalidime=1.70
bitrate= 246.8kbits/s
frame= 1423 fps= 75 q=27.0 Lsize= 1314kB time=47.43 bitrate=
226.9kbits/s
video:556kB audio:376kB global headers:0kB muxing overhead 40.942939%
Last message repeated 1858 times
[libx264 @ 0x84eb390]frame I:48 Avg QP:21.12 size: 6605
[libx264 @ 0x84eb390]frame P:1375 Avg QP:21.19 size: 183
[libx264 @ 0x84eb390]mb I I16..4: 39.1% 0.0% 60.9%
[libx264 @ 0x84eb390]mb P I16..4: 0.7% 0.0% 0.0% P16..4: 13.0%
0.0% 0.0% 0.0% 0.0% skip:86.3%
[libx264 @ 0x84eb390]coded y,uvDC,uvAC intra: 61.5% 81.8% 61.6% inter:
1.9% 5.9% 0.5%
[libx264 @ 0x84eb390]i16 v,h,dc,p: 25% 42% 10% 23%
[libx264 @ 0x84eb390]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 37% 15% 4%
5% 4% 4% 4% 4%
[libx264 @ 0x84eb390]kb/s:96.00
-- Segmenter --
gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil -
lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad
Bill Levering
idbill@???
KFP: 0C38 4D7E 5B50 94FE 992D 406D 6C81 DE33 5459 A1AC
Bill Levering
idbill@???
KFP: 0C38 4D7E 5B50 94FE 992D 406D 6C81 DE33 5459 A1AC
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@???
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user