Not logged in. · Lost password · Register
Forum: Prerelease discussion RSS
mythtv player 5.1pre10 ffmpeg version?
Page:  1  2  next 
arobro #1
User title: arobro
Member since Jun 2009 · 15 posts · Location: nz
Group memberships: Members
Show profile · Link to this post
Subject: mythtv player 5.1pre10 ffmpeg version?
does anyone know what version of ffmpeg, mythtv player 5.1pre10 from here uses? (http://www.sudu.dk/mythtvplayer/files/0.6/MythTvPlayer0.5.…)

i have got the 5.0 branch to compile but still cant get 5.1 branch to work.
if anyones had any success, any help would be appreciated.

edit
i have now got it to compile without any changes to the source, except replacing the ffmpeg files with the ones from lastest svn of ffmpeg-mt. (ffmpeg .dll.a files & include/ffmpeg files).

it runs but when I try to play a video it comes up with this error
"VideoDecoder: Could not create software image converter"
any idears? I would still be interested in knowing what version of ffmpeg the 5.1 pre10 uses.

if anyone is interested here is source of mythtvplayer 5.1 with ffmpeg-mt that compiles but doesn't work as it comes up  with "Could not create software image converter"
http://cid-c96ead1f17b37c22.skydrive.live.com/self.aspx/my…
This post was edited on 2009-07-07, 00:39 by arobro.
Lomion (Moderator) #2
Member since Jan 2009 · 43 posts · Location: Vienna, Austria
Group memberships: Global Moderators, Members
Show profile · Link to this post
So I got it working with newer FFMPEG Revision 16537 and SDL 1.2.13.
It compiles and play avi and mpeg files (did not test it with a backend yet).

I suggest to commit my changes to trunk and move on from there ... what do you think?
For everybody interested I can provide a svn_patch file in the meantime.
arobro #3
User title: arobro
Member since Jun 2009 · 15 posts · Location: nz
Group memberships: Members
Show profile · Link to this post
Thanks!

I would be very interested in seeing your patch file.
I think it would be an excellent idea to commit your changes to svn. (providing it works with backend)
arobro #4
User title: arobro
Member since Jun 2009 · 15 posts · Location: nz
Group memberships: Members
Show profile · Link to this post
Thanks for the patch

I compiled it and your patch worked without any problems!

It seems to have a beter picture and i used to have a funny line that is now gone.
Seeking works for me and seems reliable. I remember befor version 4.x I used to have problems with seeking.
It works fine with mythtv backend. (version 21 some fixes)

What didn't work
h264 and wmv files
untested nuv files

Overall this is the best mythtv player yet!
I would defiantly recommend submitting this patch.
Lomion (Moderator) #5
Member since Jan 2009 · 43 posts · Location: Vienna, Austria
Group memberships: Global Moderators, Members
Show profile · Link to this post
The latest trunk verion now supports the latest ffmpeg version.

The "Quickstart" chapter from the homepage (http://www.sudu.dk/mythtvplayer/index.php?page=development) should now read as following:

1. Install TortoiseSVN
2. Get the source using SVN
3a. Download and install wxDev-C++
3b. Get MingW compiler running for wxDev-C++
4. Download and unzip the libraries. Copy them to the libs folder in the source tree.
5. Download FFMPEG from http://ffmpeg.arrozcru.org/builds/shared/ffmpeg-r16537-gpl… and unpack it into libs folder in the source tree
6. Download SDL 1.2.x "development libraries" from http://www.libsdl.org/download-1.2.php and unpack it into libs folder in the source tree
7. Copy *.dll files from your installed version of the player to the "release" folder in the source tree
8. Copy *.dll files from FFMPEG and SDL to the "release" folder in the source tree
9. Opened project libspark\Spark.dev . Compile it (Ctrl+F9)
10. Opened project dev-cpp\MythTV Player.dev. Compile it (Ctrl+F9)
11. You now have a compiled version

@Mikkel: Please upload the libs.zip I send you to the homepage to make this easier

Starting with Revision202 the "old" ffmpeg files are not supported any more ... if anybody can give me a good reason to support both APIs I can provide a compiler switch for that :-p

Have fun!
Mikkel (Administrator) #6
User title: Developer
Member since Oct 2006 · 222 posts · Location: Copenhagen, Denmark
Group memberships: Administrators, Members
Show profile · Link to this post
I have finally uploaded the lib that Lomion sent me. I am sorry for the delay
They can be found here: http://www.sudu.dk/mythtvplayer/files/verytmp/libs_2009071…
It is great that Lomion have doing some bug-fixing!

\Mikkel
moliveras #7
Member since Nov 2007 · 8 posts · Location: Milford, NJ  USA
Group memberships: Members
Show profile · Link to this post
Is there any chance you would be willing to provide a compiled package?  I tried to compile mythtv player a while back and never quite got it working.  My guess is that more people would test it and provide feedback if you could link to a compiled version.

Thanks,

Mike
Lomion (Moderator) #8
Member since Jan 2009 · 43 posts · Location: Vienna, Austria
Group memberships: Global Moderators, Members
Show profile · Link to this post
Okay, I prepared a installer file of the latest Revision.
Find it here: http://www.freedrive.com/file/900243
This post was edited on 2009-07-27, 09:08 by Lomion.
linux #9
Member since Aug 2009 · 22 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #5
Hi Lomion,

I tried to compile the source code as described in post #5. But I got an error in VideoDecoder.cpp (avcodec_decode_video2() undeclared). It seems that there is no avcodec_decode_video2() function in FFmpeg Revision 16537.

In the latest nightly snapshot of FFmpeg I could find the avcodec_decode_video2() function. However, I couldn't find the corresponding win32 compiled shared libraries for this (latest) revision.

Which FFmpeg version did you use to compile the latest mythtvplayer revision?

Thank you
Lomion (Moderator) #10
Member since Jan 2009 · 43 posts · Location: Vienna, Austria
Group memberships: Global Moderators, Members
Show profile · Link to this post
After I wrote this post I downloaded the FFMPEG source (revision from 7.7.2009) and compiled it myself.

Just do one of the following:
a) Download and compile the latest FFMPEG
b) Take my libs directory (find it in this directory as a zip file: http://www.freedrive.com/file/900243)
c) Undo the change in Revision 205
--- trunk/src/Player/VideoDecoder.cpp    2009/07/13 17:14:58    204
+++ trunk/src/Player/VideoDecoder.cpp    2009/07/27 08:32:37    205
@@ -166,7 +166,7 @@
 
         LOG_DEBUG4("avcodec_decode");
         // Decode video frame
