[FFmpeg-user] Need help using segment muxer to create mpegts segment every 10 second.
Ly Tran Cong
lytc at vega.com.vn
Wed Jan 11 03:06:34 CET 2012
No, I use ffmpeg version 0.9, there is no "-segments_format" parameter.
*Seems stream 0 codec frame rate differs from container frame rate: 50.00
(50/1) -> 50.00 (50/1)
Input #0, mpegts, from 'udp://239.30.10.6:5106?reuse=1':
Duration: N/A, start: 76860.329589, bitrate: 128 kb/s
Program 1
Stream #0:0[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
yuv420p, 720x576 [SAR 12:11 DAR 15:11], 53.99 fps, 50 tbr, 90k tbn, 50 tbc
Stream #0:1[0x102]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
stereo, s16, 128 kb/s
Unrecognized option 'segment_format'
Failed to set value 'ts' for option 'segment_format'*
I think it replaced by "-container_format". I set "-container_format" with
ts value, but I also have error
My command:* ffmpeg -y -i udp://239.30.10.6:5106?reuse=1 -c:v libx264 -b:v
150k -s 320x240 -c:a libfaac -b:a 48k -ar 48000 -map 0 -f segment
-container_format ts -segment_time 10 -segment_pattern %05d.ts
-segment_basename /tmp/test test.m3u8*
And error:
*Output #0, segment, to 'list.m3u8':
Metadata:
encoder : Lavf53.24.0
Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 45:44 DAR 15:11],
q=-1--1, 150 kb/s, 90k tbn, 50 tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 48 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (mp2 -> libfaac)
Could not write header for output file #0 (incorrect codec parameters ?)*
On Tue, Jan 10, 2012 at 4:46 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Ly Tran Cong <lytc <at> vega.com.vn> writes:
>
> > And I got the following segment: test00001.ts, test00002.ts but this is
> > "nut/multimedia container" so Iphone cannot play this segment.
> > I also try using parameter "container_format mpegts" or "container_format
> > ts" but I got the following error
>
> Isn't the name of the option you need "-segment_format" ?
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
--
Regards,
Tran Ly
Vega Corporation
98 Hoang Quoc Viet Str, Hanoi, Vietnam
Tel: 84 4 755 4190
Fax: 84 4 755 4190
Mobile: 84 91 487 1115
www.vega.com.vn; www.clip.vn; www.chacha.vn; www.ringring.vn
More information about the ffmpeg-user
mailing list