Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th February 2018, 17:31   #1  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,650
x264 (MABS build) with integrated FFMS2 and LAVF fails opening AVI sources

LoRd_MuldeR pointed me at it, and I can only confirm:

The x264 builds created by media-autobuild_suite including FFMS2 and L-SMASH Source (video codecs only = mode 6/"fullv") can't open AVI sources and eventually fall back to AviSynth, trying to use AviSource.

Code:
x264 -o *.mp4 *.avi
ffms [error]: could not create indexer
lavf [error]: could not open input file
avs [info]: trying AVISource... succeeded
...
I will try to create a full build (mode 4/"full"), wondering if possibly the limiting to video codecs only may cause issues. Could anyone else with enough insight possibly check if MABS might be misconfigured for this case? Or is it possible that there is indeed a mistake in current x264 sources?
_

In the meantime, issue #758 appeared, and commit c566f85; will build again...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 26th February 2018 at 17:44.
LigH is offline   Reply With Quote
Old 26th February 2018, 18:08   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,929
Just want to add that the problem is not limited to AVI. Happens with MP4 or MKV as well.

The problem is always the same: FFMS reports "could not create indexer", and LAVF reports "could not open input file". Then x264 falls back to AVS.

Builds from here do not have FFMS enabled (unfortunately), but LAVF input does work.
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 26th February 2018 at 18:11.
LoRd_MuldeR is offline   Reply With Quote
Old 26th February 2018, 18:46   #3  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,650
I just updated MABS and recompiled. x264 in 32 bit is already done, and here FFMS2 starts indexing (to RAM, I'd assume).

So I will release a new set soon.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th February 2018, 18:51   #4  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,929
Quote:
Originally Posted by LigH View Post
I just updated MABS and recompiled. x264 in 32 bit is already done, and here FFMS2 starts indexing (to RAM, I'd assume).

So I will release a new set soon.
Great. BTW, index is written to file (or reused from file) when using "--index" option.
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 26th February 2018, 19:55   #5  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,650
Updated on MediaFire. Regards to wiiaboo for a quick response.

Fun fact: They are even smaller now.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th February 2018, 20:26   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,929
It is working now, thanks!
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 2nd March 2018, 19:16   #7  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 138
I didn't thought that others stumbled upon this problem, too. I actually thought that it never ever worked at all and that no one used it so no one complained. It seems that I stand corrected. Just out of curiosity: When did it stop working?
PS: That they are smaller now is probably due to the disabling of some audio codecs. (I tested an earlier version of MABS and there was code for disabling, but it didn't work.) One can reduce the size of the builds even further:
The size of my light x264 build with MABS: 17376256 B (all builds are x64).
After disabling all bitstream filters and enabling the extract_extradata-bsf (my test show this to be needed to actually get the codec parameters from transport streams; the h2645_mp4toannexb bsf are not needed for h2645 in mp4/Matroska) this is down to 17159680 B.
After also (trying to, see below) disabling subtitle decoders this is down to 17126912 B.
And looking at the list of disabled codecs I noticed that quite a few audio and subtitle decoders aren't disabled. The reason: MABS currently only disables decoders for which there is an encoder of the same name (I think I will report this). Fixing this brings the size down to 14960128 B. (Side issue: I have observed that if the input file has an mp2 audio track, lavf now emits a warning that it couldn't find the codec parameters for this stream. This might also happen for other codecs; similar things might also happen with the currently used list of codecs to deactivate. Does anyone know a way to stop lavf emitting warnings for non-video codecs?)
Finally, I also disabled some of the things that ffmpeg enables by default, but which is (to the best of my knowledge) unusable for lavf inside x264.exe: I added --disable-amf --disable-d3d11va --disable-dxva2 --disable-iconv --disable-schannel --disable-cuda --disable-cuvid. Now the size is only 13884928 B.
The relevant part of my script now looks like the following:
Code:
                audio_codecs=(
                    $(sed -n '/audio codecs/,/external libraries/p' ../libavcodec/allcodecs.c | \
                      sed -n "s/^[^#]*extern.* *ff_\([^ ]*\)_decoder;/\1/p")
                )
                LDFLAGS+=" -L$MINGW_PREFIX/lib" \
                    log configure ../configure "${FFMPEG_BASE_OPTS[@]}" \
                    --prefix="$LOCALDESTDIR/opt/lightffmpeg" \
                    --disable-{programs,devices,filters,encoders,muxers,debug,sdl2,network,protocols,doc,bsfs} \
                    --enable-protocol=file,pipe \
                    --disable-decoder="$(IFS=, ; echo "${audio_codecs[*]}")" --enable-gpl \
                    --enable-bsf=extract_extradata \
                    --disable-amf --disable-d3d11va --disable-dxva2 --disable-iconv --disable-schannel --disable-cuda --disable-cuvid
                unset audio_codecs
Any suggestions/comments/improvements?
mkver is offline   Reply With Quote
Old 10th August 2018, 19:31   #8  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,929
Quote:
Originally Posted by LigH View Post
I just updated MABS and recompiled. x264 in 32 bit is already done, and here FFMS2 starts indexing (to RAM, I'd assume).

So I will release a new set soon.
Some new commits have arrived in the official development tree. Any chance for updated x264 builds?
https://git.videolan.org/?p=x264.git;a=summary

(Highlights seem to include "4:0:0 (monochrome) encoding support" and "Sony XAVC" support)
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 10th August 2018 at 19:33.
LoRd_MuldeR is offline   Reply With Quote
Old 10th August 2018, 20:08   #9  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,650
New upload: x264 core:157 r2932 303c484

Code:
x264 0.157.2932 303c484
(libswscale 5.2.100)
(libavformat 58.17.101)
(ffmpegsource 2.30.0.0)
Win32: built on Aug  8 2018, gcc: 7.3.0
Win64: built on Aug  8 2018, gcc: 8.2.0
x264 configuration: --chroma-format=all
libx264 configuration: --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 10th August 2018, 20:53   #10  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,929
Quote:
Originally Posted by LigH View Post
New upload: x264 core:157 r2932 303c484

Code:
x264 0.157.2932 303c484
(libswscale 5.2.100)
(libavformat 58.17.101)
(ffmpegsource 2.30.0.0)
Win32: built on Aug  8 2018, gcc: 7.3.0
Win64: built on Aug  8 2018, gcc: 8.2.0
x264 configuration: --chroma-format=all
libx264 configuration: --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 10th August 2018, 21:11   #11  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 856
Thanks for the update!
__________________
Win10 (x64) build 17134 | GPU Caps Viewer v1.39.0.0
NVIDIA GeForce GT 640 (GK107) 2047MB/DDR3 | (R398.11)
NTSC | DVD: R1 | BD: A
Sparktank is offline   Reply With Quote
Old 2nd November 2018, 15:14   #12  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,650
New (and updated) upload: x264 core:157 r2935 545de2f

Code:
x264 0.157.2935 545de2f
(libswscale 5.2.100)
(libavformat 58.19.102)
(ffmpegsource 2.30.0.0)
Win32: built on Nov  1 2018, gcc: 7.3.0
Win64: built on Nov  1 2018, gcc: 8.2.0
x264 configuration: --chroma-format=all
libx264 configuration: --chroma-format=all
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:56.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.