[FFmpeg-trac] #7547(undetermined:new): When relaying RTMP streams ffmpeg quits with av_interleaved_write_frame message
FFmpeg
trac at avcodec.org
Tue Jan 29 22:59:27 EET 2019
#7547: When relaying RTMP streams ffmpeg quits with av_interleaved_write_frame
message
-------------------------------------+-------------------------------------
Reporter: regstuff | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: regression | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ruddell):
I have this problem on Ubuntu 16.04.5 with v4.1, but not locally on Mac
with v4.1. It works with v3.4.5 on Ubuntu as described above.
I attached a file that shows the issue with the following command (about 4
seconds in):
`ffmpeg -re -i issue7547.mp4 -vcodec copy -acodec copy -bsf:a
aac_adtstoasc -f flv 'rtmp://a.rtmp.youtube.com/live2/stream-key-here'`
The first commit where streaming hangs, `git bisect` shows the following:
{{{
commit 858db4b01fa2b55ee55056c033054ca54ac9b0fd
Author: Daniel Kucera <daniel.kucera at gmail.com>
Date: Tue Oct 17 10:29:30 2017 +0200
libavformat: not treat 0 as EOF
transfer_func variable passed to retry_transfer_wrapper
are h->prot->url_read and h->prot->url_write functions.
These need to return EOF or other error properly.
In case of returning >= 0, url_read/url_write is retried
until error is returned.
Signed-off-by: Daniel Kucera <daniel.kucera at gmail.com>
:040000 040000 03f37e2b4749f5f1d21a9a528c0a10eef8ff2cf1
6c2edb3a01134a03e79534f6cbb048abb59121d2 M libavformat
}}}
The first commit where the error message is correctly displayed, `git
bisect` shows the following:
{{{
commit ed647ab79f9a54d8d3a8e345f6a1643b60b849f4
Author: Timo Rothenpieler <timo at rothenpieler.org>
Date: Thu Jul 26 00:37:35 2018 +0200
avformat/librtmp: fix returning EOF from Read/Write
Ticket #7052
:040000 040000 964b972c7b3df952e7b634e4a76cdefaa8da3622
200f7038acf21315bee42874f69ae41d6c31315d M libavformat
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7547#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list