-        avcodec_decode_video(codecContext, picture , &frameFinished, pkt->data, pkt->size);
+        avcodec_decode_video2(codecContext, picture , &frameFinished, pkt);
 
         LOG_DEBUG4("avcodec_decode, done");

Would be create to have you join the MythTv player community ;-)
linux #11
Member since Aug 2009 · 22 posts
Group memberships: Members
Show profile · Link to this post
Thank you.

I could compile the mythtvplayer using your provided libs (option b).
linux #12
Member since Aug 2009 · 22 posts
Group memberships: Members
Show profile · Link to this post
To work with my mythbackend 0.22 (rev. 20949) I had to apply the following patch:

Index: src/MythTv/MythStream.cpp
===================================================================
--- src/MythTv/MythStream.cpp    (revision 206)
+++ src/MythTv/MythStream.cpp    (working copy)
@@ -143,6 +143,7 @@
     m_cmd.clear();
     m_cmd.add("ANN FileTransfer MythTvPlayer");
     m_cmd.add(filename);
+    m_cmd.add("");
     m_fileConnection.sendAndReceive(m_cmd);
     returnCmd = m_fileConnection.getLastCommand();

It's just a workaround.
linux #13
Member since Aug 2009 · 22 posts
Group memberships: Members
Show profile · Link to this post
The command GET_CONNECTED_INPUTS is in mythtv 0.22 not supported (unknown command).

