Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Old Video .MOV files with JPEG or MJPEG compression: needs WMP codec

- - - - -

  • Please log in to reply
28 replies to this topic

#1
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
Hi,

I got video files from a 10-year old (Olympus) camera transferred from my XP computer to my Windows 7 (with WMP12) 64-bit machine. The old video files don't seem to play in the WMP12 (Windows 7), they do play on the XP computer without any problem.

With MediaInfo I noticed the video file is a JPEG (or should I say MJPEG) compressed .MOV file. The info from MediaInfo follows here after.

On the website of the manufacturer of the camera (Olympus) I couldn't find any JPEG or MJPEG video codec for downloading. I was wondering if somebody could tell me what the 'best' and FREE codec(s) are for WMP12 playing (M)JPEG .MOV video files? Help would be much appreciated.

Alternatively, I could consider installing a Codec Pack like: Media Player, Windows 7, Cole2k Media, K-Lite Mega or any other large codec pack. However, I'd like to wait with installing those codec pack: I don't know what they'll do to the existing WMP codecs, and what kind of 'surprises' they may hold for later on.

Off course, if one of those codec packs would allow for the installation of a SINGLE codec (MJPEG for instance), then I could consider it. If anyone has knowledge of any codec pack that allows the installation of a single codec, then please let me know.

Thanks in advance,
Regards, Johan

-------------------------
General

Complete name : E:\PB250024.MOV
Format : QuickTime
Format/Info : Original Apple specifications
File size : 1.09 MiB
Duration : 3s 267ms
Overall bit rate mode : Variable
Overall bit rate : 2 811 Kbps
Movie name/More : OLYMPUS DIGITAL CAMERA
Encoded date : UTC 2009-11-25 16:53:09
Tagged date : UTC 2009-11-25 16:53:09
Writing library : Olympus
Origin : Digital Camera

Video
ID : 1
Format : JPEG
Codec ID : jpeg
Duration : 3s 267ms
Bit rate mode : Variable
Bit rate : 2 705 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 15.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 2.348
Stream size : 1.05 MiB (96%)
Language : English
Encoded date : UTC 2009-11-25 16:53:09
Tagged date : UTC 2009-11-25 16:53:09

Audio
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : raw
Duration : 3s 267ms
Bit rate mode : Constant
Bit rate : 64.0 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 8 bits
Stream size : 25.5 KiB (2%)
Language : English
Encoded date : UTC 2009-11-25 16:53:09
Tagged date : UTC 2009-11-25 16:53:09


How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,913 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

It looks like your camera uses the Apple implementation of MJPEG. As noted on Wikipedia, Microsoft expects these types of files to be AVIs. However, it also appears that this type of media file isn't used enough to have contined support to be included for WMP in Windows 7, as TechNet also shows it won't play the AVI type either.
http://social.techne...8-f76ba3e852c9/
Here is the homepage for FFDShow, maybe it will help for this kind of file:
http://www.ffdshow.info/

Or maybe it still works in Quicktime. :unsure:
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#3
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
If you want something standalone and if you are ok to drop wmp12, you could try open source alternatives like vlc mediplayer, or smplayer ...
If you still want a standalone codec only for the quicktime format, you could try Quicktime alternative.

#4
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
Hi Tripredacus, hi Allen2,

I'm not sure if ffdshow can help me here. Ffdshow does handle Quicktime video format but I couldn't find any information about codecs handling (M)JPEG inside a .MOV container, athough --I have to admint-- if some software supports Quicktime video, then it should likely support (M)JPEG compression in a .MOV too. I'll sort it out by testing maybe later.

As for Quicktime alternative, this could be a solution too.

However, I would like to do some other testing first, and for that I'd prefer a clean media environment with only WMP; I would like to convert the (M)JPEG .MOV video files to another format and see how that works.

So I'm now considering converting my old JPEG .MOV video files to another file format, and maybe to another (video and audio) compression algorithm (codec) too, if the latter is possible with freely available converters. Hence that I have a few questions.

