MlRawViewer 1.3.3 (CDNG/MLV/RAW Viewer & Encoder, Linux/Mac/Win)

Started by baldand, December 09, 2013, 06:10:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

baldand

@Danne thanks. Unfortunately no clues there. I suppose it's something in the data transfer from CPU to GPU. We've had trouble with Intel GPUs on other platforms due to texture formats and this could be another instance of that.

baldand

Quote from: timbytheriver on December 18, 2013, 08:44:15 PM
That's clever! Thanks. It crashes again, but terminal reports:

Segmentation fault: 11
Thanks. Sadly not enough to pinpoint the problem.

At this point, if you are really keen to get it working and happen to have XCode with the command line compiler installed (or be willing to install that) I would suggest trying to follow the instructions from http://www.magiclantern.fm/forum/index.php?topic=9560.msg91924#msg91924 to compile it from source.

I have had an earlier version working that way on 10.7.x before I upgraded to 10.9.

Danne

Cool! Thanks anyway. Being able to view the files with this quality is really good. Eventually gonna upgrade to a machine with nvidia graphic card. Should work better than what I got now.
/D

timbytheriver

Quote from: baldand on December 18, 2013, 09:46:42 PM
I would suggest trying to follow the instructions from http://www.magiclantern.fm/forum/index.php?topic=9560.msg91924#msg91924 to compile it from source.

I have had an earlier version working that way on 10.7.x before I upgraded to 10.9.

Thanks! I'll take a deep breath and have a go. :)
5D3 1.1.3
5D2 2.1.2

baldand

I also had a go at making a win32 exe version of MlRawViewer using pyinstaller.

You can get it from here https://bitbucket.org/baldand/mlrawviewer/downloads/MlRawViewer-1_0_2_alpha-win32.zip

Unzip the package, look at the README for key controls, and run the exe with the name of an MLV and RAW file.

You should be able to manually set a file association in the system to launch it automatically for any RAW or MLV file.

It's a win32 binary. I've tested this only on one Windows 7 machine with low-end AMD GPU. I have no idea what other Windows environments it will work on (e.g. it may not work in Windows 8 or WinXP).

You may well have trouble if you only have an Intel GPU, especially if it is old or low-end.

Please post issues to bitbucket: https://bitbucket.org/baldand/mlrawviewer/issues

Features and questions here.

ItsMeLenny

And you don't need a bitbucket to be able to post an issue (afaik).

Also; pushed an aspect ratio fix earlier, so I hope people enjoy resizing their video screen :P :)

g3gg0

Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

RenatoPhoto

Excellent work!!

@ baldand:  Can you please update your opening post with the latest links and findings of you research?  By doing this the new comers do not have to read the entire post to get up-to-speed.

Thanks
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

ouuzi

I have tested with quicktime and final cut pro,it show as a codec ProRes 442 (HQ).Do you have any other alternatives?

baldand

Quote from: RenatoPhoto on December 19, 2013, 03:07:24 PM
Excellent work!!

@ baldand:  Can you please update your opening post with the latest links and findings of you research?  By doing this the new comers do not have to read the entire post to get up-to-speed.

Thanks

Sure. I've been trying to update it already with features and links to the binaries. Maybe I will try to add also e.g. installation instructions for different platforms.

Quote from: ouuzi on December 19, 2013, 03:21:13 PM
I have tested with quicktime and final cut pro,it show as a codec ProRes 442 (HQ).Do you have any other alternatives?

Since we are using ffmpeg and feeding it rgb48 data, it should be possible to use any parameters that work for that normally. The current arguments are:

ffmpeg -f rawvideo -pix_fmt rgb48 -s <width>x<height> -r <fps> -i - -an -f mov -vf vflip -vcodec prores_ks -profile:v 3 -r <fps> <outfilename>

The key arguments to play with here are "-vcodec prores_ks -profile:v 3"

Later it would be good to expose those as a configurable parameter so that the container, codec and quality can be tweaked.

@ouzzi perhaps you could try playing with an ffmpeg binary from http://www.ffmpeg.org/download.html and see if you can find some better alternative arguments?

ouuzi

I can not make it work.How do you play a file in ffplay?I am a noobie.

baldand

