From nobody@FreeBSD.org  Wed Aug  8 10:45:59 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 93B6916A417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Aug 2007 10:45:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7C6F713C442
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Aug 2007 10:45:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l78Ajxr4088853
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Aug 2007 10:45:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l78AjxP3088851;
	Wed, 8 Aug 2007 10:45:59 GMT
	(envelope-from nobody)
Message-Id: <200708081045.l78AjxP3088851@www.freebsd.org>
Date: Wed, 8 Aug 2007 10:45:59 GMT
From: Johannes Totz <jo_t@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/gpac-mp4box cannot import files larger than 2gb
X-Send-Pr-Version: www-3.0

>Number:         115304
>Category:       ports
>Synopsis:       multimedia/gpac-mp4box cannot import files larger than 2gb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 08 10:50:02 GMT 2007
>Closed-Date:    Sat Jul 18 09:23:49 UTC 2009
>Last-Modified:  Sat Jul 18 09:23:49 UTC 2009
>Originator:     Johannes Totz
>Release:        6-STABLE
>Organization:
>Environment:
FreeBSD alfred 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Jul 12 20:40:55 CEST 2007     root@alfred:/usr/obj/usr/src/sys/ALFRED  i386
>Description:
multimedia/gpac-libgpac and multimedia/gpac-mp4box fail to import files larger than 2gb. See http://sourceforge.net/tracker/index.php?func=detail&aid=1448512&group_id=84101&atid=571738

This bug report suggests that it should be fixable with the right compiler options and defines. Trying to fix it myself did not work.
>How-To-Repeat:
Import a h.264 raw stream that is bigger than 2gb.
>Fix:
Possible (iterim) solution here: http://sourceforge.net/tracker/index.php?func=detail&aid=1448512&group_id=84101&atid=571738

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Aug 8 10:50:08 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115304 

From: Pascal Vizeli <pvizeli@yahoo.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115304: multimedia/gpac-mp4box cannot import files larger than 2gb
Date: Thu, 9 Aug 2007 18:34:57 +0200

 --hQiwHBbRI9kgIhsi
 Content-Type: text/plain; charset=iso-8859-15
 Content-Disposition: inline
 
 Hi
 
 I think the problem is in libgpac.
 This bug report meaning the problem is in "src/utils/os_divers.c" but that
 isn't a part of mp4box. It's a part of libgpac...
 
 You musst compile libgpac with -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1.
 I can't test that while I didn't have a > 3gb h264 video stream.
 
 greets
 Pascal
 
 --hQiwHBbRI9kgIhsi
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.5 (OpenBSD)
 
 iD8DBQFGu0Ix8LME6TfLzwsRAlk1AJ9037u64+2hcoppnU1vPOP4qAupJQCgl+HQ
 jcVh0HTLpsUUkZ6yVn+ciKg=
 =ACZd
 -----END PGP SIGNATURE-----
 
 --hQiwHBbRI9kgIhsi--

From: Johannes Totz <jo_t@gmx.net>
To: bug-followup@FreeBSD.org,  pvizeli@yahoo.de
Cc:  
Subject: Re: ports/115304: multimedia/gpac-mp4box cannot import files larger
 than 2gb
Date: Wed, 05 Sep 2007 10:48:41 +0200

 Hi!
 
 Sorry for the late answer, didnt get notified by email (spam trap maybe).
 
 > You musst compile libgpac with -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1.
 
 I've added these to the ports Makefile of gpac/libgpac (and they are
 used, i.e. passed to the compiler).
 But unfortunately it does not help. mp4box (after recompiling) still
 crashes with an assertion:
 
 
 # ls -l too-big.h264
 -r--r--r--  1 root  jo  2759126600 Aug 10 13:38 too-big.h264
 
 # mp4box -add too-big.h264 test.mp4
 Assertion failed: (nal_start), function gf_import_h264, file
 media_tools/media_import.c, line 3801.
 Abort (core dumped)
 
 
 > I can't test that while I didn't have a > 3gb h264 video stream.
 
 Notice that my test file is roughly 2,5 GB.
 
 
 
 
 Cheers
 Johannes

From: Thomas Vogt <thomas@bsdunix.ch>
To: bug-followup@FreeBSD.org,  jo_t@gmx.net
Cc:  
Subject: Re: ports/115304: multimedia/gpac-mp4box cannot import files larger
 than 2gb
Date: Sat, 12 Jan 2008 01:24:06 +0100

 Hi
 
 Any news on this issue? Even with -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
 -D_LARGEFILE_SOURCE=1 mp4box don't work with >=4gb files on my fbsd 
 7.0beta3 32bit.
 
 Best regards,
 Thomas

From: Johannes Totz <jo_t@gmx.net>
To: Thomas Vogt <thomas@bsdunix.ch>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/115304: multimedia/gpac-mp4box cannot import files larger
 than 2gb
Date: Mon, 21 Jan 2008 23:01:58 +0000

 Thomas Vogt wrote:
 > Any news on this issue? Even with -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
 > -D_LARGEFILE_SOURCE=1 mp4box don't work with >=4gb files on my fbsd
 > 7.0beta3 32bit.
 
 No news from my side. Haven't tried in a while; and my files are gone
 (for good).
 
 There must be a way of getting it to work though. Can't be that 64 bit
 file access doesn't work under FreeBSD. What's the official way of doing
 it? Anybody got some spare time to fix it?
 
 
 
 Cheers
 
 Johannes
 
 MfG
 
 -- 
 Johannes Totz
 
 PGP-Key: http://www.jo-t.de/pubkey.asc
 
State-Changed-From-To: feedback->open 
State-Changed-By: itetcu 
State-Changed-When: Wed Feb 18 17:49:51 UTC 2009 
State-Changed-Why:  
Nothing new lately 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115304 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Jul 18 09:23:48 UTC 2009 
State-Changed-Why:  
Feedback timeout. If you want to fix this port, please feel free to 
follow-up this PR so that we can re-open it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115304 
>Unformatted:
