Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18078 closed defect (invalid)

ffmpeg SVN-r15261 Unable to use x264

Reported by: fclaire@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: x264 Cc:
Port: ffmpeg

Description

I've successfully installed ffmpeg on my Leopard 10.5.6:

sudo port install ffmpeg +gpl +postproc +extvorbis +xvid +x264 +a52 +avfilter
--->  Fetching ffmpeg
--->  Verifying checksum(s) for ffmpeg
--->  Extracting ffmpeg
--->  Applying patches to ffmpeg
--->  Configuring ffmpeg
--->  Building ffmpeg
--->  Staging ffmpeg into destroot
--->  Installing ffmpeg @15261_0+a52+avfilter+darwin_i386+extvorbis+gpl+postproc+x264+xvid
--->  Activating ffmpeg @15261_0+a52+avfilter+darwin_i386+extvorbis+gpl+postproc+x264+xvid
--->  Cleaning ffmpeg

But when I try to convert an mpeg video into a mp4/x264 format it doesn't work:

ffmpeg -i myvid.mpg -ac 1 -vcodec libx264 -s 480x384 -b 450000 myvid.mp4
FFmpeg version SVN-r15261, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/opt/local --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-mmx --cc=gcc-4.0 --enable-gpl --enable-postproc --enable-libvorbis --enable-libxvid --enable-libx264 --enable-liba52 --enable-swscale --enable-avfilter
  libavutil     49.10. 0 / 49.10. 0
  libavcodec    51.71. 0 / 51.71. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    1. 1. 0 /  1. 1. 0
  libswscale     1. 6. 1 /  1. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jan 18 2009 11:33:02, gcc: 4.0.1 (Apple Inc. build 5490)
Input #0, mpeg, from 'myvid.mpg':
  Duration: 00:04:03.96, start: 0.132111, bitrate: 12397 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 12000 kb/s, 25.00 tb(r)
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
Output #0, mp4, to 'myvid.mp4':
    Stream #0.0: Video: libx264, yuv420p, 480x384 [PAR 16:15 DAR 4:3], q=2-31, 450 kb/s, 25.00 tb(c)
    Stream #0.1: Audio: 0x0000, 48000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[libx264 @ 0x1003a00]using SAR=16/15
[libx264 @ 0x1003a00]using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4 Cache64
Unsupported codec for output stream #0.1

So despite libx264 is well present in the configure line, it isn't listed in the list of libraries together with libavutil, libavcodec, etc...

Did I miss something to get the x264 codec support with ffmpeg ?

Change History (5)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to acho@…

comment:2 Changed 16 years ago by dbevans (David B. Evans)

The listing of libraries in the ffmpeg output only shows the libraries that are provided by the ffmpeg distribution itself. libx264 is an external library (provided by port x264) and hence not listed.

To get a complete list of what is provided in this specific build try

sudo port -d configure ffmpeg +gpl +postproc +extvorbis +xvid +x264 +a52 +avfilter

Concerning the error, it says it will use libx264 for stream #0.0 (the video stream) but is complaining about stream #0.1 (the audio stream) which is mp2 in the input file but says 0x0000 for the output. So not sure this is about libx264 at all.

I think this is not a MacPorts porting issue but an ffmpeg usage issue (maybe a bug) that should be taken up on the ffmpeg-users list. See https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user.

comment:3 Changed 16 years ago by dbevans (David B. Evans)

Owner: changed from acho@… to devans@…
Status: newassigned

Not a port issue.

comment:4 Changed 16 years ago by dbevans (David B. Evans)

Keywords: ffmpeg removed
Resolution: invalid
Status: assignedclosed

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.