[Bug 753323] mpegts: add support for JPEG 2000 to mpegtsmux and tsdemux

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 28 19:34:33 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=753323

--- Comment #33 from Aaron Boxer <boxerab at gmail.com> ---
Well, I've done some research, and it looks like kakadu demo app
can create a broadcast stream.

So, here are the steps needed to create a stream, starting with a bunch
of TIFF files:

(tools used: Ffmpeg, Graphics Magick and kdu_v_compress)


////////////////////////////////////////////////////////////////////////

// rename all files in directory to foo followed by an increasing sequence of
consecutive numbers
$ c=0; ls -rt | while read -r file; do ((++c));  mv "${file}" "$(printf
'foo_%04d.%s' "$c" "${file#*.}")"; done

// force resize of all images in directory into 2K resolution
$ c=0; ls -rt | while read -r file; do ((++c)); gm convert -size 1920x1080!
"${file}" -resize 1920x1080! "${file}"; done

// batch convert tiff to 8 bit (FFmpeg didn't like 12 bit TIFF)
$ c=0; ls -rt | while read -r file; do ((++c));  gm convert "${file}" -define
tiff:bits-per-sample=8 "${file}"; done

// create YUV video file from tiff sequence
$ ffmpeg -i foo_%04d.tif -vf format=yuv444p12le 1920x1080x5x444.yuv

//convert to broadcast format with elementary stream headers 
$ kdu_v_compress -i 1920x1080x5x444.yuv -o test.jpb -jpb_data 1,200

//////////////////////////////////////////////////////////////////////////////

Milos, let me know if this creates the correct broadcast stream.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list