Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#12936 closed Patch - Bug Fix (fixed)

ffmpeg resync to 3.2: mythweb .flv streaming no more background loading in advance

Reported by: warpme@… Owned by: JYA
Priority: minor Milestone: 29.0
Component: 3rd Party - FFMPEG Version: Master Head
Severity: medium Keywords: mythweb flv streaming
Cc: Ticket locked: no

Description

This ffmpeg3.2 commit http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=5702416c57afb2bb062eb69d60fc42c31c91b674 effectively breaks content backgroung loading in advance on .flv players (i.e. flow player). Attached patch reverts mentioned ffmpeg commit and fixes issue.

Attachments (1)

0036-revert-ffmpeg-avformat-flvenc.c-do-not-write-duration-and-filesize-when-not-seekable.patch (2.8 KB) - added by warpme@… 2 years ago.
patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 2 years ago by Stuart Auchterlonie

Component: Plugin - MythWeb3rd Party - FFMPEG
Milestone: unknown29.0
Owner: changed from Stuart Auchterlonie to JYA
Status: newassigned
Version: UnspecifiedMaster Head

comment:2 Changed 2 years ago by JYA

Status: assignedinfoneeded

if you have a fix for ffmpeg, please submit it upstream.

Having said that, I didn't even know we could generate on the fly flv stuff.

How do you call this.

Please produce steps to reproduce. As it is, I can't assess the severity of this problem, and if it's something we should fix too.

comment:3 Changed 2 years ago by JYA

comment:4 Changed 2 years ago by warpme@…

jya: to reproduce problem You can enable FLV streaming in mythweb (settings/mythweb/videoplayback) and try to watch any recording on mythweb. If You have fast backend able to encode faster than realtime, flash player on Your web browser should be downloading already encoded stream in background. You will see this in flow player progress bar (white bar is watched, light grey is downloaded in advance; light grey progresses much faster). I'm using this frequently as my backend i.e. can encode audio with 44..48x of realtime - so 1h audio is encoded within minutes. Having recording downloaded in by player allows me to freely skip any adverts just minute after starting listeninig. ffmpeg commit mentioned in this ticked breaks this functionality. With this errant ffmpeg commit, flow player is NOT showing background downloaded stream and not allows to freely walk on already downloaded content in flow player. In other words I can't skip adverts any more.

comment:5 Changed 2 years ago by JYA

Please try the fix submitted upstream (simply follow the link)

comment:6 Changed 2 years ago by Steven Liu <lq@…>

Resolution: fixed
Status: infoneededclosed

In badb971e048e8c3f2b560c5f149ef8cbea5727e1/mythtv:

avformat/flvenc: fix ticket 5976 and use old commit

mythtv have problem with non-seekable dont write duration and filesize
and there have problem with some other server and player with 0 value
duation and filesize.
So add a flv flags to fix the ticket and make a choose for users.

Fixes #12936

Signed-off-by: Steven Liu <lq@…>
Signed-off-by: Jean-Yves Avenard <jyavenard@…>

comment:7 Changed 2 years ago by JYA

BTW, I don't see how the resync could have broken mythweb.

mythweb is directly calling the ffmpeg executable, nothing to do with what's the backend is compiled with.

comment:8 in reply to:  7 Changed 2 years ago by warpme@…

Replying to jyavenard:

BTW, I don't see how the resync could have broken mythweb.

mythweb is directly calling the ffmpeg executable, nothing to do with what's the backend is compiled with.

https://github.com/MythTV/mythweb/blob/master/modules/stream/stream_flv.pl#L38

Note: See TracTickets for help on using tickets.