Opened 17 years ago
Closed 16 years ago
#3809 closed patch (fixed)
Nuvexport - Supporting ffmpeg codec name changes
Reported by: | Owned by: | xris | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | perl / nuvexport | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
ffmpeg recently changed the way they reference some of the compiled codecs. This causes nuvexport to disable plugins that once worked. A few patches have been submitted to the mailing list to resolve this issue, and they appear to work for me by enabling xvid and MP4 (and PSP) again.
Patch 1: nuvexport-ffmpeg_xvid_rename.patch http://www.gossamer-threads.com/lists/mythtv/dev/282791 Created by: Wade Fixes xvid.pm so that it references libxvid in addition to the traditional xvid used by previous versions of ffmpeg.
Path 2: nuvexport-ffmpeg_aac_rename.patch http://www.gossamer-threads.com/lists/mythtv/dev/282597 Created by: Ken Fixes aac.pm so that it references libfaac in addition to the traditional aac used by previous versions of ffmpeg.
I hope Wade and Ken don't mind that I post these patches here, but I thought attaching them to a ticket seem like a better idea than simply to the mailing list. Especially since they are both related.
I do have another issue related to h264, but I'll open a seperate ticket for that.
Attachments (6)
Change History (13)
Changed 17 years ago by
Attachment: | nuvexport-ffmpeg_xvid_rename.patch added |
---|
Changed 17 years ago by
Attachment: | nuvexport-ffmpeg_aac_rename.patch added |
---|
comment:1 Changed 17 years ago by
Changed 17 years ago by
Attachment: | nuvexport-ffmpeg_psp_rename.patch added |
---|
comment:2 Changed 17 years ago by
I don't have access to a new enough copy of ffmpeg. Can you attach the output from:
ffmpeg -formats
comment:3 Changed 17 years ago by
Attaching output from 'ffmpeg -formats' from my version of ffmpeg (r9852)
Changed 17 years ago by
Attachment: | ffmpeg -formats output added |
---|
Output from ffmpeg -formats using ffmpeg r9852
comment:4 Changed 17 years ago by
I'm attaching the output of ffmpeg -formats from ffmpeg svn r10255
Changed 17 years ago by
Attachment: | ffmpeg-r10255-formats.txt added |
---|
comment:5 Changed 16 years ago by
Thank you so much for these patches. The patches worked for me with nuvexport 0.4 and the bleeding edge SVN version of ffmpeg (SVN-r10932, current as of Nov 5 2007).
For those who don't know how to use patch files, you need to download the patch file in original format after clicking the link above (look for "Download in Other Formats" at the bottom of the page). Save them to the nuvexport-0.4 directory containing the nuvexport source files (after uncompressing the tarball). Then issue patch commands in the folowing format:
patch -p0 <nuvexport-ffmpeg_psp_rename.patch patch -p0 <nuvexport-ffmpeg_aac_rename.patch patch -p0 <nuvexport-ffmpeg_xvid_rename.patch
and finally, run:
sudo make install
comment:6 Changed 16 years ago by
One more comment:
Newer ffmpeg versions refer to h264 as libx264. To use libx264 with nuvexport requires another few modifications to [build directory]/export/ffmpeg/MP4.pm:
======== Modification #1 ========= ====change ...=====
elsif ($codec =~ /^h/) { $self->{'mp4_codec'} = 'h264'; last; }
to... =
elsif ($codec =~ /^h/) { $self->{'mp4_codec'} = 'libx264'; last; }
======= End modification #1 ==========
======= Modification # 2==============
======= Change .... ==========
# Options required for the codecs separately
if ($self->{'mp4_codec'} eq 'h264') {
$ffmpeg_xtra .= ' -level 30'
======== To.... =========
# Options required for the codecs separately
if ($self->{'mp4_codec'} eq 'libx264') {
$ffmpeg_xtra .= ' -level 30'
======= End modification #2 =========
... I left all of the other references to 'h264' in MP4.pm the same.
My MP4.pm is attached.
Changed 16 years ago by
MP4.pm with libfaac and libx264 fixed, allowing iPod encoding
The ffmpeg PSP module uses libfaac and thus is also affected by the change in ffmpeg. A patch is attached for the PSP module.