View Full Version : Reading a sample value from a mov file
Dave1024
15th October 2012, 18:52
Hi,
could anybody help how can i read the samples from a mov file.
I found a dummy quick time movie dump from http://www.enete.com/noel/nuggets_quicktime/pages/tools/DumpQuicktime/DumpQuicktime.txt
Here i go to the offset provided by stco atom say, table[ 52] = offset 0x5e1a
my question
1. if i move the file pointer in the bit stream file by this value from 0, will i get table[152] = 30 bytes
provided by stsz atom.?
2. what is the relation between chunk and samples.?
I aimed to split the track present in the file.
Regards,
Dave
Guest
15th October 2012, 23:04
Can't you use libgpac?
Dave1024
16th October 2012, 18:31
Hi neuron2, i faced an issue not related to any library. I need to find where i get the start timecode from the .mov bitstream.
for the same i used ffmpeg and ffprobe to explore the bit stream. Those info i shared here !
ffprobe.exe -show_streams test.mov will give the following info about the timecode track
index=5
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_time_base=1/25
codec_tag_string=tmcd
codec_tag=0x64636d74
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/25
start_time=0.000000
duration=52.640000
bit_rate=N/A
nb_frames=1
nb_read_frames=N/A
nb_read_packets=N/A
TAG:language=eng
TAG:handler_name=Apple Alias Data Handler
TAG:timecode=09:59:40:00
ffprobe.exe -show_packets test.mov
codec_type=data
stream_index=5
pts=0
pts_time=0.000000
dts=0
dts_time=0.000000
duration=1316
duration_time=52.640000
convergence_duration=N/A
convergence_duration_time=N/A
size=4
pos=349757537
flags=K
Here only one data packet. and the pos[pos=349757537] is exactly same as that of chunk begin sample location.[begin byte] in the timecode track.
The file data @ [pos = 349757537] is 00 0D B9 AC 00....[Byte value in the file]
Here are my doubts !
1. The TAG:timecode=09:59:40:00 how can i match this value to the file data.
2. Is there any different meaning for TAG:timecode.?
3. How can find TAG:timecode value from the file?
4. TAG:timecode is derived from any other values?
Regards
Dave
Jarvinia
26th October 2012, 03:14
As far as I know, video files don't really store useful metadata. The only thing that can be extracted is technical metadata like the resolution, duration, etc. Browser game Rise of Europe (http://www.mmowood.com/rise-of-europe) is a RTS game by Perfect World, and it lets players build sorts of constructions in charge of their kingdom. Of course, players also need to beat other enermies.
Blue_MiSfit
26th October 2012, 06:23
It depends on the video format. MXF can store all kinds of metadata, and MOV can store some interesting things as well...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.