Opened 10 years ago

Last modified 10 years ago

#4377 new defect

MPEG2TS Stream Change not Handled

Reported by: Jose Santiago Owned by:
Priority: normal Component: ffplay
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Sometimes when I stream different MPEGTS streams to FFPlay it cannot play some of the streams. This does not happen very often. I have one set TS streams that when I stream them one after another to FFPlay it is not able to handle the second stream. If I restart FFPlay it will handle the stream until the second stream starts again. VLC does not have this issue. I will upload the streams after the ticket is created.

How to reproduce:

% ffmpeg udp://@239.36.13.100:4900

ffplay version 2.6.git-VF Copyright (c) 2003-2015 the FFmpeg developers
  built with gcc 4.5.2 (GCC)
  configuration: --extra-version=VF --prefix=/mnt/centshare/ffmpeg/trunk/build/build-linux/stage --extra-cflags='-I/mnt/centshare/ffmpeg/trunk/build/../src/libavformat -I/mnt/centshare/ffmpeg/trunk/build/../src/libavcodec -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT' --extra-ldflags='-L/mnt/centshare/ffmpeg/trunk/build/build-linux/stage/lib -Wl,-rpath -Wl,/mnt/centshare/ffmpeg/trunk/build/build-linux/stage/lib -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT ' --enable-static --enable-shared --enable-avfilter --enable-pthreads --enable-zlib --enable-bzlib --enable-runtime-cpudetect --enable-hardcoded-tables
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
[mp3 @ 0x80dbf60] Header missing   0KB vq=    0KB sq=    0B f=0/0   
[mpegts @ 0x80bd6e0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'udp://@239.36.13.100:4900':
  Duration: N/A, start: 77046.206922, bitrate: N/A
  Program 1573 
    Stream #0:0[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x28a](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x240](eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:3[0x1fd2]: Unknown: none ([11][0][0][0] / 0x000B)
No codec could be found with id 94215
[mp2 @ 0x80dbf60] Header missing
77050.35 A-V: -0.002 fd=   0 aq=  153KB vq= 3074KB sq=    0B f=0/0   

Built on: Slackware Linux 13.37

Change History (1)

comment:1 by Jose Santiago, 10 years ago

The files are located at http://162.97.176.3/ffmpeg-issue-4377-part1.ts and http://162.97.176.3/ffmpeg-issue-4377-part2.ts . I have also uploaded the script to stream them at http://162.97.176.3/ffmpeg-issue-4377.sh .

I am streaming the TS files using 'tsplay' from TSTools at http://code.google.com/p/tstools/ .

The following is an example of a simple script that can be used to stream them:

#!/bin/bash

./tsplay 
trap "exit 0" INT EXIT TERM HUP PIPE QUIT ILL KILL ABRT

while true
do
   eval ./tsplay \
      ./ffmpeg-issue-4377-part1.ts \
      239.36.13.100:4900 -hd
   eval ./tsplay \
      ./ffmpeg-issue-4377-part2.ts \
      239.36.13.100:4900 -hd
done

You can also see the issue by appending the two files together and playing them using FFplay.

Version 1, edited 10 years ago by Jose Santiago (previous) (next) (diff)
Note: See TracTickets for help on using tickets.