Convert MP4 to Raw Video: Is it Possible?

  • Thread starter Thread starter fog37
  • Start date Start date
  • Tags Tags
    Video
Click For Summary

Discussion Overview

The discussion revolves around the possibility of converting MP4 video files to raw video formats, exploring the characteristics of raw video, and the capabilities of various cameras in capturing video. Participants examine the implications of file formats, compression, and the quality of video captured in different settings.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants inquire whether it is possible to revert MP4 files back to raw video formats, suggesting that information may be lost during conversion.
  • One participant mentions that certain cameras can capture video in a raw format, while others argue that the MP4 format is edited and may not retain all original data.
  • There is a discussion about the differences between file formats, with one participant noting that MOV is a container format that can hold various codecs, and that compression may occur within it.
  • Participants express uncertainty about the parameters that determine video quality, with some suggesting that sample rate and resolution play significant roles.
  • One participant shares their experience with an astronomy camera that transmits uncompressed video, leading to questions about whether it truly sends raw data or uses a form of lossless compression.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether MP4 can be converted back to raw video or the exact nature of video quality parameters. Multiple competing views exist regarding the definitions of raw video and the capabilities of different camera formats.

Contextual Notes

Limitations include the lack of clarity on specific camera models and their settings, as well as the potential for varying interpretations of what constitutes "raw" video.

fog37
Messages
1,566
Reaction score
108
Hello everyone,

Does anyone know if it is possible to convert a mp4 video clip to raw video? Or once the video is in mp4 format or any other format there is no way to go back to raw?

Do certain cameras allows to shoot the video so that both types of files can be saved at the same time?

Thank you!
 
Computer science news on Phys.org
What file format do you consider to be "raw" video?
 
Well, I know that certain cameras can be set to RAW to just capture information without adding anything to it. The mp4 format seems to be slightly edited.

I think canon has a setting called RAW in the quality settings...
 
fog37 said:
Well, I know that certain cameras can be set to RAW to just capture information without adding anything to it.

You need to look at the file your camera produces and determine its format.

My video camera produces files in the "Quicktime" (*.MOV) format.

There are programs to convert mp4 files to Quicktime.

If a video is taken in Quicktime or other format and converted to mp4 format, information may be lost. This depends on the settings used to make the conversion. For example, the name mp4 does not specify that the video must have a particular resolution in pixels. If video file is converted to a lower resolution mp4 file, you cannot recreate the original video by reversing the conversion.

For example, videos of old films and TV shows downloaded from YouTube are often in the mp4 or webm format. They are usually highly compressed versions of the information in the original video, so they have less resolution in pixels and lower frame rates that the original.
 
fog37 said:
Well, I know that certain cameras can be set to RAW to just capture information without adding anything to it. The mp4 format seems to be slightly edited.

I think canon has a setting called RAW in the quality settings...

The RAW setting on Canon camera is for images, it cannot be used for video (it would use way too much bandwidth and storage space). For video you have the option of using Quicktime MOV or MP4 however both are container file formats and can use different encoding algorithms not to speak of different settings. One of the options on the Canon cameras (MOV or MP4) results in slightly higher quality but I don't remember which.
 
I see. Thank you.
I was wondering if it was possible to shoot video, with a camera, in raw format, as I often hear, in order to have the maximum flexibility later as far as editing goes.
 
fog37 said:
I see. Thank you.
I was wondering if it was possible to shoot video, with a camera, in raw format, as I often hear, in order to have the maximum flexibility later as far as editing goes.
The answer to that is yes or no depending on the specific camera you are using.
 
What parameter mainly determines the quality of the video? The sample rate? I am thinking that the higher the sample rate, the more information are captured, the higher the details hence the higher the video quality.
 
I would like to point out that ".mov" is not a video format, it's just a container. It's basically the same idea as a zip file or a tarball that can have stuff inside of it an a variety of format, plus a manifest that says how to play them. There is no MOV codec, so if you're camera saves things as mov, it's still likely compressing it to mp4 or mpeg2.
 
  • #10
fog37 said:
What parameter mainly determines the quality of the video? The sample rate? I am thinking that the higher the sample rate, the more information are captured, the higher the details hence the higher the video quality.
Sampling rate is a parameter for compression. RAW means raw; no compression.

The size of an uncompressed image file is a simple function of the number of pixels and their bit depth(number of available colors). Then video has a number of frames per second.

So, for example, if a camera shoots 4K (3840×2160) video and has a color depth of 12 bits per pixel and a framerates of 30 fps, that's 3840x2160x12x30= 3 billion bits per second or 355 megabytes per second.

Now, I do have an astronomy camera that can transmit uncompressed video directly to a computer, but the resolution is low.
 
Last edited:
  • #11
russ_watters said:
Now, I do have an astronomy camera that can transmit uncompressed video directly to a computer, but the resolution is low.
Out of curiosity, are you sure it’s sending raw data? I see no reason why it would do that as there are ways to send compressed but lossless data. I feel like it’s be cheaper computationally to do a lossless compression then do the socket transfer, rather than trying to shove raw pixels through what Id assume is a TCP socket.
 
  • #12
newjerseyrunner said:
Out of curiosity, are you sure it’s sending raw data? I see no reason why it would do that as there are ways to send compressed but lossless data. I feel like it’s be cheaper computationally to do a lossless compression then do the socket transfer, rather than trying to shove raw pixels through what Id assume is a TCP socket.
I guess I can't be certain what is going on under the hood, but the codec the camera uses by default is y800, which is uncompressed, not lossless. I guess my thought was that computationally it is easier to do no processing and just read, then send the raw data through the USB interface. Here's the camera, if you are interested in looking further into it:
https://www.theimagingsource.com/products/industrial-cameras/usb-2.0-monochrome/dmk31au03/
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
5K
Replies
6
Views
3K
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
3K