[FFmpeg-user] Segmenting RTMP Input

Young Kim shadowing71 at gmail.com
Tue Nov 13 21:56:37 CET 2012

Hey guys, 

I finally managed to get ffmpeg to be able to use rtmp URL's as an input. However, I'm having trouble trying to segment the RTMP input for HLS output. The command I'm using is this:

./ffmpeg -loglevel debug -re -i "[RTMP URL HERE] live=true" -codec copy -map 0 -bsf h264_mp4toannexb -f segment -segment_list live.m3u8 -segment_list_flags live -segment_time 10 out%03d.ts 

When I try running it, it seems to be working, but I receive this error:

[segment @ 0x30150a0] pts (-2970) < dts (3003) in stream 0
av_interleaved_write_frame(): Invalid argument

Am I right in thinking that the lack of timestamps on a live RTMP feed is preventing a successful segmentation?


More information about the ffmpeg-user mailing list