Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussion

Download and discuss official beta builds here

Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussion

Postby otmanix » Sun Feb 13, 2011 12:47 pm

Hi folks,

I'd like to start a thread about using and compiling latest OS tools like ffmpeg, mplayer, mencoder, tsmuxer, flac, dcraw, ... You can also post problems with this recent versions.
This topic was previously started in "Latest SVN build discussion" thread.

I think it would be a good idea starting with sharing knowledge.

Sources for mplayer, mencoder and ffmpeg: http://www.mplayerhq.hu/design7/news.html
Sources for ffmpeg: http://ffmpeg.org/

Compiled versions for mplayer on Windows (by Sherpya): http://oss.netfarm.it/mplayer-win32.php
Compiled versions for tsmuxer (by Smartlabs) - no official version for OS X snow leopard yet: http://www.smlabs.net/tsmuxer_en.html
Compiled versions for tsmuxer - unofficial hacks for OS X snow leopard available, read this blog comments by user VoxMac: http://blog.smartlabs.tv/2009/03/new-tsmuxer-version-is-available.html

PMS 1.21.0 r496 contains following OS tools:

Windows:
mplayer: MPlayer Sherpya-SVN-r32848-4.2.5
mencoder and mencoder_mt: MEncoder Sherpya-SVN-r30369-4.2.5
ffmpeg: FFmpeg version git-c9e16a9-Sherpya built on Feb 4 2011 07:04:01 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
tsmuxer: SmartLabs tsMuxeR. Version 1.10.6
flac: flac 1.2.1
dcrawms: Raw photo decoder "dcraw" v8.90

OS X:
mplayer, mencoder, ffmpeg: SVN-r29241-snapshot-4.0.1
tsmuxer: SmartLabs tsMuxeR. Version 1.10.6
flac: flac 1.2.0
dcrawU: Raw photo decoder "dcraw" v8.90

Linux:
tsmuxer: SmartLabs tsMuxeR. Version 1.10.6
mplayer, mencoder, ffmpeg: have to be available via $PATH (compile them yourself or use the ones provided by your distro)

Kind regards, Otmanix
Last edited by otmanix on Sun Feb 13, 2011 7:21 pm, edited 9 times in total.
I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby otmanix » Sun Feb 13, 2011 12:48 pm

Hi Mac OS X guys out there,

because everybody is complaining about old versions of mencoder and other tools today I tried to compile mencoder and ffmpeg for OS X by myself.

Here's what I did:
1. get an free Apple developer account, download and install Xcode in order to get gcc, make, ... http://developer.apple.com/technologies/xcode.html
2. download and install git: http://code.google.com/p/git-osx-installer/
3. Open Terminal
Code: Select all
users-mac-2:~ User$ mkdir git
users-mac-2:~ User$ cd git
users-mac-2:git User$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
A    mplayer/path.h
A    mplayer/debian
A    mplayer/debian/prefs
A    mplayer/debian/prefs/codecs_list
A    mplayer/debian/prefs/MD5SUMS
A    mplayer/debian/prefs/mirrors
...
A    mplayer/libdvdnav/remap.h
 U   mplayer/libdvdnav
Checked out external at revision 1224.
Checked out revision 32897.
users-mac-2:git User$ cd mplayer/

o.k. now I started to do a configure with default options
Code: Select all
users-mac-2:mplayer User$ ./configure
No FFmpeg checkout, press enter to download one with git or CTRL+C to abort

Cloning into ffmpeg...
remote: Counting objects: 138340, done.
remote: Compressing objects: 100% (32468/32468), done.
remote: Total 138340 (delta 107127), reused 136618 (delta 105685)
Receiving objects: 100% (138340/138340), 28.26 MiB | 352 KiB/s, done.
Resolving deltas: 100% (107127/107127), done.
Checking for cc version ... 4.2.1
Detected operating system: Darwin
Detected host architecture: i386
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... AuthenticAMD (16:5:3)
Checking for CPU type ...  AMD Athlon(tm) II X4 615e Processor
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... k8
..
Checking for yasm ...
Error: yasm not found, use --yasm='' if you really want to compile without
Check "config.log" if you do not understand why it failed.


