Opened 3 years ago

Last modified 3 years ago

#9240 new defect

Invalid data found when processing input

Reported by: giuliano Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by giuliano)

Summary of the bug:
How to reproduce:
The command stops after about 5 minutes (frame around 6230) with the error:
Invalid data found when processing input

The command is:
ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -c:v copy -c:a copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

Attachments (1)

ffmpeg-log.txt.gz (10.6 KB ) - added by giuliano 3 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by giuliano, 3 years ago

Description: modified (diff)

comment:2 by giuliano, 3 years ago

Hi,
some more info:

  • the issue is also on ffmpeg v. 4.4
  • I'm running the ffmpeg command on ubuntu 20.04

comment:3 by giuliano, 3 years ago

Hi,

sorry one more information,
I do not have any issue on ffmpeg v.4.2.4,
I mean, using this version, ffmpeg works correctly and it does not stop at all.

comment:4 by mkver, 3 years ago

Priority: criticalimportant
  1. It seems that your video is geoblocked to Italy, which hampers investigations.
  2. This ticket is missing lots of necessary information, see here.
  3. Try to simplify the command line to localize the problem: Does it really need rtmp output or is output to an ordinary file sufficient, too? Does it need both audio and video or only one of them?
  4. Also try to bisect to find the commit that caused the issue.

comment:5 by Carl Eugen Hoyos, 3 years ago

Priority: importantnormal
Version: 4.3.2unspecified

by giuliano, 3 years ago

Attachment: ffmpeg-log.txt.gz added

comment:6 by giuliano, 3 years ago

Hi,

  • I tried some other live feed that are not geoblocked and not crypted and it works.

These geoblocked and crypted italian live feed have something creating problems to ffmpeg and the command stops after about 5 minutes.

I just attached the ffmpeg log (ffmpeg-log.txt.gz) of the command stopping after 5 minutes:

ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803

-c:v copy -c:a copy -bsf:a aac_adtstoasc
-f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

BTW, this issue is always reproduceable.

I did other tests, here follows the results:

  • tried same command but using a file as output

It fails, stops after 5 minutes.
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -c:v copy -c:a copy -bsf:a aac_adtstoasc -f mp4 video.mp4

  • tried to add -map 0:0 -map 0:4 that are the tracks selected by default by ffmpeg.

It fails and stops after 5 minutes
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -map 0:0 -map 0:4 -c:v copy -c:a copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

  • tried to add just the video track (-map 0:4).

It works, no stops.
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -map 0:4 -c:v copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

  • tried to add just the audio track (-map 0:0).

It FAILS, stop after 5 minutes.
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -map 0:0 -c:a copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

  • Tried other two tracks (-map 0:7 -map 0:8), video and audio

It works, no stops
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -map 0:7 -map 0:8 -c:v copy -c:a copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

  • Tried another video track (0:7)

It works. no stops
Command: ffmpeg -re -i https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 -map 0:7 -c:v copy -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

Let me know how I can help you
Best regards

comment:7 by Carl Eugen Hoyos, 3 years ago

Please use git bisect to find the change introducing the regression.

comment:8 by giuliano, 3 years ago

Hi,
I used git bisect and here follows the output pf the last step:

giuliano$ git bisect good
5e829262a6a6068dfed9d76da4a9635f1f4be391 is the first bad commit
commit 5e829262a6a6068dfed9d76da4a9635f1f4be391
Author: Jun Zhao <barryjzhao@tencent.com>
Date: Thu Aug 8 00:12:16 2019 +0800

lavf/hls: add http_seekable option for HTTP partial requests


Add http_seekable option for HTTP partial requests, when The
EXT-X-BYTERANGE tag indicates that a Media Segment is a sub-range
of the resource identified by its URI, we can use HTTP partial
requests to get the Media Segment.


Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>

doc/demuxers.texi | 4 ++++
libavformat/hls.c | 9 +++++++--
2 files changed, 11 insertions(+), 2 deletions(-)

Let me know if I can help more

comment:9 by Carl Eugen Hoyos, 3 years ago

Component: undeterminedavformat
Keywords: hls regression added
Version: unspecifiedgit-master

Please test if ffmpeg -http_seekable 0 -i ​https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803 works

comment:10 by giuliano, 3 years ago

Hi,
it works.

Should I use the '-http_seekable 0' parameter?
Will you release a fix?

Note: See TracTickets for help on using tickets.