Create lossless PNG compressed avi video - not MPNG - for ImageJ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Create lossless PNG compressed avi video - not MPNG - for ImageJ

Rainer M. Krug-2
Hi

I want to compress avi videos which will be read into ImageJ, which supports the following formats:

https://imagej.nih.gov/ij/plugins/avi-reader.html

```
        • Only a few formats are supported:
                • Uncompressed 8 bit with palette (LUT)
                • Uncompressed 8 & 16 bit grayscale
                • Uncompressed 24 & 32 bit RGB (alpha channel ignored)
                • Uncompressed 32 bit AYUV (alpha channel ignored)
                • Various YUV 4:2:2 compressed formats
                • PNG or JPEG-encoded individual frames.
                • MJPG (motion-JPEG)
        • Does not read AVI formats with more than one frame per chunk
        • Palette changes during the video not supported
        • Out-of-sequence frames (sequence given by index) not supported
        • Different frame sizes in one file (rcFrame) not supported
        • Conversion of (A)YUV formats to grayscale is non-standard:
All 255 levels are kept as in the input (i.e. the full dynamic range of data from a frame grabber is preserved). For standard behavior, use "Brightness&Contrast", Press "Set", enter "Min." 16, "Max." 235, and press "Apply”.
```

I tried the following


```
ffmpeg -i 20200728_00019.avi -vcodec png 20200728_00019.comp.avi
```

But this gives me an error in ImageJ: "Unsupported compression: 474e504d 'MPNG' in line 16”

Is there a way, that I can use ffmpeg to compress an avi moc=vi using PNG compression, and not MPNG?

Or am I missing something here?

Thanks,

Rainer


 
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Orcid ID: 0000-0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:       +41 (0)78 630 66 57
email:      [hidden email]
                [hidden email]
Skype:     RMkrug

PGP: 0x0F52F982



_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Create lossless PNG compressed avi video - not MPNG - for ImageJ

Carl Eugen Hoyos-2
Am Di., 15. Sept. 2020 um 11:47 Uhr schrieb Rainer M Krug <[hidden email]>:

>
> Hi
>
> I want to compress avi videos which will be read into ImageJ, which supports the following formats:
>
> https://imagej.nih.gov/ij/plugins/avi-reader.html
>
> ```
>         • Only a few formats are supported:
>                 • Uncompressed 8 bit with palette (LUT)
>                 • Uncompressed 8 & 16 bit grayscale
>                 • Uncompressed 24 & 32 bit RGB (alpha channel ignored)
>                 • Uncompressed 32 bit AYUV (alpha channel ignored)
>                 • Various YUV 4:2:2 compressed formats
>                 • PNG or JPEG-encoded individual frames.
>                 • MJPG (motion-JPEG)
>         • Does not read AVI formats with more than one frame per chunk
>         • Palette changes during the video not supported
>         • Out-of-sequence frames (sequence given by index) not supported
>         • Different frame sizes in one file (rcFrame) not supported
>         • Conversion of (A)YUV formats to grayscale is non-standard:
> All 255 levels are kept as in the input (i.e. the full dynamic range of data from a frame grabber is preserved). For standard behavior, use "Brightness&Contrast", Press "Set", enter "Min." 16, "Max." 235, and press "Apply”.
> ```
>
> I tried the following
>
>
> ```
> ffmpeg -i 20200728_00019.avi -vcodec png 20200728_00019.comp.avi
> ```

When asking questions on this mailing list, please don't forget to
always provide
the command line you tested together with the complete, uncut console output.

> But this gives me an error in ImageJ: "Unsupported compression: 474e504d 'MPNG' in line 16”

ffmpeg -i input -vcodec png -vtag "PNG " out.avi

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Create lossless PNG compressed avi video - not MPNG - for ImageJ

kumowoon1025
Hi,

>> ... error in ImageJ: "Unsupported compression: 474e504d 'MPNG' in line 16”
>
> ffmpeg -i input -vcodec png -vtag "PNG " out.avi

I'm just curious, do you know if MPNG a thing, like can you use it instead of original magic bytes and have a series of png's to animate it?

Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Create lossless PNG compressed avi video - not MPNG - for ImageJ

Carl Eugen Hoyos-2
Am Di., 15. Sept. 2020 um 12:32 Uhr schrieb Edward Park
<[hidden email]>:
>
> Hi,
>
> >> ... error in ImageJ: "Unsupported compression: 474e504d 'MPNG' in line 16”
> >
> > ffmpeg -i input -vcodec png -vtag "PNG " out.avi
>
> I'm just curious, do you know if MPNG a thing

Definitely but I likely don't understand your question...

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".