So I started once again without yasm
Code: Select all
users-mac-2:mplayer User$ ./configure --yasm=''
Current branch master is up to date.
Checking for cc version ... 4.2.1
Detected operating system: Darwin
Detected host architecture: i386
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... AuthenticAMD (16:5:3)
Checking for CPU type ...  AMD Athlon(tm) II X4 615e Processor
...
Checking for DVD support (libdvdnav) ... yes (internal)
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --yasm= !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: k8

  Languages:
    Messages/GUI: en
    Manual pages: en
    Documentation: en

  Enabled optional drivers:
    Input: dvdnav(internal) ftp tv libdvdcss(internal) dvdread(internal) vcd networking
    Codecs: ffmpeg(internal) qtx real xanim win32 libmpeg2(internal) mp3lib(internal) tremor(internal)
    Audio output: coreaudio openal mpegpes(file)
    Video output: matrixview opengl pnm corevideo quartz mpegpes(file) xv x11 xover yuv4mpeg md5sum tga

  Disabled optional drivers:
    Input: vstream pvr radio tv-v4l2 tv-v4l1 tv-dshow librtmp live555 nemesi cddb cdda bluray dvb smb
    Codecs: libvpx libschroedinger libdirac x264 xvid libdv libopencore_amrwb libopencore_amrnb faad2 faac musepack libdca liba52 mpg123 libtheora libgsm speex toolame twolame libmad liblzo gif OpenJPEG
    Audio output: sun alsa jack pulse nas esd arts oss v4l2 ivtv dxr2 sdl
    Video output: zr zr2 v4l2 ivtv dxr3 dxr2 sdl vesa gif89a jpeg fbdev svga caca aa ggi xvidix winvidix cvidix 3dfx xmga dga vdpau xvmc directfb dfbmga bl xvr100 tdfx_vid wii s3fb tdfxfb mga

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

Check config.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-menu and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.


So I started compiling
Code: Select all
users-mac-2:mplayer User$ make
help/help_create.sh help/help_mp-en.h UTF-8
cc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I. -Iffmpeg   -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include -DFF_API_MAX_STREAMS=0 -c -o command.o command.c
...


Now I installed it to default location (you need root permission!)
Code: Select all
users-mac-2:mplayer User$ sudo make install
Password:
install -d /usr/local/bin /usr/local/etc/mplayer /usr/local/lib
install -m 755 -s mencoder /usr/local/bin
install -d /usr/local/share/man/man1
install -m 644 DOCS/man/en/mplayer.1 /usr/local/share/man/man1/
cd /usr/local/share/man/man1 && ln -sf mplayer.1 mencoder.1
install -m 755 -s mplayer /usr/local/bin


o.k. ffmpeg and mencoder are available in /usr/local/bin
Code: Select all
users-mac-2:~ User$ cd /usr/local/bin
users-mac-2:bin User$ ls
edit      mencoder   mplayer      twdiff      twfind
users-mac-2:bin User$ ./mplayer
MPlayer SVN-r32897-4.2.1 (C) 2000-2011 MPlayer Team
Usage:   mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
 -vo <drv>        select video output driver ('-vo help' for a list)
 -ao <drv>        select audio output driver ('-ao help' for a list)
 vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)
 dvd://<titleno>  play DVD title from device instead of plain file
 -alang/-slang    select DVD audio/subtitle language (by 2-char country code)
 -ss <position>   seek to given (seconds or hh:mm:ss) position
 -nosound         do not play sound
 -fs              fullscreen playback (or -vm, -zoom, details in the man page)
 -x <x> -y <y>    set display resolution (for use with -vm or -zoom)
 -sub <file>      specify subtitle file to use (also see -subfps, -subdelay)
 -playlist <file> specify playlist file
 -vid x -aid y    select video (x) and audio (y) stream to play
 -fps x -srate y  change video (x fps) and audio (y Hz) rate
 -pp <quality>    enable postprocessing filter (details in the man page)
 -framedrop       enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
 <-  or  ->       seek backward/forward 10 seconds
 down or up       seek backward/forward  1 minute
 pgdown or pgup   seek backward/forward 10 minutes
 < or >           step backward/forward in playlist
 p or SPACE       pause movie (press any key to continue)
 q or ESC         stop playing and quit program
 + or -           adjust audio delay by +/- 0.1 second
 o                cycle OSD mode:  none / seekbar / seekbar + timer
 * or /           increase or decrease PCM volume
 x or z           adjust subtitle delay by +/- 0.1 second
 r or t           adjust subtitle position up/down, also see -vf expand

 * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

users-mac-2:bin User$ ./mencoder
MEncoder SVN-r32897-4.2.1 (C) 2000-2011 MPlayer Team
No file given


Hmm, I think that was pretty quick'n'dirty but it seems to work ;)
I think one has to know which configure options are needed in order to get a good build for working with PMS. Any suggestions?

Kind regards, Otmanix

