[FFmpeg-user] Minimal build to take PAM+WAV and write MPEG1+MP2 in .mpg file

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Nov 23 16:14:27 CET 2013


George MacKerron <george <at> mackerron.co.uk> writes:

> Output #0, mpeg, to 'output/output.mpg':
             ^^^^

> emconfigure ./configure --cc="emcc" --target-os=none 
> --cpu=generic --arch=x86_64 --disable-ffplay 
> --disable-ffprobe --disable-ffserver --disable-asm 
> --enable-pic --disable-doc --disable-devices 
> --disable-pthreads --disable-w32threads --disable-network 
> --enable-small --disable-hwaccels --disable-parsers 
> --disable-bsfs --disable-debug --disable-zlib 
> --disable-demuxers --enable-demuxer=image2 
> --enable-demuxer=wav --disable-decoders 
> --enable-decoder=pam --enable-decoder=pcm_s16le 
> --disable-encoders --enable-encoder=mpeg1video 
> --enable-encoder=mp2 --enable-encoder=h263 
> --disable-muxers --enable-muxer=mpeg1video 
> --disable-filters --enable-filter=scale

Sorry to say so but I find it surprising that you 
tried --enable-muxer=mpeg1video if you need the 
mpeg muxer...

Out of curiosity:
What does --target-os=none mean? And why are you 
using --disable-pthreads? This is likely a bad idea.

--disable-asm should never be used (except for 
debugging), if your tool chain needs it, you should 
create at least one bug report, maybe two.

The following should work:
configure --disable-everything --disable-programs 
--enable-ffmpeg --enable-protocol=file --enable-demuxer=wav 
--enable-decoder=pam,pcm_s16le --enable-filter=scale 
--enable-encoder=mpeg1video,mp2 --enable-small 
--disable-debug

Is --enable-pic really needed? Could this be a bug in the 
configure script?
If --arch=x86_64 is needed, this shows a bug and should 
be reported, I wonder what --cpu=generic means?

Note that the "mpeg" muxer creates MPEG-1 system streams, 
if you want MPEG-2 program streams (similar but different) 
then use --enable-muxer=vob (and -f vob in your command 
line).

Carl Eugen



More information about the ffmpeg-user mailing list