pwcbsd patch for mpeg4ip does not like todays x264

Heiko Recktenwald uzs106 at uni-bonn.de
Mon Jun 4 23:09:27 UTC 2007


Dear Jeremy, I did misunderstood Thomas question. I dont know if it is 
possible to add the patch to the mpeg4ip port.  I am not the author of 
that patch and I dont know his licence. Nor do I know whether this is 
usefull. Never compiled mpeg4ip with this patch without pwcbsd. IMHO 
there are people who work on video4linux for FreeBSD in general. Maybe 
it would work with such a general API as well. Dont know exactly what 
this patch does. It  will do two things: (a) enable the compiling of 
mp4live, that is usualy disabled, (b)  turn on video4linux 1.0 again, 
that is still in the source, but  has been replaced by video4linux 2.0 
for Linux in Ciscos release since mpeg4ip 1.3.

I am just using mpeg4ip since the beginning, following the project (that 
has become rather popular on Linux at www.khm.de as a replacement for 
Apples Quicktime Broadcaster software). All I know is that is possible 
to run mp4live with multimedia/pwcbsd on FreeBSD. The author of pwcbsd 
is the author of that patch. He was at least subscribed to multimedia, 
thats where he announced the port IMHO.The patch sits with other patches 
for other programs at the URL that is mentioned in the pwcbsd Makefile:

http://raaf.atspace.org


If it is usefull to incorporate the patch into mpeg4ip maybe the other 
patches should be incorporated into those ports as well. The patch could 
be an option, like esound etc.


Best, H.


How do I apply the diff to the port?  What do I write on the 
commandline? I'll check it, thanks!