P.S.
I think it would be nice that some OS X guys would do a little more for this project. I don't even have a Mac, only OS X in a virtual machine.

UPDATE:
You can find Yasm assembler here: http://www.tortall.net/projects/yasm/wiki/Download
Latest DMG image there is version 0.7.1 from 2008 :(
It looks like one once again has to to a ./configure && make && make install
Last edited by otmanix on Sun Feb 13, 2011 11:00 pm, edited 1 time in total.
I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby otmanix » Sun Feb 13, 2011 7:17 pm

Exsport mentioned a parsing problem when using latest version of ffmpeg (git-c9e16a9):
http://ps3mediaserver.org/forum/viewtopic.php?f=14&t=9798&start=20#p45120
I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby MKUltra » Sun Feb 13, 2011 9:30 pm

Otmanix, thanks for this. This is awesome!
Mac Mini 2.26 GHz Intel Core 2 Duo 4 GB RAM OS 10.7.2/Airport Extreme Basestation (Early 2009) Wireless N/PS3-Fatboy 40GB/1Gibps via Cat 6 LAN connection w/ Airport Extreme/PS3 connected via HDMI to Denon AVR-3808CI
MKUltra
 
Posts: 75
Joined: Sun Aug 30, 2009 10:41 pm

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby dushashi » Sun Feb 13, 2011 11:27 pm

Weird thing happened to me.
I installed latest mplayer/mencoder from https://launchpad.net/~motumedia/+archive/mplayer-daily. Everything works perfect but NO SOUND.

I reverted to mplayer/mencoder from https://launchpad.net/~rvm/+archive/ppa and sound is back :)

Just wanted to let you guys know.

Server: 498/Lucid. Client: Bravia 5500.
dushashi
 
Posts: 148
Joined: Sun Feb 13, 2011 11:11 pm

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby MKUltra » Mon Feb 14, 2011 12:44 am

Otmanix - I was able to compile static binaries for mplayer and mencoder for OSX. How do I compile ffmpeg as a separate binary? Can mencoder_mt also be compiled in the same manner?
Mac Mini 2.26 GHz Intel Core 2 Duo 4 GB RAM OS 10.7.2/Airport Extreme Basestation (Early 2009) Wireless N/PS3-Fatboy 40GB/1Gibps via Cat 6 LAN connection w/ Airport Extreme/PS3 connected via HDMI to Denon AVR-3808CI
MKUltra
 
Posts: 75
Joined: Sun Aug 30, 2009 10:41 pm

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby mazey » Mon Feb 14, 2011 3:26 am

this is a good thread if only to report mencoder 32848 has no sound haha. im using mencoder/mt 32735 until the next version that works.. could someone possibly just shoutout when a new version is available on the http://oss.netfarm.it/mplayer-win32.php page incase i dont notice.
PMS 1.90.2 Snapshot - Intel Celeron G1840 2.8Ghz / Asus Z97m-plus / Corsair Vengeance 8GB / Windows 8.1 Pro (64 bit)
mazey
 
Posts: 780
Joined: Sat Oct 24, 2009 9:07 am

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby shagrath » Mon Feb 14, 2011 8:47 pm

otmanix wrote:Hmm, I think that was pretty quick'n'dirty but it seems to work ;)
I think one has to know which configure options are needed in order to get a good build for working with PMS. Any suggestions?

Kind regards, Otmanix


now, extra bonus stage: the same with mencoder-mt please :D
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby otmanix » Tue Feb 15, 2011 12:53 am

I provide NO application support via PM, so please post your question to the forum.
PS3 Media Server related articles on my blog: http://otmanix.de/?cat=11&lang=en
User avatar
otmanix
 
Posts: 528
Joined: Fri Jan 30, 2009 12:40 am
Location: Bavaria, Germany

Re: Latest OS tools (ffmpeg, mplayer, tsmuxer, ...) discussi

Postby hsbla » Wed Feb 23, 2011 11:20 pm

On my 10.5.x. Mac I took the easy route and used Macports from http://www.macports.org/
A simple 'port -v install mplayer-devel +a52 +dts +mencoder_extras' later I had a mencoder binary.
For me this fixes the DTS center/right issue which I have been struggling with for quite some time.

I signed up to let you guys know that this works and hopefully push current binaries into the default package.
mencoder_mt is something I'll have a look at later.
hsbla
 
Posts: 1
Joined: Wed Feb 23, 2011 11:14 pm

Next

Return to Beta Builds

Who is online

Users browsing this forum: Exabot [Bot] and 6 guests