metadata

How to write metadata to mp4 file using mp4parser?

旧城冷巷雨未停 提交于 2019-12-06 12:44:39
问题 I'm using mp4parser to mux h264 and aac file which are re-encoded from orginal video file,how can I write the metadata of the original video to the new mp4 file? Or is there a common method to write metadata to mp4 file? 回答1: metadata and MP4 is a really problem. There is no generally supported specification. But this is only one part of the problem. Prob (1): When to write metadata Prob (2): What to write Prob (1) is relatively easy to solve: Just extend the DefaultMp4Builder or the

how to get informed of new song info while retrieving metadata from shoutcast stream

风格不统一 提交于 2019-12-06 12:04:19
问题 Background: I'm streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html Problem I have three problems. 1- I already use a urlconnection and inputstream for listening radio. I don't want to open a new connection to retrieve metadata. But when I tried to get both from same inputstream, I couldn't listen radio anymore. I guess this is not possible and I have to use two seperate

Is it possible to add custom metadata to a Lucene field?

喜你入骨 提交于 2019-12-06 11:56:45
问题 I've come to the point where I need to store some additional data about where a particular field comes from in my Lucene.Net index. Specifically, I want to attach a guid to certain fields of a document when the field is added to the document, and retrieve it again when I get the document from a search result. Is this possible? Edit: Okay, let me clarify a bit by giving an example. Let's say I have an object that I want to allow the user to tag with custom tags like "personal", "favorite",

Is it possible to read music file metadata using R?

随声附和 提交于 2019-12-06 11:54:42
I've got a bunch of audio files (let's say ogg or mp3), with metadata. I wish to read their metadata into R so to create a data.frame with: file name file location file artist file album etc Any way you know of for doing that ? You take an existing mp3 or ogg client, look at what library it uses and then write a binding for said library to R, using the existing client as guide for that side -- and something like Rcpp as a guide on the other side to show you how to connect C/C++ libraries to R. No magic bullet. A cheaper and less reliable way is to use a cmdline tool that does what you want and

JpegBitmapEncoder.Save() throws exception when writing image with metadata to MemoryStream

China☆狼群 提交于 2019-12-06 11:14:57
I am trying to set up metadata on JPG image what does not have it. You can't use in-place writer (InPlaceBitmapMetadataWriter) in this case, cuz there is no place for metadata in image. If I use FileStream as output - everything works fine. But if I try to use MemoryStream as output - JpegBitmapEncoder.Save() throws an exception (Exception from HRESULT: 0xC0000005). After some investigation I also found out what encoder can save image to memory stream if I supply null instead of metadata. I've made a very simplified and short example what reproduces the problem: using System; using System

How to extract metadata of video files using Python 3.7?

馋奶兔 提交于 2019-12-06 11:09:13
I am looking for a simple library, compatible with Python 3.7, which can extract metadata of video files, specifically the capture/recording datetime; the date and time when the video was shot. I am mainly looking to do this on .mov files. hachoir-metadata has no Python library as far as I'm aware; only a command-line interface, and enzyme works only on .mkv files, though this isn't clearly stated in the description. The reason I want to retrieve the recording/capture datatime as a string is that I want to put this in the filename. Before this question is marked as duplicate: similar questions

Compex MySQL Left Join using multiple entries from meta tables

烈酒焚心 提交于 2019-12-06 10:04:16
I am trying to create a single query for getting information from the main table (WordPress user table), and the user meta table. If you're not familiar with WP DB architecture: wp_users holds basic user information and their IDs, wp_usermeta holds the ID, meta_key, and meta_value. Let's say I want to get all users that have certain meta_keys and meta_values. This is the query I currently have (generated via PHP based on available meta_keys): SELECT ID, user_email, user_login, first_name.meta_value as first_name, last_name.meta_value as last_name, phone_number.meta_value as phone_number, wp

How does one determine the filetype on an AWS S3 hosted file without the extension?

非 Y 不嫁゛ 提交于 2019-12-06 09:27:41
问题 As an example, I'm currently uploading items directly to an S3 bucket using a form. While I was testing, I didn't specify any expected filenames or extensions. I uploaded a .png which produced this direct link: https://s3-us-west-2.amazonaws.com/easyhighlighting2/2015-07-271438019663927upload94788 When I place this inside an img tag, it displays on a web page properly. My question is, without an extension, how would my browser know what type of file it's loading? Inside the bucket, the file's

Easy way to store metadata about MySQL-Database

扶醉桌前 提交于 2019-12-06 08:54:10
问题 Earlier today, I asked for an easy way to store a version number for the SQL table layout you are using in SQLite, and got the suggestion to use PRAGMA user_version . As there is no such thing as a Pragma in MySQL, I was wondering on how you would go about this in MySQL (Except for creating a table named "META" with a column "DB-Scheme-Version"). Just to repeat what I said in the linked question: I'm not looking for a way to find out which version of MySQL is installed, but to save a version

Video metadata edit with Ffmpeg

落花浮王杯 提交于 2019-12-06 07:50:36
I want to change the video metadata. Orginal video info(ffmpeg -i video.mp4) Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isomavc1mp42 creation_time : 2007-11-22 09:11:58 Duration: 00:00:52.70, start: 0.000000, bitrate: 235 kb/s Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 107 kb/s Metadata: creation_time : 2007-11-22 09:11:58 handler_name : (C) 2007 Google Inc. v06.24.2007. Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 140x96 [SAR 1:1 DAR 35:24], 125 kb/s, 10 fps, 10 tbr, 10k tbn, 20k tbc Metadata: creation_time : 2007