From nobody Sat Oct 26 20:27:38 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XbWRZ6FkSz5b8rt for ; Sat, 26 Oct 2024 20:27:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XbWRZ5C47z47q1 for ; Sat, 26 Oct 2024 20:27:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729974458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GKkq+BdOujUebZk0cUmSiPGhx5k4FllGhAc3q4+/DbU=; b=WnsnYpV9t7CImYJ9K/jWmmfyJQoFvUHMw4nIE56KlTLF6yIra9UrYd/VBDEMbBjrrWIKoR Brm5rOpclmqYZrDgUBhY/oEoigWUlFY8e0tHgBaeke/1/dqBd2vXiiNf+Vf/q66i9IADzs UvXdS+heTJrtgoqVLD8Sq0InL8VFaLbbDLkhUH6lLaEjKSm+nyUwd2Is25CMrfQWfzHr38 LE2fZ2SXBKy2r55Hu8Pftsf+GI36VXNaQAPUkSKSnqeQzMsmqf9VflxBU4cUOQgtJ5Ou4F w5SvIihYtd5OIhXReRbmEq8y4cJzeP8U1ZRgEaBZ7f6ocG4R5jTus4cVqZnmcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729974458; a=rsa-sha256; cv=none; b=URQefYgLEndAQ9zRMvrSYS8CghAEMDL2RYSrVPC7DX8OgBb3rC4M7F09aXXNnaBxVvhlzf XYPmeDFMInI9pIK3oIfGbwvM08GSOKXfYmvvKpVlFM71Qh2cWuLSCRRn1gKfvHI+bZnRj5 8d6RAiPicOzLSmdoPlmEy2AA5HI985Da+qnvxF0rIfdHn0EMAX6JFisdQZbkiTcd2CV8I3 q1/RBXNcGzSzcx1BqvbS740BRLhbEMUB+qXZLKpXC1mo2Ey1dDkIkliTsvPGnQ05pDj4dV fwkpoUllqu0a9FRd9AfF7sqTRovTqCj6ZzpHN6yR9GxFtvRoamaHM0wr69ZeWg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XbWRZ4hw6zPj4 for ; Sat, 26 Oct 2024 20:27:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49QKRc9E091896 for ; Sat, 26 Oct 2024 20:27:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49QKRcdB091895 for ports-bugs@FreeBSD.org; Sat, 26 Oct 2024 20:27:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 282188] New port: multimedia/ffmpeg3 (legacy ffmpeg as a dependency for emulators/ppsspp) Date: Sat, 26 Oct 2024 20:27:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kreinholz@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282188 --- Comment #4 from Kevin Reinholz --- Daniel, Thanks for your comments! I share many of your concerns, which is why I deb= ated submitting a proposed new (old) port in the first place. For the past 5-6 months I've been building/rebuilding my local ffmpeg-3.0.2 port and slightly modified emulators/ppsspp port with synth, and have been quite pleased with= the results. It makes ppsspp usable again, without the need to skip in-game FMV= s or cross my fingers there won't be a crash. I observed frequent crashes with ppsspp-1.17.1 (and previous versions) when built against default ffmpeg (6.x)--typically near the end of an in-game FM= V. It's not that the video wouldn't play--it's that a bad packet, missing head= er, or some other deviation between the PSP's video API and ffmpeg's would eventually get reached, and freeze the video/crash ppsspp. This behavior is= not present when ppsspp is built against ffmpeg-3.0.2, the version recommended = by the ppsspp devs. >From what I can tell, "bundled" ffmpeg used in the Mac, Linux, and Windows builds of ppsspp is just ffmpeg-3.0.2 with a lot of options turned off: https://github.com/hrydgard/ppsspp-ffmpeg/blob/master/shared_options.sh I had assumed x264 was needed for mp4 playback, but will try building ffmpeg with it disabled. A cursory look at the ffmpeg sources led me to (perhaps wrongly) conclude that libavcodec could take advantage of gpu acceleration, which is why I kept VAAPI and VDPAU enabled. It shouldn't be a problem to disable both of those options. I'd debated between a quick-and-dirty hack to the existing ppsspp port to b= uild against ffmpeg-3.0.2 shared libs, and hacking the ppsspp port more extensiv= ely to build ffmpeg-3.0.2 static libs and "bundle" them with ppsspp. The follow= ing discussion from 2022 made me wary of trying to bundle: https://github.com/hrydgard/ppsspp/issues/15969 jbeich pointed out issues with attempting to build ppsspp with bundled-ffmp= eg here: https://github.com/hrydgard/ppsspp/issues/15308#issuecomment-1529076719 It seems the ppsspp devs have not been successful in incorporating their fo= rked ffmpeg-3.0.2 sources into the ppsspp build process, but instead build ffmpeg-3.0.2 separately, dump the libs and header files into a folder, and = then point ppsspp to the precompiled libs as part of their packing build process. There's no release tarball for their bundled-ffmpeg, either, making it easi= er to just grab the official ffmpeg-3.0.2 and build that. That said, I'm very open to exploring the best way to do this. For starters, I'll try disabling ASM, VAAPI, VDPAU, and X264, and confirm whether ppsspp in-game FMV playback still works. --=20 You are receiving this mail because: You are the assignee for the bug.=