[FFmpeg-trac] #6486(ffplay:new): ffplay broken with hls format after his commit ee4b14322155b5808eeceb463f5edcd751eb3a98

FFmpeg trac at avcodec.org
Fri Jun 23 18:45:29 EEST 2017


#6486: ffplay broken with hls format after his commit
ee4b14322155b5808eeceb463f5edcd751eb3a98
---------------------------------+--------------------------------------
             Reporter:  mobifon  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffplay   |                  Version:  git-master
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 Summary of the bug:
 I have since this ee4b14322155b5808eeceb463f5edcd751eb3a98 commit,
 intermittent interruptions at hls format on youtube.
 How to reproduce:
 {{{
 ffplay $(youtube-dl -g https://www.youtube.com/watch?v=Ga3maNZ0x0w)
 ffmpeg version
   libavutil      55. 66.100 / 55. 66.100
   libavcodec     57. 99.100 / 57. 99.100
   libavformat    57. 73.100 / 57. 73.100
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 94.100 /  6. 94.100
   libswscale      4.  7.101 /  4.  7.101
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100

 built on ...
 linux
 }}}
 With this diff workarond work ok, but this is not solution.


 diff --git a/ffplay.c b/ffplay.c
 index c0b326c8cc..437b6a86a0 100644
 --- a/ffplay.c
 +++ b/ffplay.c
 @@ -2932,9 +2932,9 @@ static int read_thread(void *arg)
          /* if the queue are full, no need to read more */
          if (infinite_buffer<1 &&
                (is->audioq.size + is->videoq.size + is->subtitleq.size >
 MAX_QUEUE_SIZE
 -            || (stream_has_enough_packets(is->audio_st, is->audio_stream,
 &is->audioq) &&
 +/*            || (stream_has_enough_packets(is->audio_st,
 is->audio_stream, &is->audioq) &&
                  stream_has_enough_packets(is->video_st, is->video_stream,
 &is->videoq) &&
 -                stream_has_enough_packets(is->subtitle_st,
 is->subtitle_stream, &is->subtitleq)))) {
 +                stream_has_enough_packets(is->subtitle_st,
 is->subtitle_stream, &is->subtitleq))*/)) {
              /* wait 10 ms */
              SDL_LockMutex(wait_mutex);
              SDL_CondWaitTimeout(is->continue_read_thread, wait_mutex,
 10);

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


More information about the FFmpeg-trac mailing list