Read data from RAW container

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
dumperguy
New Cone
New Cone
Posts: 1
Joined: 21 Dec 2020 13:15

Read data from RAW container

Postby dumperguy » 21 Dec 2020 14:11

Hello,

I have used VLC (Version 3.0.11.1 on Manjaro Linux 20.2) together with a capture device to create a dump of a video stream (with audio included). To do so, I have selected the option Media > "Convert / Save..." > Capture Device. There I have selected the following options.

Image

Capture mode: Video camera
Video device name: /dev/video0
Audio device name: hw:1,0
Video standard: PAL
Caching: 300 ms
Start Time: 00H:00m:00s.000
Stop Time: 00H:00m:00s.000
MRL: vdl2:///dev/video0
Edit options:

Code: Select all

:v4l2-standard=PAL :input-slave=alsa://hw:1,0 :v4l2-dev=/dev/video0 :v4l2-vbidev= :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=-1 :v4l2-width=720 :v4l2-height=576 :v4l2-aspect-ratio=4\:3 :v4l2-fps=25 :v4l2-radio-dev=/dev/radio0 :v4l2-tuner-frequency=-1 :v4l2-tuner-audio-mode=1 :no-v4l2-controls-reset :v4l2-brightness=-1 :v4l2-brightness-auto=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-hue=-1 :v4l2-hue-auto=-1 :v4l2-white-balance-temperature=-1 :v4l2-auto-white-balance=-1 :v4l2-red-balance=-1 :v4l2-blue-balance=-1 :v4l2-gamma=-1 :v4l2-autogain=-1 :v4l2-gain=-1 :v4l2-sharpness=-1 :v4l2-chroma-gain=-1 :v4l2-chroma-gain-auto=-1 :v4l2-power-line-frequency=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300

After clicking "Convert / Save", I have crated a new profile called RAW. I know that I could have just used the option "Dump raw input", but it was useful to see what I was recording.

For that profile, I have selected "RAW" as encapsulation, and selected to keep the original video codec and the original audio codec of the stream.

Image
Image
Image
Image

Finally I have chosen to display the video, deinterlace and clicked "Start".

Image

Now, I want to reopen this file so that I can convert it to a different format. While I was recording the video, I retrieved the codec information from VLC.

Image

Stream 0
- Codec: Packed YUV 4:2:2, Y:U:Y:V (YUY2).
- Type: Video
- Video resolution 720x576
- Buffer dimensions: 720x576
- Frame rate: 25
- Orientation: Top left
Stream 1
- Codec: PCM S16 LE (s16l)
- Type: Audio
- Channels: Stereo
- Sample rate: 48000 Hz
- Bits per sample: 16

I have done some research and I guess that if I had a file which only contained video, I could for example open the file like this:

Code: Select all

flatpak run org.videolan.VLC --demux rawvideo --rawvid-fps 25 --rawvid-width 720 --rawvid-height 576 --rawvid-chroma YUY2 Somefile.raw

A similar command could be used to open an audio file. However, I do not have a clue of how to open this file that contains both audio and video. The VLC GUI does not seem to know how to open it. I have also tried some variations of the above command and I have been able to recognize some features of the video among a lot of noise, so I guess that the data is there, but I just do not know how to work with the container.

Does anybody know how to open this kind of file?

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Read data from RAW container

Postby Rémi Denis-Courmont » 21 Dec 2020 20:52

You can't have more than one track without encapsulation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 68 guests