ffmpeg/tests/ref/lavf
Graham Booker 60fcc19b90 avformat/mpegtsenc: Changed Video PES packet length to 0.
The rational for this is another issue that plex has exposed.  When it is
conducting a transcode of video to HLS for streaming, my father noticed
artifacts when played on his GoogleTV (NSZ-GT1).  He sent me a test file
and I reproduced it on my device of the same model.  It is important to
note that the artifacts were not present when streaming to VLC or QuickTime
Player.  I copied the command-line that plex used, and conducted all of the
following tests using FFmpeg git.

Transcode to HLS: artifacts on playback
Transcode to TS: playback is fine
Cat HLS segments into a single TS: playback is fine
Segment single TS file to segments: artifacts on playback
Segment single TS file to segments using Apple's HLS segmenter: playback is
fine

At this point I carefully examined the differences between Apple's HLS
segmenter output and FFmpeg's.  Among the considerable differences, I
noticed that the video PES packets always had a 0 length.  So I continued:

Transcode to HLS using FFmpeg with 0 length PES packets: playback is fine.
Segment single TS to segments with 0 length PES packets: playback is fine.

All failures mentioned are only on the GTV since it is the only player on
which I could reproduce artifacts.  I only tested the GTV, VLC, and
QuickTime Player though, so my test case is limited.  I do not know if
other players exhibit this issue.

Since it was useful last time, I have uploaded the test file as
hls_pes_packet_length.m4v along with its associated txt file which contains
the transcode command-line that was used.

Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-22 16:05:25 +02:00
..
aiff
alaw
asf
ast
au
avi
bmp
caf
dpx
dv_fmt
ffm mpeg12enc: always set closed gop flag on the first gop 2014-04-01 20:52:37 +02:00
flm
flv_fmt
gif avcodec/imgconvert: fix nb_components and depth for PAL8 in get_pix_fmt_score() 2014-04-10 19:58:14 +02:00
gxf mpeg12enc: always set closed gop flag on the first gop 2014-04-01 20:52:37 +02:00
ircam
ismv avformat/movenc: only ommit encoder tag of the metadata for bitexact mode 2014-03-16 16:26:35 +01:00
jpg
mkv matroska: Add the CueDuration element 2013-09-21 14:33:01 +02:00
mmf
mov avformat/movenc: only ommit encoder tag of the metadata for bitexact mode 2014-03-16 16:26:35 +01:00
mpg mpeg12enc: always set closed gop flag on the first gop 2014-04-01 20:52:37 +02:00
mulaw
mxf mpeg12enc: always set closed gop flag on the first gop 2014-04-01 20:52:37 +02:00
mxf_d10 mpeg12enc: always write closed gops for intra only outputs 2014-04-01 20:52:09 +02:00
nut
ogg
pam swscale/utils: Fix color range of gray16 2014-03-18 22:15:15 +01:00
pbmpipe
pcx
pgm
pgmpipe
pixfmt
png swscale/utils: Fix color range of gray16 2014-03-18 22:15:15 +01:00
ppm
ppmpipe
rm
rso
sgi
smjpeg
sox
sunrast
swf
tga
tiff
ts avformat/mpegtsenc: Changed Video PES packet length to 0. 2014-04-22 16:05:25 +02:00
voc
voc_s16
w64
wav
wtv mpeg12enc: always set closed gop flag on the first gop 2014-04-01 20:52:37 +02:00
xbm
xwd
yuv4mpeg