What is the full form of MPEG, JPEG, mp3, mp4, PDF?
MPEG ( Moving Picture Expert Group ) italic A set of standards and file format for Compression of digital Video and audio data. JPEG ( Joint Photographic Expert Group ) italic A set of standards and file format forpressing picture so they can be stored or sent by e-mail more easily. MP3 A file extension for (MPEG) audio Layer-3 A set of Standards for Compressing and Downloading audio files from the internet. MP4 MP4 is a file format created by the Moving Picture Experts Group (MPEG) as a multimedia container format designed to store audiovisual data. The MP4 is largely replacing earlier multimedia file formats and creating some changes in the way that vendors sell audiovisual files to the public. PDF ( Portable Document Format ) italic A file format that makes it possible to display s and graphics in same fixed layout on anyputer screen. GIF ( Graphics Interchange Format ) italic The Graphics Interchange Format was developed in 1987 at the request of Compuserve who needed a platform independent image format that was suitable for transfer across slow connections. It is apressed (lossless) format (it uses the LZW pression) andpresses at a ratio of between 31 and 51 PNG ( Portable Network Graphics Format ) italic A number of people banded together and created apletely patent-free graphics format called PNG (pronounced ping ) the Portable Network Graphics format. PNG is superior to GIF in that it has betterpression and supports millions of colours. PNG files end in a .png italic suffix. ** If this answer will be helpful to you then please upvote it . Thank you !! **
How do I think logically when programming? I have folders that contain mp4, text, pdf, doc, mp3 files and I would like to separate them. I can write Ruby code, but it’s the logic that kills me. I've worked on this problem for 3 weeks.
I think youre doing it the right way. Youre splitting your task into sub-tasks (with pseudocode or anything else) but I guess you need to split even more. Let consider a simple version of your program. It runs on the console which means it doesn include any graphic user interface like buttons labels or fields. You take inputs only from files. Firstly you want to ask the user where to find the files to sort italic . Create a file with a name like code and write your path of the original files. You could support only one line in this file (assuming on Windows) DDocumentsMyMessyFolder code You read this only line from this file in your code into a variable such as messy_dir code . Don mind whether it a legal path at first. Secondly you want to sort the files by their extensions italic . But before that you have to get a list of all the files under messy_dir code . Find an API to list files under some directory. Better be a recursive one which means it would list files under sub-directories if any. Put the result into a list (or an array or something else) named messy_file_paths code . Now the time to consider which extensions you want to support. For example you want to sort only MP3 PDF and TXT files into separate folders named music code docs code pure_s code and put all the others into another folder named other code . You could create another file named for example code whose contents look like other code mp3 music code pdf docs code txt pure_s code The first line contains only one element which is the subfolder name for all miscellaneous files. The other lines contains a pair of strings in each of which the former is the file extension and the latter is the target subfolder name. You need to read this file and properly store the information. For example you could use a variable called misc_subfolder_name code to store other code and then a dictionary called exts_to_subfolder_names code to store the other things where the file extension is the key and the subfolder name is the value. You then ask the user where to save the files italic . Use another file like our first one and read it to a variable target_root_path code . Now enumerate your messy_file_paths code and for each check the file extension and use exts_to_subfolder_names code with target_root_path code to build the full path of the target subfolders. Create these folders (if needed) and copy (safer than move) the file into the folder. Your final step can be done by looking at whether the files appear in the new location. So far Ive described a simple way to extend your pseudocode into more detailed logic flow. Can you go on from here? Debugging Tips Generally you won be able to run your program correctly the first time. It takes lots of time to debug your program to make it work as expected. A simple way to debug a program is to print things everywhere in your program. For example you read a line from a file into a variable and then you could print it so that you can check whether it correct when your program runs. Others ways of debugging a program include the break point technique which you don need for now I guess. Knowledge points Variables strings dictionaries and maybe other s. Usage of collections (lists and dictionaries) and loops. File IO Reading from a file copying files listing files under a folder creating new folders etc. Standard IO Print stuff to the standard output. Hope this long stuff helps
What tablet out there supports USB connectivity and can view PDF and mp4 files?
Pretty much every tablet has those capabilities. It may be that youll have to use a special adapter dongle called USB-OTG (for USB On The Go) to plug the USB drive into the tablet or else use a special USB-OTGpatible flash drive that has a micro-USB connector built in in addition to the standard USB but just about any such tablet should work. (The same holds for the iPad though in that case youll have to get a USB-to-Lightning connector dongle instead.)
Why do the free file format converter websites like PDF to word or YouTube to mp4 always seem unsafe or sketchy?
Because they in some cases are. There no such thing as a free lunch so the service providing the conversion needs to be able to finance it somehow. Some use excessive amounts of ads and for others the most interesting parts are the data itself. While the vast majority (I hope) would never even consider running a PDF containing some sensitive personal or business data through one of these services I can bet you that there are those who do just this and by doing so instantly gives whoever is behind the site free access to that data to do whatever they please with. Much easier than hacking a Companys servers if thepany employees just GIVE you the data right? When ites to the YouTube to MP4 that is illegal in the first place so don expect some reputablepany to provide that service for you hence even those sites maye across as shady.
How do I generate a PDF from an MP4 movie?
It unclear why you want to do this as the PDF would be 2x as big as the MP4 (or more) and have a lot of pages. However the easiest way I can think of doing it would be using FFmpeg and ImageMagick mkdir tmp code cd tmp code ffmpeg -i .. page% code convert page*.jpg .. code