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 2 Guests are viewing this topic.

baldand

I had a go at making an installable version of the app for Mac.

https://bitbucket.org/baldand/mlrawviewer/downloads/MlRawViewer_1.0.1_alpha.dmg

This was made using pyinstaller, and it has been tested on a couple of machines running 10.9 (Mavericks).

Once it is installed to you Application directory, you should be able to click on a MLV or RAW file to open them with it. Alternatively, drag the raw file onto the App icon to open it.

It's mostly keyboard driven at the moment - keys are described here: https://bitbucket.org/baldand/mlrawviewer/overview

Addtionally: ESC exits the app.

There is no way to supply a file name for the ProRes encoding, so by default when you press E, it will encode to the same filename as the source with .MOV appended.

Please report crashes/problems/issues to https://bitbucket.org/baldand/mlrawviewer/overview using the Issues button.

Questions/feature requests etc can be here.

Danne

Fantastic work. Can watch rawfiles in realtime in high quality with my macbook pro. Amazing.
Had issue when hitting spacebar and wants to encode. I have created an issue report. Looks like this.
Big thanks for this!



baldand

@Danne, thanks - can you post a bit more info the issue report if possible. See the responses there.

Danne


ouuzi

Fantastic!!!
How to install the ffmpeg?Unzip and click on it?

Danne


timbytheriver

@baldand

Thank you for helping out Mac! My install crashes as soon as I drag a .raw file onto the app icon. Do I still need to install Python etc. before I install this app? I'm a little confused – sorry!

I'm on OSX 10.7.5

Thanks!
5D3 1.1.3
5D2 2.1.2

baldand

Quote from: ouuzi on December 18, 2013, 04:06:46 PM
Fantastic!!!
How to install the ffmpeg?Unzip and click on it?

The Mac install package includes ffmpeg.

For Windows or Linux you should download a version from http://ffmpeg.org/download.html

Quote from: timbytheriver on December 18, 2013, 04:16:33 PM
@baldand

Thank you for helping out Mac! My install crashes as soon as I drag a .raw file onto the app icon. Do I still need to install Python etc. before I install this app? I'm a little confused – sorry!

I'm on OSX 10.7.5

Thanks!

It should include everything needed - no need to install a python unless you are building it from source. I've only been able to test on 10.9/Mavericks. I really have no idea will this package work at all on an earlier OS X version. (Mavericks is a free upgrade, and you should be able to upgrade direct from 10.7.x)

Danne

also tested the viewer with a clip from a 550D at work.(my 5d mark 3 is at home)
Seems the issue with strange frameissue/encoding is because of the framerate. 24fps is ok but 25fps causes the same issue as on my 5d mark 3.
This viewer/encoder is amazing
Thanks!
/D

timbytheriver

Quote from: baldand on December 18, 2013, 04:26:35 PM
The Mac install package includes ffmpeg. ... It should include everything needed - no need to install a python unless you are building it from source.

Thanks for the clarification – I'll persevere! :)

@baldand – PS Should the 'Frameworks' folder inside the package be empty? Mine is! :o
5D3 1.1.3
5D2 2.1.2

baldand

Quote from: timbytheriver on December 18, 2013, 05:25:15 PM
Thanks for the clarification – I'll persevere! :)

@baldand – PS Should the 'Frameworks' folder inside the package be empty? Mine is! :o

Yes, frameworks folder should be empty.

ouuzi

I have checked the exported .mov but it is 422 (HQ) Is this expected behaviour?
OSX 10.9

baldand

Quote from: ouuzi on December 18, 2013, 06:13:12 PM
I have checked the exported .mov but it is 422 (HQ) Is this expected behaviour?


I haven't checked that. On Linux, the same parameters produce 10bit 444. I'll take a look and see what's going on.

Midphase

Quote from: baldand on December 18, 2013, 02:26:41 PM
I had a go at making an installable version of the app for Mac.

https://bitbucket.org/baldand/mlrawviewer/downloads/MlRawViewer_1.0.1_alpha.dmg

Thank you, this is awesome and definitely a step in the right direction.

.raw files play back smoother on my (aging) 2ghz MBP than .mlv files, is this expected behavior?


ouuzi

@Midphase Can you check the codec in the exported files please?

baldand

Quote from: Midphase on December 18, 2013, 07:21:02 PM
Thank you, this is awesome and definitely a step in the right direction.

.raw files play back smoother on my (aging) 2ghz MBP than .mlv files, is this expected behavior?

This could just be the indexing. RAW files frames come in order. MLV frames can be spread out through the whole set, so they need indexing first - this can take a few seconds during which playback might be slower (if for example you have a HD rather than an SSD). But once indexed, it should play at the same speed as RAW. At the moment the indexes are not persisted, but that might come later as MLV has a format for external IDX files.

baldand

Quote from: Danne on December 18, 2013, 04:57:24 PM
also tested the viewer with a clip from a 550D at work.(my 5d mark 3 is at home)
Seems the issue with strange frameissue/encoding is because of the framerate. 24fps is ok but 25fps causes the same issue as on my 5d mark 3.
This viewer/encoder is amazing
Thanks!
/D

I tried the sample RAW file you uploaded, and unfortunately that is playing back and encoding fine for me.

Would you be able to make similar examples at 24 & 25 fps that I could try to compare for a clue what the problem could be?

timbytheriver

