Friends,

I wish to write meta data to a mp4 file.
specifically i wish to write the ednoded date as it is found in a probe by media info

example / here is a snip from media info
...
Encoded date                            : UTC 2014-11-05 05:02:03
Tagged date                              : UTC 2014-11-05 05:02:03
...

I *think this used to work ... circa 2013 ,  maybe
is it possible that it worked before the "new" -map N:N for audio came about?

   |ffmpeg -i input -c copy -map 0 -metadata creation_time="2015-06-07
   08:09:10" output.mp4|

|but I get an error of
Data stream encoding not supported yet (only streamcopy)
|

|when i do this ( complete console )
|

|jshupert@shupeJar-bitlab:~$ ffmpeg -i ~//Videos/ShupeJarArtVideo/shupeJarProductions_art_video.mp4 \ > -y -vcodec libx264 -b:v 1100000 -pix_fmt yuv420p -s 640x480 -aspect 4:3 -vf yadif -r 30000/1001 \ > -g 12 -bf 3 -b_strategy 1 -coder 1 -qmin 10 -qmax 51 -sc_threshold 40 -flags +loop -cmp +chroma -me_range 16 -me_method hex -subq 5 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 \ > -acodec libfdk_aac -ab 192K -map 0 -metadata creation_time="UTC 2015-02-03 04:05:06" \
>  ~//Videos/ShupeJarArtVideo/sjp_4.mp4
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 29 2014 00:22:22 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/home/jshupert/ffmpeg_build --extra-cflags=-I/home/jshupert/ffmpeg_build/include --extra-ldflags=-L/home/jshupert/ffmpeg_build/lib --bindir=/home/jshupert/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libfreetype --enable-libfontconfig --enable-libfribidi --enable-x11grab
  libavutil      54.  7.101 / 54.  7.101
  libavcodec     56.  1.101 / 56.  1.101
  libavformat    56.  7.101 / 56.  7.101
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.102 /  5.  1.102
  libswscale      3.  1.100 /  3.  1.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  1.100 / 53.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jshupert//Videos/ShupeJarArtVideo/shupeJarProductions_art_video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp423gp5
    creation_time   : 2014-11-05 05:02:03
    title           : Unknown
  Duration: 00:00:10.39, start: 0.000000, bitrate: 1717 kb/s
    Chapter #0.0: start 0.000000, end 10.388333
    Metadata:
      title           : Chapter 01
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 976x720 [SAR 240:241 DAR 976:723], 1556 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 173 kb/s (default)
    Metadata:
      creation_time   : 2014-11-05 05:02:03
handler_name : /tmp/audio.IAATOX:fmt=aac:lang=und:group=1:#audio - Imported with GPAC 0.4.6-DEV-rev
    Stream #0:2(und): Data: none (mp4s / 0x7334706D), 0 kb/s (default)
    Metadata:
      creation_time   : 2014-11-05 05:02:03
      handler_name    : GPAC MPEG-4 OD Handler
    Stream #0:3(und): Data: none (mp4s / 0x7334706D), 0 kb/s (default)
    Metadata:
      creation_time   : 2014-11-05 05:02:03
      handler_name    : GPAC MPEG-4 Scene Description Handler
Data stream encoding not supported yet (only streamcopy)
|

|
---------------------------------
|

|my Q might be:
Is it possible to
|write
Encoded date                            : UTC 2014-11-05 05:02:03
Tagged date                              : UTC 2014-11-05 05:02:03
into the metadata or -itags  so that i can change that Encoded date

|------------------------------------
|

|ffprobe shows this metadata stuff
|

| ffprobe -loglevel quiet -show_format ~//Videos/ShupeJarArtVideo/sjp_0.mp4

 shows

 peJarArtVideo/sjp_0.mp4
[FORMAT]
filename=/home/jshupert//Videos/ShupeJarArtVideo/sjp_0.mp4
nb_streams=3
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=-0.021333
duration=10.411000
size=1676868
bit_rate=1288535
probe_score=100
TAG:major_brand=isom
TAG:minor_version=512
TAG:compatible_brands=isomiso2avc1mp41
TAG:title=Unknown
TAG:encoder=Lavf56.7.101
[/FORMAT]
|

and i *think
http://wiki.multimedia.cx/index.php?title=FFmpeg_Metadata
is no help since " Encoded date " is not found in the lists -- where as Title , Artist is..

Thanks much

best wishes

shupe
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to