If you have homebrew installed (http://brew.sh/), then you can get ffplay on Mac by doing, from a command line:

brew install ffmpeg --with-ffplay

Then launch ffplay with the name of the file e.g.

ffplay /Volumes/MyVideos/video.mov

It will print out details such as the codec and frame format.

dariSSight

Quote from: baldand on December 09, 2013, 06:10:19 PM


MlRawViewer

MlRawViewer is a cross-platform viewer for raw video files produced by Magic Lantern.

It supports both the original RAW format, and the newer MLV (RAW v2.0) format in both single and multi-file versions.

Features/usage


  • RAW and MLV playback at up to 25FPS (if you have fast file read and modest GPU), single and multi-file
  • Progress bar and timestamp overlay
  • Pause playback using SPACE key
  • Step forward and backward through frames by one second (LEFT/RIGHT cursor keys) or one frame (,/. keys) while playing or paused
  • Brightness control while playing using UP/DOWN cursor keys
  • Fast GPU Bilinear demosaicing for playback
  • High-quality (but slow) CPU demosaicing (AMaZE) when paused or enabled (Q key)
  • Encoding frame sequences to ProRes using ffmpeg with E key
  • White Balance adjustments. Keys: 1=WhiteFluoro,2=Daylight,3=Cloudy,4=Tungsten,0=None
  • Exit viewer with ESC key

Linux Installation & Usage

Any normal Linux distribution (32 or 64bit) should work, but only Ubuntu 12.04 64bit has been extensively tested. NVIDIA or AMD GPUs using properietary drivers should work best. You may be able to use Intel GPUS, but problems may increase the older the GPU.

You should get the source code either with git (see below) or from a snapshot: https://bitbucket.org/baldand/mlrawviewer/get/master.tar.bz2

You should use python 2.7 (not python 3), and install pyOpenGL and numpy package. On Ubuntu/Debian do:


sudo apt-get install build-essential python-opengl python-numpy
python setup.py build_ext --inplace
chmod +x mlrawviewer.py
./mlrawviewer.py /path/to/file.MLV [/path/to/encodedfile.MOV]


Then the video should appear and playback immediately. See above for keys.

Mac OS X 10.9 Installation and Usage

A binary release or source build can be used. The binary release is only known to work with 10.9.x. Source builds may work with earlier OS X releases.

NVIDIA and AMD GPUs will work best. Intel GPUs may work, but problems have been reported with e.g. HD3000.

Download the DMG from https://bitbucket.org/baldand/mlrawviewer/downloads/MlRawViewer_1.0.1_alpha.dmg

Click the DMG to mount it, and drag the icon to your Applications folder.

The application cannot be opened directly. Instead, drag an MLV or RAW file into the app, or open a file using the app.

Windows 7 Installation and Usage

A binary release or source build can be used. The binary release is only known to work properly with Windows 7 (32bit or 64bit). Source builds may work with earlier Windows versions.
It has been run on Windows 8 with some success - files can be viewed, but it crashes when SPACE or Q key are pressed (problem in CPU demosaicing).

NVIDIA and AMD GPUs will work best. Intel GPUs may work, but problems have been seen with some older chips.

Download the zip from https://bitbucket.org/baldand/mlrawviewer/downloads/MlRawViewer-1_0_2_alpha-win32.zip

Open the zip, and copy mlrawviewer.exe to somewhere in your machine.

The application cannot be run directly. Instead, drag an MLV or RAW file into the app icon (or a shortcut), or set up a file association so it opens when you double click a video file.

Alternatively you can run it from a command line, which also allows you to specify the encoding file name.

A log file (mlrawviewer.log) is generated when/where the program is run. In case of problems, please check and share the log to help the developers identify the causes.

Implementation details

The program is written in python, and makes use of OpenGL for image processing in order to be able to display videos at their intended frame rate. This also depends on you having good file read speed in your computer.

Almost everything (apart from bitunpacking and CPU demosaicing) is written in python, so it is quite easy to install, modify and extend in case you are familiar with that language.

The license for the program source code excluding AMaZE is BSD-style.
The license for the AMaZE demosaicer (amaze_demosaic_RT.c) is GPLv3
The license for ffmpeg is GPLv3.
Hence, binary releases of MlRawViewer must be GPLv3.

Testing, feedback and code contributions are welcome.

Home page: https://bitbucket.org/baldand/mlrawviewer
Git repo: https://[email protected]/baldand/mlrawviewer.git
Bug tracker: https://bitbucket.org/baldand/mlrawviewer/issues

I just join the MlRawViewer movement and I just want to say this app on my Mac is much need so thanks, I've been trying to view my video .RAW File but now I have a stable viewer.
Canon 5D Mark II

ouuzi

ffplay
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/Work/Desktop/M20-0822.RAW.MOV':
  Metadata:
    major_brand     : qt 
    minor_version   : 512
    compatible_brands: qt 
    encoder         : Lavf55.19.104
  Duration: 00:00:07.28, start: 0.000000, bitrate: 147273 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv444p10le, 1920x818, 147266 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc


This is the printout.Prores 444 right?Why OSX is show the file as 422 any thoughts?Is it really usable as 444 now,or limited because of osx ?

g3gg0

Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

bluebit25

I can confirm that the MlRawViewer does not work in 10.8.5, I drag the MLV file onto the program and the program quits unexpectedly. Tried other ways to open it, nothing. Guess I'll have to install a separate linux system and dual boot it on my macbook pro, not going to be upgrading to Apple's stupid 10.9.X

LINUX ALL THE WAY

baldand

Quote from: bluebit25 on December 20, 2013, 06:52:35 PM
I can confirm that the MlRawViewer does not work in 10.8.5, I drag the MLV file onto the program and the program quits unexpectedly. Tried other ways to open it, nothing. Guess I'll have to install a separate linux system and dual boot it on my macbook pro, not going to be upgrading to Apple's stupid 10.9.X

LINUX ALL THE WAY

I think you probably would be able to get it working ok on 10.8.5 by building from source following the steps here (assuming you have XCode & the command line compiler):

http://www.magiclantern.fm/forum/index.php?topic=9560.msg91924#msg91924

baldand

Quote from: g3gg0 on December 20, 2013, 06:22:02 PM
i am really impressed, very good work :)

