Page MenuHomePhabricator

Wrong options for H264: -wpred-dct8x8
Closed, ResolvedPublic

Description

When transcoding video to MP4 with avconv (packages libav-tools and libavcodec-extra-54), transcoding job fails with:

[NULL @ 0x230a700] [Eval @ 0x7fffaa9238e0] Undefined constant or missing '(' in 'wpred'
[NULL @ 0x230a700] Unable to parse option value "wpred-dct8x8"
[NULL @ 0x230a700] Error setting option flags2 to value -wpred-dct8x8.

Removing "-flags2 -wpred-dct8x8 -level 13" from line 414 of WebVideoTranscode/WebVideoTranscodeJob.php and "-flags2 -wpred-dct8x8 -level 30" from line 418 fixes it.

If these options are necessary in some configurations and cannot be therefore unconditionally removed from function ffmpegAddH264VideoOptions( $options, $pass ), perhaps they should be made configurable from LocalSettings.php.


Version: REL1_23-branch
Severity: normal
OS: Linux

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:45 AM
bzimport set Reference to bz71391.
bzimport added a subscriber: Unknown Object (MLST).
Gilles subscribed.

Change 219395 had a related patch set uploaded (by Brion VIBBER):
Fix MP4/H.264 transcodes on modern avconv

https://gerrit.wikimedia.org/r/219395

Change 219395 merged by jenkins-bot:
Fix MP4/H.264 transcodes on modern avconv

https://gerrit.wikimedia.org/r/219395

brooke claimed this task.
brooke subscribed.

Patch was merged so think we're ok... closing!

Will you please backport the patch to REL1_25?

Change 243370 had a related patch set uploaded (by Brion VIBBER):
Fix MP4/H.264 transcodes on modern avconv

https://gerrit.wikimedia.org/r/243370

Will you please backport the patch to REL1_25?

done!

I did git reset --hard HEAD; git pull; git checkout REL1_25 and still see -wpred-dct8x8 -level 13.

Agh, failed tests and didn't merge. Will look at it when I'm not in an airport.

Change 243370 merged by jenkins-bot:
Fix MP4/H.264 transcodes on modern avconv

https://gerrit.wikimedia.org/r/243370