Trying to match AVI/MJPEG file

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
swanescalona
Beginner
Beginner
Posts: 2
Joined: Wed Sep 30, 2020 3:10 am

Trying to match AVI/MJPEG file

Post by swanescalona » Wed Sep 30, 2020 3:44 am

Hi.
I got a kid's toy camera, a really simple one.
It doesn't even have interface nor software for PC.
Reading the sd card, it records AVI files.
My idea was to match the format, in order to record my video files using better resources, encode themand put them again on the camera to be able to viewing.
Trouble is, no matter the analysis or settings I use, my files are no recognized on the camera.
I also made some tests such replacing a local file name with mine.

Original camera file properties

Code: Select all

General
Complete name                            : C:\Pictures\Camera Roll\MOVI0000_origen.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 15.9 MiB
Duration                                 : 10 s 667 ms
Overall bit rate                         : 12.5 Mb/s
Director                                 : Generplus
Original source form/Distributed by      : Generplus
Recorded date                            : 2010-06-29
Copyright                                : Generplus

Video
ID                                       : 0
Format                                   : JPEG
Codec ID                                 : MJPG
Duration                                 : 10 s 667 ms
Bit rate                                 : 17.1 Mb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.619
Stream size                              : 21.7 MiB

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 10 s 500 ms
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 16.0 kHz
Bit depth                                : 16 bits
Stream size                              : 328 KiB (2%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 508  ms (15.24 video frames)
Best file I have exported (more like original) settings [not recognized in camera]

Code: Select all

General
Complete name                            : C:\Users\swane\Pictures\Camera Roll\MOVI0000_1.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 7.35 MiB
Duration                                 : 20 s 565 ms
Overall bit rate                         : 2 998 kb/s
Writing application                      : Lavf58.29.100

Video
ID                                       : 0
Format                                   : JPEG
Codec ID                                 : MJPG
Duration                                 : 20 s 529 ms
Bit rate                                 : 2 738 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 16.416 FPS
Color space                              : YUV
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.181
Stream size                              : 6.70 MiB (91%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 20 s 565 ms
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 16.0 kHz
Bit depth                                : 16 bits
Stream size                              : 643 KiB (9%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 128  ms (2.09 video frames)
Settings for such file

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<MediaCoderPrefs>
   <node key="overall.audio.channels">Mono (Downmix)</node>
   <node key="overall.audio.source">FFmpeg</node>
   <node key="overall.audio.format">PCM</node>
   <node key="overall.audio.encoder">FFmpeg</node>
   <node key="overall.video.csp">I444</node>
   <node key="overall.video.mode">VBR</node>
   <node key="overall.video.bitrate">16000</node>
   <node key="overall.video.autoBitrate">By Ratio</node>
   <node key="overall.video.quality">80</node>
   <node key="overall.video.bitrateRatio">75</node>
   <node key="overall.video.ar">Set PAR</node>
   <node key="overall.video.format">MJPEG</node>
   <node key="overall.video.encoder">FFmpeg</node>
   <node key="overall.container.format">AVI</node>
   <node key="overall.container.external">Enabled</node>
   <node key="overall.container.muxer">FFmpeg</node>
   <node key="overall.preview.mode">Off</node>
   <node key="muxer.mp4box.inter">0</node>
   <node key="audiofilter.resample.samplerate">16000</node>
   <node key="audiofilter.volume.normalization">true</node>
   <node key="videofilter.generic.applicator">Encoder</node>
   <node key="videofilter.scale.enabled">true</node>
   <node key="videofilter.scale.width">1280</node>
   <node key="videofilter.scale.height">720</node>
   <node key="videofilter.frame.enabled">true</node>
   <node key="videofilter.frame.fps">30</node>
</MediaCoderPrefs>
Do you have a suggestion of something else I can change?

Post Reply