Thanks!

The colour processing is still very simple compared to the camera matrix, white balance and LUT support in MLVViewSharp. And it needs a working GUI - not just key controls. But hopefully some of those features can be added in time.

pavelpp

Crashes on OSX 10.7.5 . Will wait for a stable version, but I like the idea ))

MvM

  :D :D :D :D Works perfectly here on win 7 64 when playing raw and mlv from my ssd ! Just a maybe : how about support for mlv.snd Sound ? Would  be the absolute point of maturing of MLV and Magiclantern RAW !

Thanks for reading and your amazing work !

djfremen

This is really close to something great. Wish the "e" key command would launch a customized output setting where ProRes 4444 was selectable. Also the frame-rate is currently locked to 25 FPS.

Lastly, this is a pipe dream - once you hit "e" key ACR launches ;)

baldand

Quote from: MvM on December 22, 2013, 11:48:51 AM
  :D :D :D :D Works perfectly here on win 7 64 when playing raw and mlv from my ssd ! Just a maybe : how about support for mlv.snd Sound ? Would  be the absolute point of maturing of MLV and Magiclantern RAW !

Thanks for reading and your amazing work !

I would like to add audio support, both for mlv_snd embedded in the mlv, and separate wav files made with an external recorder like a ZOOM H1 (which is what I use).

One problem with mlv_snd is I don't have any MLV examples with audio embedded to test with, because it's not yet working with 7D. If someone could put an example online I could work on that.

Danne

Hi Baldand. Here,s a .MLV containing audio. Short and in 1280x720p since I,m on a mobilephone network.
https://drive.google.com/file/d/0B4tCJMlOYfirOW95a3NHeHE5cGM/edit?usp=sharing
Thanks for efforts!
/D

nigel

Quote from: g3gg0 on December 19, 2013, 01:48:15 PM
win7 x64, nvidia card: works like a charm

Same here. Win 7 x64 pro and nvidia gpu.

baldand

Quote from: Danne on December 23, 2013, 01:17:38 AM
Hi Baldand. Here,s a .MLV containing audio. Short and in 1280x720p since I,m on a mobilephone network.
https://drive.google.com/file/d/0B4tCJMlOYfirOW95a3NHeHE5cGM/edit?usp=sharing
Thanks for efforts!
/D

Thanks. That's exactly what I needed.