1. 27 Dec, 2016 5 commits
    • Bodecs Bela's avatar
      avformat/hlsenc: strftime identifiers and segment index · 0ff8c6b6
      Bodecs Bela authored
       in filenames
      
      Putting date/time values into segment filenames is very usefull.
      But to produce non-conflicting segment filenames with -use_localtime
      option with date/time
      values in hls_segment_filename option, sometimes is not enough.
      Like in cases when multiple segments produced in the same second.
      But hlsenc currently does not make possible to use segment index (%d) at
      the
      
      same time whe use_localtime is in effect, due to identifier conflict.
      This patch makes possible to use strftime identifiers and still put
      segment index (%d) at same time in segment filenames by introducing
      second_level_segment_index flag. When -use_localtime is active,
      identifier %d is for month day index, so %%d is the segment index
      placeholder. This enhanced behaviour only exists when new
      second_level_segment_index flag is specified.
      For instance putting 'segment_%Y%m%d%H%M%S_%%05d.ts' value into
      -hls_segment_filename option and specifing -hls_flags
      second_level_segment_index and -use_localtime 1, may produce segment
      filename as 'segment_20161230235758_00002.ts'
      
      An example:
      
      ffmpeg -loglevel info -y -f lavfi -i color=c=red:size=640x480:r=25 -f
      lavfi -i anullsrc=r=44100:cl=stereo -c:v mpeg2video -g 25 -acodec aac
      -cutoff 20000 -ac 2 -ar 44100 -ab 192k -f hls -hls_time 3 -hls_list_size
      5 -hls_flags delete_segments+second_level_segment_index -use_localtime 1
      -hls_segment_filename "segment_%Y%m%d%H%M%S_%%05d.ts" stream.m3u8
      
      will produce segments filenames:
      
      ....
      segment_20161227005902_00013.ts
      segment_20161227005902_00014.ts
      segment_20161227005902_00015.ts
      segment_20161227005903_00016.ts
      segment_20161227005903_00017.ts
      segment_20161227005903_00018.ts
      segment_20161227005903_00019.ts
      segment_20161227005903_00020.ts
      ....
      Signed-off-by: 's avatarBela Bodecs <bodecsb@vivanet.hu>
      0ff8c6b6
    • Jesper Ek's avatar
      Fix bug when incrementing initial_prog_date_time when removing segments · c7c0046e
      Jesper Ek authored
      initial_prog_date_time shouldn't be adjusted when deleting segments
      from disk, but rather when segments are removed from the playlist.
      Signed-off-by: 's avatarJesper Ek <deadbeef84@gmail.com>
      Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
      c7c0046e
    • Michael Niedermayer's avatar
    • Marton Balint's avatar
      avdevice/decklink_enc: do not reference this after freeing it · a7946c89
      Marton Balint authored
      Fixes Coverity CID 1396863.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      a7946c89
    • Marton Balint's avatar
      avdevice/decklink_dec: properly initialize no_video variable · 89a1471a
      Marton Balint authored
      Fixes Coverity CID 1396859.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      89a1471a
  2. 26 Dec, 2016 10 commits
  3. 25 Dec, 2016 6 commits
  4. 24 Dec, 2016 11 commits
  5. 23 Dec, 2016 8 commits