So mythtvplayer starts up much faster by removing

queryConnectedInputs(mythSocket);

in MythRecorder.cpp.
arobro #14
User title: arobro
Member since Jun 2009 · 15 posts · Location: nz
Group memberships: Members
Show profile · Link to this post
Hi Lomion

I have compiled mythtv player revsion 206, using your libs and noticed my h264 files played. So I though I would try and compile it with todays ffmpeg. So I have upgraded the dlls & .lib files and it compiled with no problems. Everthing works, except when playing h264 it crashes. So I am a bit confused why your libs play h264 and mine don't.

Could i please see your ffmpeg ./configure comand line options?

thanks arobro
mdrons #15
Member since Feb 2009 · 20 posts
Group memberships: Members
Show profile · Link to this post
I get a linker error when trying to compile. 

Compiler: Default GCC compiler
Building Makefile: "C:\Documents and Settings\cdrons\My Documents\mythtv player\mythtvplayer\dev-cpp\Makefile.win"
Executing  make...
mingw32-make.exe -f "C:\Documents and Settings\cdrons\My Documents\mythtv player\mythtvplayer\dev-cpp\Makefile.win" all
g++.exe Release/GUI_fltk2.o Release/GUI_fltk2_config.o Release/GUI_fltk2_context_menu.o Release/gui_gen.o Release/MythBackendEventListener.o Release/MythCommand.o Release/MythLive.o Release/MythStream.o Release/ProgramInfo.o Release/AudioDecoder.o Release/AudioRender.o Release/Demuxer.o Release/ffmpeg_codecToString.o Release/ffmpeg_myth_protocol.o Release/sdlyuvaddon.o Release/VideoDecoder.o Release/VideoRender.o Release/Config.o Release/Event.o Release/EventHandler.o Release/main.o Release/MPController.o Release/SDL_Loop.o Release/GUI_fltk2_filechooser.o Release/ShortcutManager.o Release/MythSocket.o Release/MythRecorder.o Release/MythChannel.o Release/MythScheduler.o Release/MythMarks.o Release/MythProgramChain.o Release/SimpleProgramInfo.o -o "..\Release\MythTv Player.exe" -L"C:/Program Files/Dev-Cpp/Lib" -L"../libs/lib" -lws2_32 -lspark -lfltk2 -lmsimg32 -ltinyxml -lole32  -luuid  -lcomctl32  -lwsock32  -lm -lmingw32 -lpthreadGC2 -lgdi32 -mwindows ../libs/lib/libSDLmain.a ../libs/lib/libSDL.dll.a ../libs/lib/swscale.lib ../libs/lib/avcodec.lib ../libs/lib/avdevice.lib ../libs/lib/avformat.lib ../libs/lib/avutil.lib  -mmmx

../libs/lib/libfltk2.a(FloatInput.o):FloatInput.cxx:(.text+0x1d6): undefined reference to `__strtod'
../libs/lib/libfltk2.a(ValueInput.o):ValueInput.cxx:(.text+0x63): undefined reference to `__strtod'
../libs/lib/libfltk2.a(ValueInput.o):ValueInput.cxx:(.text+0x85a): undefined reference to `__strtod'
../libs/lib/libfltk2.a(drawtext.o):drawtext.cxx:(.text+0x11): undefined reference to `__strtod'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [../Release/MythTv Player.exe] Error 1

Execution terminated


I am using the libs that were provided by Lomion on his download site. 

Any thoughts anyone?
Mike
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Page created in 268.2 ms (233.8 ms) · 137 database queries in 104 ms
Current time: 2013-05-20, 23:14:32 (UTC +01:00)