1) What is the most widely (internationally) accepted, most widely compatible with any video player, and most 'open' video file format? Is that .MP4, or could the .MOV format --although proprietary, I believe-- be a better pick, or is there still another video file format out there which could be more future-proof/robust?

2) About the video compression, is H.264 the most widely used/accepted compression, or is there already another compression algorithm showing signs of being better future-proof?

3) The same question as previous but this time for the audio compression; which is the most standardized and the best audio compression with the least potential for making trouble in a few years time from now (by having become obsolete)?

4) Wat is the 'best' converter according to your experience/opinion. The notion of 'best' is very much susceptible to interpretation and I leave it up to you to fill in its definition. One of the meanings of 'best' could be, high quality output files which any player can play, high quality video image with minimal image noise, high quality audio, ...

thanks
j

#5
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
Here are my answers:
1) mp4 is quite usual now but .mov isn't. You could also use mkv as it is heavily used for many kinds and should be still supported for a few years.
2) H264 is now a standard and it will stay that way for some years as it is used for bluray.
3) mp3 is still a standard for stereo audio. But AC3 is the choice for 5.1 audio.
4) ffmpeg is most likely one of the best as it can handle almost any source and convert to almost any format/codec. As it is a command line utility, it is very handy for batch conversion of a lot files.

#6
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
I've done some conversions from mjpeg/mov to mjpeg/avi and to h264/mp4. In all cases video quality is slightly degraded. It looks there is clearly decompression and a re-compression involved.

I used *Pazera Free MOV to AVI Converter 1.6* (which is based on ffmpeg I think) to convert only the file format, so mov to avi and just plain-copy the mjpeg compressed video and pcm audio from the mov file to the newly converted avi file.

The new mjpeg/avi video worked fine in Real Player, QT and WMP6.4 on my old WinXP (32bit) but some quality degradation was noticeable; on WMP12 (Win7 computer), only the sound worked, there was no video (maybe WMP does not have any MJPEG codec on board).

So I am not sure about *Pazera Free MOV to AVI Converter 1.6*; as the video quality degraded (a bit) I''m starting to think that the function of plain-copying the video did involve a decompression and re-compression of the video, so from mjpeg to mjpeg again. But I'm not sure. So I got a question about ffmpeg before I start going through all the trouble and hassle of installing and testing ffmpeg.

1) Can ffmpeg convert ONLY video FILE formats, for instance from MOV to AVI, and plain copy the MJPEG video and PCM audio content to the AVI file, so without any decompression en re-compression of video and audio?

I've done some tests with Any-Video-Converter too ( http://www.any-video-converter.com ). That converted the mjpeg/mov video file right away to h246/mp4, which is actually my preferred compression/format. However, degradation in quality was noticeable. So the next question:

2) Is there the possibility in ffmpeg to change or fine-tune the compression strength (compression level: high, low, medium) when converting to h264? In my Canon camera I have the possibility to set the compression level on High or Low. High means small video file sizes but less detail/quality in the video, while Low compression means larger files but more detail in the video and so higher video quality. I was wondering if that is also possible in ffmpeg?

Thanks in advance,
J

#7
cdob

cdob

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,000 posts
  • Joined 29-September 05

I got video files from a 10-year old (Olympus) camera transferred from my XP computer to my Windows 7 (with WMP12) 64-bit machine.

Try MP4Cam2AVI http://sourceforge.n...cts/mp4cam2avi/

#8
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
For ffmpeg, here is the full documentation and yes you can do a lot more tunning than with most tools.
If you want to be sure that there no recompression occuring, you should look for tools that demux/remux:
- for mov-> mkv, you might want to try mkvtoolnix.
- for almost every transformation you might ever want (but with a gui) you might want to try avidemux.
There are many other tools that might help.
As a side note, i don't know the tool you tried but it might have done a proper job: some video container can store playback preferences and postprocessing so changing container might degrade the visual quality but not the real quality of the video.
Most of the time, when you don't exactly know what a tool is doing when converting just knowing the speed of conversion is enough to know if it is only demuxing/remuxing (the speed should be about the same as the time needed to copy the video) or if it is recompressing the whole video (it should take a lot more time even with a really fast computer).