Jeremy Messenger wrote:
> On Mon, 04 Jun 2007 05:27:53 -0500, Heiko Recktenwald 
> <uzs106 at uni-bonn.de> wrote:
>
>> Yes it is possible and it runs perfect! Did trash my Linux partition 
>> after this ;-)
>
> Did you create patch-mp4live or it was created by someone? While I am 
> here, please test here and let me know if it's good.
>
> http://people.freebsd.org/~mezz/diff/mpeg4ip.diff
>
> Cheers,
> Mezz
>
>> See multimedia/pwcbsd and the URL in the makefile. Read the Readme.
>>
>> But it only works with the PWC aka Philips Webcam. And it is not v4l 
>> 2.0.
>>
>>
>> Best, H.
>>
>>
>>
>>
>>
>> Thomas Vogt wrote:
>>> Hi
>>>
>>> Is it possible to add this mp4live patch to the mpeg4ip port? It would
>>> be very nice to run mp4live with freebsd too.
>>>
>>> Regards,
>>> Thomas
>>>
>>> Jeremy Messenger wrote:
>>>
>>>> On Sun, 03 Jun 2007 23:02:24 -0500, Jeremy Messenger 
>>>> <mezz7 at cox.net> wrote:
>>>>
>>>>
>>>>> On Sun, 03 Jun 2007 16:03:27 -0500, Heiko Recktenwald
>>>>> <uzs106 at uni-bonn.de> wrote:
>>>>>
>>>>>
>>>>>> Dear Jeremy, thanks!
>>>>>>
>>>>>>
>>>>>>
>>>>>>>> http://raaf.atspace.org/patches/patch-mp4live
>>>>>>>>
>>>>>>> Okay, with this patch, I now can reproduce it. I have grab a fix[1]
>>>>>>> from gentoo and it gets build further, but it fails on ffmpeg. I
>>>>>>> guess it doesn't work with new ffmpeg either.
>>>>>>>
>>>>>>> [1] http://tinyurl.com/yr4ubp
>>>>>>>
>>>>>>>
>>>>>>>>>> mp4live compiles when I pkg_add -f some older x264 package over
>>>>>>>>>> the latest x264.
>>>>>>>>>>
>>>>>>>>>>
>>>>>> It works here now, just wanted to make the problem known.
>>>>>>
>>>>> I have committed this Gentoo's patch in our ports tree. Thanks for
>>>>> report.
>>>>>
>>>>>
>>>>>> With the port that comes with 6.2.
>>>>>>
>>>>>> Dont know how to update xorg and have so many other things to do in
>>>>>> the moment (exam) that I cannot care much about updating ports in 
>>>>>> the
>>>>>> moment.
>>>>>>
>>>>> Whomever fix mpeg4ip+patch-mp4live with new ffmpeg, then I can commit
>>>>> your patch-mp4live if you want me to. I have not check in mpeg4ip CVS
>>>>> yet.
>>>>>
>>>> The whomever is me, I guess. ;-) I got the build fixed when I was 
>>>> trying
>>>> to fix different problem from your report below of can't play file in
>>>> gmp4player and mp4player. It was very simple. See below.
>>>>
>>>>
>>>>> Cheers,
>>>>> Mezz
>>>>>
>>>>>
>>>>>> Best,
>>>>>>
>>>>>> H.
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>>> Has anybody experienced this as well?
>>>>>>>>>>
>>>>>>>>> I can't reproduce it. I can compile mpeg4ip with new x264 just
>>>>>>>>> fine. You will have to explain better in your report by such as
>>>>>>>>> show us the errors and other more details.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> Yes, the plain mpeg4ip compiled here too, but there seem to be
>>>>>>>> changes in x264 that are not yet replected in that patch.
>>>>>>>>
>>>>>>>> The patch is fine, it adds mp4live, which wants video4linux, to 
>>>>>>>> the
>>>>>>>> mpeg4ip port. mp4live is something like Apples Quicktime
>>>>>>>> Broadcaster, only better ;-)
>>>>>>>>
>>>>>>>> Btw, can you display H264 video with gmp4player or mp4player? I 
>>>>>>>> cant.
>>>>>>>>
>>>>>>> I don't have any of video file in here, but I have searched in
>>>>>>> google and found this file.
>>>>>>>
>>>>>>> http://zdpub.vo.llnwd.net/o2/crankygeeks/episode066/crankygeeks.066.mov 
>>>>>>>
>>>>>>>
>>>>>>> I couldn't get it runs with both gmp4player and mp4player. It works
>>>>>>> fine with totem. Maybe I can try to check in mpeg4ip CVS to see if
>>>>>>> there has anything fix for it. If not, then I can't help (due to
>>>>>>> lack knowledge) so someone will have to fix it.
>>>>>>>
>>>> I have it fixed by get it links with -lavcodec instead of 
>>>> libavcodec.a.
>>>> I will committing it soon with bump. Here's what I just add this under
>>>> post-patch:
>>>>
>>>>     @${REINPLACE_CMD} -e
>>>> 's|$${enable_ffmpeg}/lib/libavcodec.a|-lavcodec|g' \
>>>>         ${WRKSRC}/configure
>>>>
>>>> Rebuild it, then gmp4player and mp4player work perfect with
>>>> crankygeeks.066.mov. It also fixed the build with your 
>>>> patch-mp4live at
>>>> the same time.
>>>>
>>>> Before:
>>>> =======================================
>>>> % mp4player crankygeeks.065.mov
>>>> [...]
>>>> 00:08:35.784-videosync-6: Max Window resolution 1024x768
>>>> 00:08:35.784-videosync-7: Setting video mode 176 144 1 1
>>>> 00:08:35.979-mp4file-7: cntl tracks 0
>>>> 00:08:35.982-plugin-7: Found matching audio plugin aac
>>>> 00:08:35.986-mp4file-7: audio - 75665 samples
>>>> 00:08:35.987-mp4file-7: MP4 audio max time is 1756937 1756.94
>>>> 00:08:35.987-plugin-7: Found matching audio plugin aac
>>>> =======================================
>>>>
>>>> After:
>>>> =======================================
>>>> % mp4player crankygeeks.065.mov
>>>> [...]
>>>> 00:13:23.960-videosync-6: Max Window resolution 1024x768
>>>> 00:13:23.960-videosync-7: Setting video mode 176 144 1 1
>>>> 00:13:24.193-mp4file-7: cntl tracks 0
>>>> 00:13:24.194-ffmpeg-7: codec value 0x28a0df60
>>>> 00:13:24.194-plugin-7: Found matching video plugin ffmpeg
>>>> 00:13:24.196-plugin-7: Found matching audio plugin aac
>>>> 00:13:24.197-videosync-7: persistence is 0x80bb680
>>>> 00:13:24.197-ffmpeg-7: codec value 0x28a0df60
>>>> 00:13:24.197-plugin-7: Found matching video plugin ffmpeg
>>>> 00:13:24.197-ffmpeg-7: userdata len 32
>>>> 00:13:24.197-ffmpeg-7: open codec is 1
>>>> 00:13:24.204-ffmpeg-7: pixel format is 0
>>>> 00:13:24.204-mp4file-7: video - 52655 samples
>>>> 00:13:24.204-mp4file-7: MP4 video max time is 1756923 1756.92
>>>> 00:13:24.209-mp4file-7: audio - 75665 samples
>>>> 00:13:24.214-mp4file-7: MP4 audio max time is 1756937 1756.94
>>>> 00:13:24.214-plugin-7: Found matching audio plugin aac
>>>> =======================================
>>>>
>>>> Cheers,
>>>> Mezz
>>>>
>>>>
>>>>>>> Cheers,
>>>>>>> Mezz
>>>>>>>
>>>>>>>
>>>>>>>> Best and thanks!
>>>>>>>>
>>>>>>>>
>>>>>>>> H.
>
>
> --mezz7 at cox.net  -  mezz at FreeBSD.org
> FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
> http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
> http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.Version: 7.5.472 / Virus Database: 
> 269.8.7/829 - Release Date: 02.06.2007 17:26
>
>


More information about the freebsd-multimedia mailing list