1. 07 Feb, 2017 1 commit
  2. 04 Feb, 2017 1 commit
  3. 31 Jan, 2017 1 commit
  4. 12 Jan, 2017 1 commit
    • Bodecs Bela's avatar
      avformat/hlsenc: hls_start_number_source and start_number · 8811d6d9
      Bodecs Bela authored
      start_number option starts the playlist sequence number
      (#EXT-X-MEDIA-SEQUENCE) from the specified number. Unless hls_flags
      single_file is set, it also specifies starting sequence numbers of
      segment and subtitle filenames. Sometimes it is usefull to have unique
      starting numbers at each run, but currently it is only achiveable by
      setting this parameter manually.
      This patch enables to specify start_number source parameter by
      introducing hls_start_number_source with 3 possible values:
      generic/epoch/datetime. This ensures to set start sequence number
      automatically for practically unique numbers. Generic option is the
      default and this is the curent behaviour: start_number option value
      specifies the start sequence number. (start_number default value is 0)
      If hls_start_number_source is set to epoch, then the start number will
      be the seconds since epoch (1970-01-01 00:00:00). If set to datetime,
      then the start sequence number will be based on the current date/time
      value as YYYYmmddHHMMSS. e.g. 20161231235659.
      Hls speficication allows 64 bit integers as sequence numbers. This patch
      also changes some code where only 32 bit integer values were handled
      correctly.
      Reviewed-by: 's avatarMoritz Barsnick <barsnick@gmx.net>
      Signed-off-by: 's avatarBela Bodecs <bodecsb@vivanet.hu>
      Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
      8811d6d9
  5. 05 Jan, 2017 1 commit
  6. 03 Jan, 2017 1 commit
    • Bela Bodecs's avatar
      avformat/hlsenc: size and duration in segment filenames · 557c0df9
      Bela Bodecs authored
      1st:
      This patch makes it possible to put actual segment file size (measured
      in bytes) and/or duration (calculated in microseconds) into segment
      filenames. This feature is useful when post-processing live streaming
      access log files. New behaviour works only when -use_localtime option
      is set and second_level_segment_size or/and
      second_level_segment_duration new hls_flags are specified. %%s is the
      placeholder for size and %%t for duration in hls_segment_filename
      option. Fix sized trailing zeropadding also works eg. %%09s or %%023t.
      
      A command to test new features:
      ./ffmpeg -loglevel info -y -f lavfi -i color=c=red:size=640x480:r=25 -f
      lavfi -i sine=f=440:b=4:r=44100 -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
      second_level_segment_index+second_level_segment_size+second_level_segment_duration
      -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename
      "segment_%Y%m%d%H%M%S_%%04d_%%08s_%%013t.ts" stream.m3u8
      
      2nd:
      doc/muxers: beside second_level_segment_duration and second_level_segment_size,
      added some more details and example to hls_segment_filename,
      use_localtime, use_localtime_mkdir, hls_flags. hls_flags option list
      reformatted to table
      Signed-off-by: 's avatarBela Bodecs <bodecsb@vivanet.hu>
      Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
      557c0df9
  7. 28 Dec, 2016 1 commit
  8. 27 Dec, 2016 1 commit
    • 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
  9. 08 Dec, 2016 1 commit
  10. 26 Nov, 2016 1 commit
  11. 22 Nov, 2016 1 commit
  12. 10 Nov, 2016 1 commit
    • Steven Liu's avatar
      avformat/flvenc: add add_keyframe_index option · 863ebe6f
      Steven Liu authored
      Add keyframe index metadata
      Used to facilitate seeking; particularly for HTTP pseudo streaming.
       1. read live streaming or file by sequence
       2. if use add_keyframe_index option, add a mark flag at the position,
          use to insert new context at the last step.
       3. add the keyframes *offset* and *timestamp* into a list
       4. if use add_keyframe_index option, shift the metadata data from
          mark flag offset
       5. insert the keyframes *offset* and *timestamp* from the list by
          sequence
       6. free the list
       7. end.
      
      Add FATE test case;
      Reviewed-by: 's avatarLou Logan <lou@lrcd.com>
      Signed-off-by: 's avatarSteven Liu <liuqi@gosun.com>
      Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
      863ebe6f
  13. 02 Nov, 2016 1 commit
  14. 01 Nov, 2016 3 commits
  15. 21 Oct, 2016 1 commit
  16. 11 Oct, 2016 1 commit
  17. 01 Oct, 2016 1 commit
    • Josh de Kock's avatar
      lavc: remove libfaac wrapper · dc0f7114
      Josh de Kock authored
      There is really no need for two aac wrappers, we already have
      libfdk-aac which is better. Not to mention that faac doesn't
      even support HEv1, or HEv2. It's also under a license which is
      unusable for distribution, so it would only be useful to people
      who will compile their own ffmpeg, only use it themselves (which
      at that point should just use fdk-aac).
      Signed-off-by: 's avatarJosh de Kock <josh@itanimul.li>
      dc0f7114
  18. 28 Sep, 2016 1 commit
  19. 26 Sep, 2016 1 commit
  20. 17 Sep, 2016 1 commit
  21. 08 Sep, 2016 1 commit
  22. 29 Aug, 2016 1 commit
  23. 22 Aug, 2016 1 commit
  24. 21 Aug, 2016 1 commit
  25. 22 Jul, 2016 2 commits
  26. 15 Jul, 2016 1 commit
  27. 11 Jul, 2016 2 commits
  28. 15 Jun, 2016 1 commit
  29. 14 Jun, 2016 1 commit
  30. 22 Apr, 2016 1 commit
  31. 12 Apr, 2016 1 commit
  32. 02 Apr, 2016 1 commit
  33. 15 Mar, 2016 1 commit
  34. 12 Mar, 2016 1 commit
  35. 17 Feb, 2016 1 commit
  36. 05 Feb, 2016 1 commit