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.

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.




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

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.

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?