howto remove meta info about MP4 or FLV file downloaded off Youtube?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users howto remove meta info about MP4 or FLV file downloaded off Youtube?
# 1  
Old 12-03-2011
Network howto remove meta info about MP4 or FLV file downloaded off Youtube?

Hi

I tried a tool called mediainfo

Code:
> brew info  media-info
media-info 0.7.51
http://mediainfo.sourceforge.net
Depends on: pkg-config
/usr/local/Cellar/media-info/0.7.51 (3 files, 14M)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/media-info.rb

Got details from a test file. Was surprised that I can see so much meta info.

Code:
> mediainfo test.mp4 
General
Complete name                            : test.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 27.6 MiB
Duration                                 : 1mn 14s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 106 Kbps
Encoded date                             : UTC 2011-06-12 15:16:43
Tagged date                              : UTC 2011-06-12 15:16:43
gsst                                     : 0
gstd                                     : 74696
gssd                                     : BC1F7C107MM1321292341565026
gshh                                     : o-o.preferred.vadafone-zrh1.v20.lscache3.c.youtube.com

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1mn 14s
Bit rate                                 : 2 948 Kbps
Maximum bit rate                         : 4 516 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.537 fps
Minimum frame rate                       : 23.256 fps
Maximum frame rate                       : 83.333 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.136
Stream size                              : 26.2 MiB (95%)
Tagged date                              : UTC 2011-06-12 15:16:43

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1mn 14s
Bit rate mode                            : Variable
Bit rate                                 : 152 Kbps
Maximum bit rate                         : 187 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 1.35 MiB (5%)
Title                                    : IsoMedia File Produced by Google, 5-11-2011
Encoded date                             : UTC 2011-06-12 15:16:43
Tagged date                              : UTC 2011-06-12 15:16:43

What does this exactly mean? Why here is my provider named Vadafone?

Code:
gsst                                     : 0
 gstd                                     : 74696
 gssd                                     : BC1F7C107MM1321292341565026
 gshh                                     : o-o.preferred.vadafone-zrh1.v20.lscache3.c.youtube.com

Howto clear or edit those meta info?

I am running Mac OS X Lion
This User Gave Thanks to slashdotweenie For This Post:
# 2  
Old 12-03-2011
Try exiftool.
# 3  
Old 12-03-2011
Quote:
Originally Posted by CarloM
Try exiftool.
doesn't work Error: Writing of MP4 files is not yet supported

Code:
> exiftool -exif:all= test.mp4 
Error: Writing of MP4 files is not yet supported - test.mp4
    0 image files updated
    1 files weren't updated due to errors

exiftool even doesn't show all tags

Code:
> exiftool -all test.mp4 
ExifTool Version Number         : 8.71
File Name                       : test.mp4
Directory                       : .
File Size                       : 25 MB
File Modification Date/Time     : 2011:12:03 21:01:45+01:00
File Permissions                : rw-r--r--
File Type                       : MP4
MIME Type                       : video/mp4
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.0
Compatible Brands               : isom, mp42
Movie Header Version            : 0
Create Date                     : 2011:12:02 03:45:58
Modify Date                     : 2011:12:02 03:45:58
Time Scale                      : 600
Duration                        : 0:02:17
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 2011:12:02 03:45:58
Track ID                        : 1
Track Duration                  : 0:02:17
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 1460
Image Height                    : 1080
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1460
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 10
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2011:12:02 03:45:58
Media Modify Date               : 2011:12:02 03:45:58
Media Time Scale                : 44100
Media Duration                  : 0:02:17
Media Language Code             : und
Handler Description             : IsoMedia File Produced by Google, 5-11-2011
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 44100
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Movie Data Size                 : 25906609
Avg Bitrate                     : 1.51 Mbps
Image Size                      : 1460x1080
Rotation                        : 0

not show by exiftool (but by mediainfo):

gshh : o-o.preferred.vadafone-zrh1.v20.lscache3.c.youtube.com
# 4  
Old 12-23-2011
Thank you Roger Howard <rogerhoward@gmail.com>

Quote:
ffmpeg -acodec copy -vcodec copy This will copy the audio and video streams (without recompression) and repackage into a new container. For instance, if you have an mp4 and want to copy the audio/video streams (and nothing else) into a new mp4: ffmpeg -acodec copy -vcodec copy -i input.mp4 output.mp4 There are other tools, but I don't know of anything easier than this. I haven't tested it specifically for this purpose (stripping metadata) but since metadata is stored at the container level - not within the a/v streams - it should work just fine. And it's fast since there's no compression going on. I regularly repack MKVs into MP4 for my AppleTV and it's only a little slower than just a straight file copy. -R
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove first meta key from json records using shell

Hi All, I need to get rid of initial meta key from json files with enclosed parenthesis from start and end of the lines which has total 4000 lines. here is the sample Json records : {"start": true, "meta": {"name": "xyz", "creation": "2017-07-14T16:20:06.000+02:00"}} I need to remove... (7 Replies)
Discussion started by: Cloud_Ninja
7 Replies

2. What is on Your Mind?

Remove filter effects from downloaded videos?

Does anyone know a way to remove filter effects from videos downloaded from YouTube or elsewhere, preferably with software that runs in Windows 7? Thank you in anticipation. (1 Reply)
Discussion started by: quadphonic
1 Replies

3. Shell Programming and Scripting

Wget for downloading a public file (stream) as mp4

I need a hint for using wget for getting a free content from a TV station that is streaming its material for a while until it appears on any video platform, that means no use of illegal methods, because it is on air, recently published and available. But reading the manual for wget I tried the... (5 Replies)
Discussion started by: 1in10
5 Replies

4. Shell Programming and Scripting

How to find the length of MP4 file in cygwin?

Hi, Apologies if I'm posting in wrong section. How can I find length (duration) of MP4 videos and m4a audio files on cygwin? I heard about mediainfo, ffmpeg, avconv utilities on Linux platform but not sure if they work (or available) on cygwin. Please advise, TIA (1 Reply)
Discussion started by: prvnrk
1 Replies

5. Shell Programming and Scripting

[Solved] Howto remove extra space in the file

Hi Gurus, I have a file which contains some special char or space. when using cat -evt I can see the file as following: 0,"0000","abc/def aaa ... (6 Replies)
Discussion started by: ken6503
6 Replies

6. OS X (Apple)

Video Contact Sheet on Lion from movies downloaded youtube MP4

Hi I am running Lion with latest patches > uname -a Darwin wger.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 Installed mplayer, ffmpeg, gnu-getopt and ImageMagick through brew. I am unable to generate Video Contact... (0 Replies)
Discussion started by: slashdotweenie
0 Replies

7. Linux

download with youtube-dl the HQ MP4 (not FLV)

Hi Howto download with youtube-dl the HQ MP4? Per default it always downloads FLV and in manual there is no option described for MP4. $ aptitude show youtube-dl Package: youtube-dl New: yes State: installed Automatically installed: no Version: 2010.04.04-1 Priority: extra Section:... (1 Reply)
Discussion started by: slashdotweenie
1 Replies

8. UNIX for Dummies Questions & Answers

check file is a proper flv

Hello, On a linux server (centos 5.4), users upload file that should be flv. How can I check that the file is a real and proper flv file? Checking the extension is not enough! Thanks (1 Reply)
Discussion started by: JCR
1 Replies

9. UNIX for Advanced & Expert Users

info regarding meta device

What is the quickest way to get partition / slices / hard disk / controller information regarding meta devices (md) on solaris 8. Thanks in advance. (4 Replies)
Discussion started by: Hitesh Shah
4 Replies
Login or Register to Ask a Question