Opened 12 years ago

Closed 12 years ago

#1188 closed defect (duplicate)

Segmented encode

Reported by: Alrich Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: segment timestamp
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Encoding a video from udp mpegts stream segmented in 60 sec chunks, the first clip is 60 seconds long, the second 120 seconds long (only last 60 sec with video data), the third is 180 secs long (only last 60 sec with video data), and so on.

This has been discussed in

http://ffmpeg.org/trac/ffmpeg/ticket/910

ffmpeg -i udp://224.10.2.1:2150 -y -s qvga -r 20 -ac 1 -ar 16000 -b:a 24
k -b:v 376k -c:a libmp3lame -c:v mpeg4 -force_key_frames 1 -f segment -segment_t
ime 60 -segment_list list.txt -map 0 -segment_format avi out%03d.avi

Is there no way to encode files so in this manner that they are playable by vlc, windows media player, etc..?

Is there another way to record security camera video's without the files having longer and longer blank playback in the beginning?

I've tried restarting ffmpeg with -t 60 every minute, however this sollution uses a lot more processing with the constant startup of ffmpeg, and sometimes ffmpeg closes after only a few hundred milliseconds or so.

Change History (1)

comment:1 by Carl Eugen Hoyos, 12 years ago

Resolution: duplicate
Status: newclosed

I am closing this ticket because it is a duplicate of ticket #910.
Stefano asked to explain why resetting time-stamps is necessary, please answer there.
(Why don't you write transport streams?)

Note: See TracTickets for help on using tickets.