Edited by allen2, 21 June 2013 - 01:58 PM.


#9
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
The problem I have with the old jpeg/mov video files may be more intricate than I anticipated in the beginning. I just became aware the old jpeg/mov video files are probably PHOTO jpeg compressed and not Mjpeg (.mjpg file extension).

In my first post I mentioned the format of the .MOV file
Format : JPEG
Codec ID : jpeg

I managed to convert that jpeg/mov video file to .AVI without converting the video and audio, so only the container was converted; hence a JPEG/AVI video file, which played audio but NO video on the WMP12 (Win7 computer).

Then, .... I found some other old .AVI video files in my 2004 record, taken with a Canon camera, and those played video and audio on the WMP12 (Win7 computer) without any problem although the format was JPEG too. A closer look at the latter .AVI video file with MediaInfo revealed the following:
Format : JPEG
Codec ID : MJPG

That made be realize that Codec ID=jpeg is definitely not the same as Codec ID=MJPG in WMP12 (Win7).

That raises some questions with me. WMP12 can play MJPG/AVI, but not JPEG/AVI video files!!!

What is so different between JPEG and MJPEG video compression that the (build-in I presume) WMP12 MJPG codec can play MJPG but not JPEG??

Would there be any JPEG codec around for WMP12 that can really handle JPEG/AVI video files.

The point is that as long as WMP12 cannot decode JPEG compression, a lossless conversion from JPEG-PCM/MOV to JPEG-PCM/AVI won't work in WMP12. So I need to find a JPEG video codec for WMP12; if I can't find such a JPEG codec, then I will have to accepted loss of video quality due to the decompress/re-compress cycle, and that is something I try to avoid.

Thanks in advance,
j

PS: Lossless conversion of old videos and movies (with already a lower quality), or getting the appropriate (old) codecs for playing those old videos on more recent platforms looks like a very daunting challenge.

#10
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06

The point is that as long as WMP12 cannot decode JPEG compression, a lossless conversion from JPEG-PCM/MOV to JPEG-PCM/AVI won't work in WMP12. So I need to find a JPEG video codec for WMP12; if I can't find such a JPEG codec, then I will have to accepted loss of video quality due to the decompress/re-compress cycle, and that is something I try to avoid.

That's completely wrong. A tool that can do a loseless conversion (demux/remux) can have its own embedded codec for JPEG (just like ffmpeg codecs can't be used natively for WMP12).
Perhaps you should upload a sample of your video so i and others can try tools on it.

Edited by allen2, 23 June 2013 - 02:14 AM.


#11
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
In the text editor I couldn't find any obvious or user-friendly way to upload a file. The only thing that could be used is Insert Media in the menu of the text editor, but that feature expects a Media URL. Could you tell me how to upload a file.
thanks, j

#12
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,798 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
Upload the file, probably compressing it first to either .zip or .7z format, wherever you like using any free file upload service you are familiar with such as MediaFire, DropBox, SkyDrive, etc., and provide the link to it here.

Cheers and Regards

Posted Image


#13
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
I got problems uploading the smallest MOV video file I have (4.4MB in size). It looks like I have a global upload quota of 1MB, which is already used. So how do I increase my global upload quota for my account? Or, how do I get the video file to you?
thanks, j

#14
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,798 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
See my post above. The site here has been having problems lately attaching files, it's not just you. But in general, it's often better to use a third party site anyway.

Cheers and Regards

Posted Image


#15
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
Here is the video file:
http://www.mediafire...10qwp/Test1.MOV
Hope it works.

I've attached a file called TEST1.MOV (JPEG/MOV). I've converted the file to H264/AVI, which plays video and audio correctly in WMP12-64bit version in Windows 7. So that conversion is OK. I've used the following cmd:
ffmpeg -i E:\TEST1.mov -c:v libx264 -c:a copy E:\TEST1ffmpegvh264acopy.avi

However, when converting TEST1.MOV to JPEG/AVI only the audio plays in WMP12, Video is absent. I used the following cmd:
ffmpeg -i E:\TEST1.mov -c copy E:\TEST1ffmpegvacopy.avi

