[FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps
frafart at free.fr
frafart at free.fr
Wed Dec 11 18:12:52 CET 2013
An update about my test.
Using this command :
ffmpeg -i udp://x.x.x.x:xxxx -force_key_frames 1 -c:a copy -c:v copy -map 0 -f segment -segment_time 300.000 -segment_time_delta 0.005 /tmp/segment/file%03d.ts
I can generate TS file witch begin with a I-Frame.
I check this with mpegcat :
$ mpegcat -F file000.ts | head -30
53133: 0xB8: GOP Start (00:00:00.00 open)
53141: 0x00: Picture (I-Frame) Start (3)
164706: 0x00: Picture (B-Frame) Start (0)
169602: 0x00: Picture (B-Frame) Start (1)
175046: 0x00: Picture (B-Frame) Start (2)
178443: 0x00: Picture (P-Frame) Start (7)
193470: 0x00: Picture (B-Frame) Start (4)
197614: 0x00: Picture (B-Frame) Start (5)
202306: 0x00: Picture (B-Frame) Start (6)
206643: 0x00: Picture (P-Frame) Start (11)
222046: 0x00: Picture (B-Frame) Start (8)
226942: 0x00: Picture (B-Frame) Start (9)
233514: 0x00: Picture (B-Frame) Start (10)
239355: 0x00: Picture (P-Frame) Start (15)
256262: 0x00: Picture (B-Frame) Start (12)
262474: 0x00: Picture (B-Frame) Start (13)
269986: 0x00: Picture (B-Frame) Start (14)
276015: 0x00: Picture (P-Frame) Start (19)
300254: 0x00: Picture (B-Frame) Start (16)
307406: 0x00: Picture (B-Frame) Start (17)
315106: 0x00: Picture (B-Frame) Start (18)
323391: 0x00: Picture (P-Frame) Start (23)
351202: 0x00: Picture (B-Frame) Start (20)
361362: 0x00: Picture (B-Frame) Start (21)
369250: 0x00: Picture (B-Frame) Start (22)
379877: 0xB8: GOP Start (00:00:00.00 open)
379885: 0x00: Picture (I-Frame) Start (3)
476410: 0x00: Picture (B-Frame) Start (0)
485442: 0x00: Picture (B-Frame) Start (1)
492954: 0x00: Picture (B-Frame) Start (2)
...
$
I thought that with the TS file, I could generate mp4 clean to join them later. But No :(
More information about the ffmpeg-user
mailing list