Anyone on OSX 10.7.5 able to run this and help me get it working? It crashes for me...

It looks great though! (Thanks to @baldand)
5D3 1.1.3
5D2 2.1.2

baldand

Quote from: ouuzi on December 18, 2013, 06:13:12 PM
I have checked the exported .mov but it is 422 (HQ) Is this expected behaviour?
OSX 10.9

If I play back the encoded MOV files with ffplay, it's reported decoded as yuv444p10le.

If I change the ffmpeg parameters to use explicitly yuv422p10le, ffplay playback also reports yuv422p10le.

What tool are you using to check the encoding? I see that Resolve is claiming all the files are "ProRes 422 (HQ)" even when ffplay reports 444.


Danne

THanks for looking into. Still at work but did a little more testing with a 550D. Seems both 24 and 25fps works with smaller sizes. Tried 640x360 I believe. Turns out the last test was done in 24fps and with smaller size that,s why it worked.

But, when playing recorded 1280x720 both 24 and 25fps fails and recreates the problem I had with the first 5d mark 3 file.
Here,s one of the failing 24fps examples
http://sprend.com/download.htm?C=2b1ff5b9b7484b2e9f18c83b04f9f72b

By the way. My encoded file shows ProRes422(HQ) I Checked info from file by rightclicking


Thanks!
/D

baldand

Quote from: timbytheriver on December 18, 2013, 08:21:23 PM
Anyone on OSX 10.7.5 able to run this and help me get it working? It crashes for me...

It looks great though! (Thanks to @baldand)

Another option for you is to try to run the binary version from the command line. All you need to do it open a command prompt,
cd /Applications/mlrawviewer.app/Content/MacOS
./mlrawviewer /path/to/file.MLV

Then see what errors are printed to the command line.



baldand

Quote from: Danne on December 18, 2013, 08:24:31 PM
But, when playing recorded 1280x720 both 24 and 25fps fails and recreates the problem I had with the first 5d mark 3 file.
Here,s one of the failing 24fps examples
http://sprend.com/download.htm?C=2b1ff5b9b7484b2e9f18c83b04f9f72b
/D

Hmmm... size related? Is there any possibility this is connected with GPU RAM?
Do you know what kind of GPU you have, and how much RAM it has?

Also, could you maybe try the same thing I just suggested to timbytheriver, and run the app from command line, to see if it reports any errors there.

timbytheriver

Quote from: baldand on December 18, 2013, 08:39:27 PM
try to run the binary version from the command line.

That's clever! Thanks. It crashes again, but terminal reports:

Segmentation fault: 11

5D3 1.1.3
5D2 2.1.2

Danne

Probably size.
I have an
Intel HD Graphics 3000 512 MB
I,ll try the command line prompt a little bit more, didn,t get it to work through in terminal though.

Danne

I get this info from runnin the encoder.

itgusers-MacBook-241:ny itguser$ /Users/itguser/Desktop/ny/mlrawviewer.app
-bash: /Users/itguser/Desktop/ny/mlrawviewer.app: is a directory
itgusers-MacBook-241:ny itguser$ /Users/itguser/Desktop/ny/mlrawviewer.app/Contents/MacOS/mlrawviewer /Users/itguser/Desktop/ny/M18-0657.RAW
MlRawViewer v1.0.1
(c) Andrew Baldwin & contributors 2013
Opening MLRAW file /Users/itguser/Desktop/ny/M18-0657.RAW
Black level: 2047
2013-12-18 21:29:19.236 mlrawviewer[11638:507] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
2013-12-18 21:29:19.237 mlrawviewer[11638:507] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
Width: 1280 Height: 720 Frames: 70
Using Bilinear demosaic algorithm
/var/folders/rt/c1mvkpt904q_fgq6fcn63btr0000gn/T/_MEITzLzOM/ffmpeg
Encoder args: ['/var/folders/rt/c1mvkpt904q_fgq6fcn63btr0000gn/T/_MEITzLzOM/ffmpeg', '-f', 'rawvideo', '-pix_fmt', 'rgb48', '-s', '1280x720', '-r', '25', '-i', '-', '-an', '-f', 'mov', '-vf', 'vflip', '-vcodec', 'prores_ks', '-profile:v', '3', '-r', '25', '/Users/itguser/Desktop/ny/M18-0657.RAW.MOV']
ffmpeg version 2.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 21 2013 13:33:40 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --enable-runtime-cpudetect
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, rawvideo, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: 1105920 kb/s
    Stream #0:0: Video: rawvideo (RGB0 / 0x30424752), rgb48le, 1280x720, 1105920 kb/s, 25 tbr, 25 tbn, 25 tbc
Output #0, mov, to '/Users/itguser/Desktop/ny/M18-0657.RAW.MOV':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: prores (prores_ks) (apch / 0x68637061), yuv444p10le, 1280x720, q=2-31, 200 kb/s, 12800 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> prores_ks)
frame=    3 fps=0.0 q=0.0 size=     266kB time=00:00:00.12 bitrate=18131.8kbits/frame=    5 fps=3.6 q=0.0 size=     443kB time=00:00:00.20 bitrate=18130.8kbits/frame=    5 fps=2.3 q=0.0 size=     443kB time=-577014:-32:-22.-77 bitrate=N/A  frame=    5 fps=2.2 q=0.0 Lsize=     443kB time=00:00:00.20 bitrate=18158.4kbits/s   
video:443kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.160182%