I wonder where the source of the problem may lay. Hope you can find out.

j

#16
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
Of course your video isn't really one : it is a picture sequence hence the codec is JPEG.
The proper way to work on it would be to convert it first uncompressed avi or using a lossless compression codec (like huffyuv or FFV1) then you should be able to play it anywhere with wmp as long as the size isn't too big (that won't work because the hard drive won't read the data fast enough) and you have the right codec (huffyuv or FFV1 if you choose one of them). The file will be biger of course (i got 32MB uncompressed and 19MB with huffyuv).
You might also try tweaking the ffmpeg parameters as you said you lost quality when converted to h264. Some command line examples are available there.

Edited by allen2, 23 June 2013 - 04:53 PM.


#17
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
This is not running smooth here. Spent a lot of time googling around, but no solution found yet.

I've converted the MOV file to uncompressed video into an AVI container and just plain-copied the PCM audio.

With MediaInfo I got the following info for the uncompressed video:
Video
ID : 0
Format : YUV
Codec ID : Y42B
Codec ID/Info : YUV 4:2:2 Planar
Duration : 3s 267ms
Bit rate : 18.4 Mbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate : 15.000 fps
Color space : YUV

However, in WMP12 the AVI file does NOT at all play the video, only the audio is played. So again a problem with the video. The commands I used in ffmpeg were:
ffmpeg -i E:\PB250024.mov -c:v rawvideo -c:a copy E:\PB250024ffmpegvrawvideoacopy.avi
ffmpeg -i E:\PB250024.mov -c:v huffyuv -c:a copy E:\PB250024ffmpegvhuffyuvacopy.avi

So, any idea why the rawvideo decompression does not work in WMP12?

I was just wondering, are there any options to -c:v rawvideo , like -c:v rawvideo/UYVY (UYVY is from MicroSoft), or any other options that create a YUV which is really an international standard that can be interpreted/played by all Media Players?

BTW, also the huffyuv did not work for the video in WMP12, but most like the codec is missing for huffyuv, I'm not sure though.

Still working on finding out how to get high quality video (low compression) when converting to H264.

Thanks in advance,
j

#18
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06
Once converted to huyuv, you'll need either the codec huffyuv to play the video in wmp12 or ffdshow filter (just like ffmpeg it can handle almost any format).
For uncompressed, i used virtualdub then loaded the huffyuv video and saved it uncompressed. Ffmpeg can do a lot of uncompressed formats that might be used if you don't need them to play in wmp but if you need them as a step before working on the video and encoding at the final format (using avisynth for example) then they are really usefull. Of course avisynth is a lot more complex and could process the video without intermediate steps with the right settings and directshow filters.

#19
cdob

cdob

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,000 posts
  • Joined 29-September 05

Here is the video file:

With MP4Cam2AVI repacked the MOV to a AVI, no conversion.
Equal Video data: MJPEG data still

GraphEdit renders the avi media file.

A default Windows 7 x64 WMP12 plays the AVI file.

CLSID: {301056D0-6DFF-11D2-9EEB-006008039E37}
FriendlyName: [MJPEG Decompressor]
C:\Windows\SysWOW64\quartz.dll

#20
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag

Here is the video file:

With MP4Cam2AVI repacked the MOV to a AVI, no conversion.
Equal Video data: MJPEG data still

GraphEdit renders the avi media file.

A default Windows 7 x64 WMP12 plays the AVI file.

CLSID: {301056D0-6DFF-11D2-9EEB-006008039E37}
FriendlyName: [MJPEG Decompressor]
C:\Windows\SysWOW64\quartz.dll


I've already done a conversion from MOV to AVI while preserving the video (JPEG) and audio (PCM), but the resulting AVI file does not show video in WMP12 while audio is not a problem. The main problem is that WMP12 probably cannot play JPEG movies, only MJPEG (MJPG codec) movies are OK for WMP12.

j

#21
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag

