OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Multimedia => Topic started by: Mike Snyder on September 04, 2020, 01:08:15 am
-
I play golf, sort of. I also like to watch golf instructional videos on the Golf Channel, and record them for future viewing. I have used a WinTV PVR card and EmperoarTV for this purpose for years, and it still works fine. I don't want to see the commercials more than once, so for years I have used ProjectX to cut them out, mplex to put the audio and video back together, and ffmpeg to convert the resulting .mpg file to a small .avi file for storage. The latter two things have stopped working correctly. They worked under ArcaOS 5.0, but at some point they stopped. I'm at 5.0.5 now.
If I run ProjectX under Golden Code java, it appears to work, but the .mp2 and .m2v files cannot be reassembled by mplex. The audio seems to be OK, because the file that mplex produces has audio, but no video, but I've no way to check either of them except that they either mplex or not. If I use the jave in 5.0.5, the program loads, but when I try to add a file, it crashes with no error message at all.
I recently copied the .mpg file produced by EmperoarTV to my OpenSUSE system and ran ProjectX under whatever java it has. The resulting files were able to be multiplexed with mplex after I cut out the commerials. The file will play in VLC, but cannot be converted to .avi with ffmpeg in Linux or in ArcaOS. It will convert to an .mkv file with Handbrake, but at about twice the size of the former .avi files.
Is anyone else using ProjectX in ArcaOS for this sort of activity? What java are you using? Is there an easier way to do what I am doing in ArcaOS?
Thanks,
Mike
-
I don't know the programs and searching for mplex doesn't help. Can you bypass the mplex step and just use FFmpeg to mux the audio and video in an AVI? What formats does ProjectX spit out?
FFprobe is a useful program included with FFmpeg to find out what format a file is.
-
Hi Michael.
I have no experience with those programs, but just to inform the rest, can you confirm the version that you are using under ArcaOS:
- projectx_v0.90.4.00-2006-03-31-rel2.zip (https://hobbes.nmsu.edu/download/pub/java/apps/mmedia/projectx_v0.90.4.00-2006-03-31-rel2.zip)
- mplex-1.6.2.zip (https://hobbes.nmsu.edu/download/pub/os2/apps/mmedia/mplex-1.6.2.zip)
Are those?
Regards
-
Hi
I just made a quick test with Project-X 0.91 and OpenJDK on ArcaOS, and it runs. I don't know if it will work correctly since I don't know how to use it.
I only changed the path of the "startos2.cmd" file.
Regards
-
Hi
I can not run mplex 1.6.2 on ArcaOS. It says it was compiled with innotek gcc, so it is an old port.
I get:
[C:\HOME\DOWNLOADS\MPLEX-1.6.2]mplex
SYS1804: The system cannot find the file LIBC06B4.
Maybe someone with compiling experience can recompile it (there is a build.cmd file on it (https://hobbes.nmsu.edu/download/pub/os2/apps/mmedia/mplex-1.6.2.zip)), or maybe port some newer version (https://sourceforge.net/projects/mjpeg/files/mjpegtools/).
Regards
-
Hi
I can not run mplex 1.6.2 on ArcaOS. It says it was compiled with innotek gcc, so it is an old port.
I get:
[C:\HOME\DOWNLOADS\MPLEX-1.6.2]mplex
SYS1804: The system cannot find the file LIBC06B4.
Maybe someone with compiling experience can recompile it (there is a build.cmd file on it (https://hobbes.nmsu.edu/download/pub/os2/apps/mmedia/mplex-1.6.2.zip)), or maybe port some newer version (https://sourceforge.net/projects/mjpeg/files/mjpegtools/).
Regards
Seems to be missing the actual source. Best would be to try building the more up to date source from http://sourceforge.net/projects/mjpeg (http://sourceforge.net/projects/mjpeg), which I don't have time for right now but probably wouldn't be hard.
Here's the dll.
-
Hi
I can not run mplex 1.6.2 on ArcaOS. It says it was compiled with innotek gcc, so it is an old port.
I get:
[C:\HOME\DOWNLOADS\MPLEX-1.6.2]mplex
SYS1804: The system cannot find the file LIBC06B4.
Maybe someone with compiling experience can recompile it (there is a build.cmd file on it (https://hobbes.nmsu.edu/download/pub/os2/apps/mmedia/mplex-1.6.2.zip)), or maybe port some newer version (https://sourceforge.net/projects/mjpeg/files/mjpegtools/).
Regards
Seems to be missing the actual source. Best would be to try building the more up to date source from http://sourceforge.net/projects/mjpeg (http://sourceforge.net/projects/mjpeg), which I don't have time for right now but probably wouldn't be hard.
Here's the dll.
Updated mplex at http://smedley.id.au/tmp/mplex.zip
or a full build of mjpegtools 2.1.0 - http://smedley.id.au/tmp/mjpegtools-2.1.0-os2-20200904.zip
-
I'm using projectx_v0.90.4.00-2006-03-31.zip. I was using mplex from the 1.8.0 version of mjpegtools, but thanks to Paul, I'll now be using the 2.1 version. ;D Is that quick service! Martin, the program starts with the JDK from 5.0.5, too. Can you load an .mpg file of about 1Gb size into it? Mine crashes when I load the file that I need to edit, even if it's the only program running.
I've never tried to use ffmpeg to multiplex the files, but will see whether I can figure out how to do that.
Thanks for the input, and for the new build, Paul.
-
I decided to try this with ProjectX_.0.91, so I downloaded the files from sourceforge. Extracted the files from the zip file and discovered that the readme says to build the jar from the sources. I tried that, setting the java_home directory to g:\programs\openjdk. I get the following error:
SYS1041: The name "G:\Programs\OpenJDK\bin\jar.exe" is not recognized as an internal or external command, operable program or batch file.
I don't usually build anything, so I've no idea what this means or how to fix it.
Ideas?
-
As I understand it the openjdk6 is the runtime and for building things you need the openjdk6-sdk.
-
Are those files on the ArcaOS install disk? If so, how can I extract just the java sdk files so that I can build the jar? Can that be done without installing the update?
-
Are those files on the ArcaOS install disk? If so, how can I extract just the java sdk files so that I can build the jar? Can that be done without installing the update?
Should be, if not then: ftp://ftp.netlabs.org/pub/java/openjdk6_b27_ga5/openjdk6_b27_sdk_os2_ga5-20130217.zip
or
ftp://ftp.netlabs.org/pub/java/openjdk6_b27_ga5/
-
Can you load an .mpg file of about 1Gb size into it? Mine crashes when I load the file that I need to edit, even if it's the only program running.
Try increasing VIRTUALADDRESSLIMIT to 2560 or even 3072
-
Man, have I learned a lot today. My virtual address limit is already set to 3072.
Thanks for the link. I downloaded the java 6 SDK and installed it. After a couple of hickups, like not understanding that it needed both the jre and the sdk to compile anything, the new ProjectX.jar version 0.91 compiled, loaded, and edited a video file. I nearly fell out of my chair!
The 2.1 version of mplex multiplexed the files from ProjectX, and ffmpeg converted the .mpg to an .avi less than half of the original size. The .avi file plays just fine in KMP version 0.7.1.
However, it will not play in VLC 3.11, the latest version, or the previous one that I was using, 3.10. The file loads and starts to play, but does not show the video and the audio and the whole window of VLC stutter. I don't know how better to describe what it is doing, but I obviously can't use it. Apparently VLC was part of the problem, though not all of it. Has anyone else had this trouble with VLC?
-
Thanks Paul for the port.
Michael, I don't know the reason of why you compiled ProjectX 0.91 under OS/2, since the ProjectX 0.91 (https://www.os2world.com/forum/index.php?action=dlattach;topic=2557.0;attach=6631) jarwas already there and runs , but it is awesome that you were able to do that on ArcaOS.
I was not able to test on the "site compiled" ProjectX 0.91 jar if it works with a 1GB video or if it crash. But if you notice any difference between the "site jar" and "your compiled jar", please post the file.
Regards
-
What does ffprobe report about the AVI? Might want to open an issue for VLC at github or email KOMH.
-
Sorry to take so long to answer your question. The problem was operator error. I've used SNAP as my video driver for years, but the updates of ArcaOS only seem to work correctly if you use Panorama, so after several update failures, I changed the video driver and got a successful update. I had forgotten that there is a setting for the video driver in VLC that I had set to SNAP. When set to Warpoverlay, VLC loads and plays the videos as it should. That was not the only problem I had, but getting the new mjpeg tools and the newer ProjectX solved the rest of them. Thanks to all who helped.