Multipage with GnuWin32 - tiff

tiffSplit.exe of GnuWin32 library splits tiff images. Is it possible to convert various single page files into multipage tiff with GnuWin32 library?

The solution is to use tiffcp:
tiffcp -c lzw <source files> <dest file>
the -c option specifies the compression to use. If you don't use any compression then the file can be significantly larger than the input files if they are compressed.

Related

How to insert a TIFF into PostScript?

I would like to include a TIFF image into my PostScript similarily to an EPS and a JPEG. But it fails on creation stating the file ImageType isn't JPEG.
Is this possible?
You can't use a TIFF directly in PostScript, as PostScript doesn't support the TIFF file format. You can use a PostScript program to read a TIFF file and process it as an image, for example :
Conversion of TIFF to PDF with Ghostscript

Whats the difference between stream generated by ffmpeg vs lib VLC

I am trying to stream a Mp4 file to a webm file.
After that I am reading this file chunk by chunk and feeding it to HTML5 viewer
(video tag of html 5 viewer)
in order to stream from MP4 file webm file I have had three options
1) Stream out using VLC media player application
2) Stream using libVLC through C code
How to stream video using C/C++
3) stream using ffmpeg commandline
ffmpeg -i test.mp4 -c:v libvpx -c:a libvorbis -pix_fmt yuv420p -quality good output.webm
While comsuming this webm generataed by all three options. 1st and 2nd is not working. While 3rd one is working. 1st and 2nd works only after streaming to file is completed and when last chunk of output file is fed to html5 video player.
It seems vlcplayer and libVLC is not generating the required fragments with keyframes that are generated by ffmpeg.
Is there anyway we can instruct libVLC or VLCplayer also to generated fragments with keydrame info ?

How to convert tiff to searchable pdf using alfresco and tesseact?

I want to convert *.PDF file to searchable *.PDF files using alfresco and tesseract OCR.
tesseract version 3.03 needs to be compiled and i need to generate setup of that using source code.Is there any other solution for the same.
Can anyone help for the same?
You'll need Tesseract 3.03 or later for searchable PDF output feature.
tesseract yourimage.tif out pdf
you can use another tool which is directly performing pdf to searchable pdf conversion.This tool is using tesseract internally for this conversion.You can find more details on below link and configure same for alfresco.
http://ubuntuforums.org/showthread.php?t=1456756
command
pdfocr -i input.pdf -o output.pdf

How can I see the 0s and 1s / machine code from a executable file / object file?

I already tried this, I opened a a.out file with a text editor but I get only a bunch of characters with some instructions in it like:
üÙ
Try hexdump. Something like:
$ hexdump -X a.out
It will give you just that: an hexadecimal dump of the file.
Having said that, another possibility might include using GDB's disassemble command.
Lookup your local friendly Hex Editor.
To see the disassembly (with opcode bytes) of the code only, not including any file headers:
objdump -d a.aot
Executable files come in several formats. For Unix/Linux it's ELF:
http://en.wikipedia.org/wiki/Executable_and_Linkable_Format
For Windows it's PE:
http://en.wikipedia.org/wiki/Portable_Executable
Use the objdump tools to see the opcodes as others have pointed out
when you open a binary file you would see unreadable characters, the reason is that ascii encoding uses 7 bits , therefore all the characters that have a code point from 128 to 255 won't be recognized by the editor and therefore you see unknown characters.
if you want to see all the contents of a binary file , you could use programs like hexdump,objdump and readelf, for example lets say we want to dissect /bin/bash as a binary file in linux(elf) into its bytes in hexadecimal representation, so we say:
hexdump /bin/bash
but the best tool for these kind of files is: readelf
if we want to see all the contents of a binary file in a more human-readable format than the hexdump output we could just say:
readelf -a /bin/bash
and we would see all different sections of the binary file (elf header, program header , sections header and data).
also using other flags we could see only one header at a time, or we could just disassemble the .text sections in the file and so on.

What is the easiest way to wrap a raw .aac file into a .m4a container

This question is overflow from the following question:
How do I programmatically convert mp3 to an itunes-playable aac/m4a file?
Anyway, I learned how to create an aac file and then i found out that an aac is not just an m4a file with a different file extension. In fact, I need to somehow wrap the aac into an m4a container. Ideally I'd be able to simply make a call to the command line.
ffmpeg is a general purpose (de)muxer/transcoder. MP4Box is a (de)muxer/transcoder from GPAC, a package dedicated to MP4 related software tech. Right now it seems wiser to use MP4Box because it writes the moov atom at the beginning of the file, which is important for streaming and ipod playing.
Use ffmpeg like this:
ffmpeg -i input.aac -codec: copy output.m4a
Use MP4Box like this:
MP4Box -add input.aac#audio output.m4a
mp4box if you want a dedicated tool; its probably the easiest way to go. ffmpeg can do the job too.
avconv -i input.aac -acodec copy output.m4a
In my case, without the explicit flag to copy, it re-encodes the audio for some odd reason.
Just use any mp4-Muxer like Yamb to create an mp4-file with only the aac audio track in it, then change the file extension to m4a.