Once converted to huyuv, you'll need either the codec huffyuv to play the video in wmp12 or ffdshow filter (just like ffmpeg it can handle almost any format).
For uncompressed, i used virtualdub then loaded the huffyuv video and saved it uncompressed. Ffmpeg can do a lot of uncompressed formats that might be used if you don't need them to play in wmp but if you need them as a step before working on the video and encoding at the final format (using avisynth for example) then they are really usefull. Of course avisynth is a lot more complex and could process the video without intermediate steps with the right settings and directshow filters.


With "uncompressed formats", I assume you mean some YUV or a derivative like UYVY or IYUV format? Or are there any other/more 'uncompressed' formats out there?

I was under the impression that after decompression, one was left with some kind of a 2-D Bit Map for each video frame, where every pixel is represented by a 24 or 32 bit word covering luminance (luma) and color, I think it is called RAW. But that doesn't seem to be the case, does it?

j

Edited by DiracDeBroglie, 25 June 2013 - 03:54 PM.


#22
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
As for my JPEG/MOV videofiles, I will now focus on the conversion to H264/MP4. I have great difficulties in finding out in ffmpeg how to H264 compress a video using LOW compression (so high quality video with lots of detail; the drawback would be large video files but that I can live with).

If anyone knows the switches or options to be added to .... -c:v libx264 ... in the ffmpeg command, then please drop it here.

j

#23
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
Oh yes, I almost forgot. Isn't there any way to stitch a series of JPEG frames together into a MJPEG (MJPG) video string, without having to decompress and re-compress the video?

j

#24
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
  • Joined 13-January 06

Oh yes, I almost forgot. Isn't there any way to stitch a series of JPEG frames together into a MJPEG (MJPG) video string, without having to decompress and re-compress the video?

j

I looked for that solution and didn't found away that wouldn't loose quality in the process.

With "uncompressed formats", I assume you mean some YUV or a derivative like UYVY or IYUV format? Or are there any other/more 'uncompressed' formats out there?

I was under the impression that after decompression, one was left with some kind of a 2-D Bit Map for each video frame, where every pixel is represented by a 24 or 32 bit word covering luminance (luma) and color, I think it is called RAW. But that doesn't seem to be the case, does it?

j

I meant uncompressed native windows format so it is RGB (some kind of BMP) and so it is not an yuv or any of there derivative (i tried all available uncompressed format in ffmpeg but all require a codec).

As for my JPEG/MOV videofiles, I will now focus on the conversion to H264/MP4. I have great difficulties in finding out in ffmpeg how to H264 compress a video using LOW compression (so high quality video with lots of detail; the drawback would be large video files but that I can live with).

If anyone knows the switches or options to be added to .... -c:v libx264 ... in the ffmpeg command, then please drop it here.

j

"Loseless h264" might be the solution you need but will increase the size of output video but isn't most likely really loseless. If you take the an uncompressed video and encode it loseless h264 then convert it again to uncompressed format the video won't have the same size and if extract a frame as bmp from both a binary comparison will show a lot of differences.
But as you wanted to use a future proof codec, using x264 codec with its best quality will be the best option.

#25
DiracDeBroglie

DiracDeBroglie

    Member

  • Member
  • PipPip
  • 104 posts
  • Joined 07-December 11
  • OS:Windows 7 x64
  • Country: Country Flag
I'm getting there bit by bit.

Still a few questions. About the fileformat (filename extension), I assume MP4 is the (or one of the) most 'future proof' video file format(s); correct me if you think I'm wrong.

While converting to MP4, I noticed that FFmpeg did not plain-copy the original PCM(u8) audio to the output file; in fact FFmpeg just quited the conversion, leaving a MP4 file with not even any video in the MP4 file. So I left the decision about the audio conversion to FFmpeg, which it made AAC, profile LC.

For mono audio (and also stereo audio), what is in your opinion the most 'future proof' AND compatible (among Players) audio format (codec) under the MP4 file format (or any other more future proof video file format)? Is that really MP3 (as mentioned in post 5), or is there another more future proof and compatible audio format? What about settings and options when converting audio? Are there any audio compatibility issues among Players (like with QuickTime when the video format profile is higher than 'main' in H264, see the "lossless H264" link in previous post)?

Thanks in advance,
j




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users