[FFmpeg-trac] #7809(ffmpeg:new): Encoding: Flac header is not write in stream mode

FFmpeg trac at avcodec.org
Mon Mar 25 05:41:22 EET 2019


#7809: Encoding: Flac header is not write in stream mode
-------------------------------------+-------------------------------------
             Reporter:  RuralHunter  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
                                     |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I believe this problem also exists for other format.
 In stream mode:
 ffmpeg -i 'test.ape' -f flac - >test.flac
 In file mode:
 ffmpeg -i 'test.ape' -f flac test.flac

 The output files of above 2 commands are different. The first one lacks
 the correct flac header. It is similar at least for wav output.
 I just use this to transcode music files on the fly and found some players
 rely on the correct header to determine the stream duration and when to
 stop the playback.
 It checked the encoding code and found the header is updated at the end of
 the encoding. This won't work in stream mode. I suggest write the header
 with correct values in the beginning though this might require an
 additional scan on the source file.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7809>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list