[FFmpeg-user] can't set mpegts metadata

Alexander Machev mukarator at gmail.com
Sat Sep 4 05:42:23 EEST 2021


Hi,

ffmpeg ignores my settings about these options - "service_name",
"service_provider" and "service_type" and sets its default values instead.
If I remove the -program option everything works fine, otherwise it won't.


ffmpeg -y -i "L:\test.ts" -c copy -map 0 -map_metadata 0 -movflags
use_metadata_tags -mpegts_transport_stream_id 0x8e -streamid 0:0x1432
-streamid 1:0x1442 -program program_num=0x8e:st=0:st=1
-mpegts_pmt_start_pid 0x1422 -metadata service_name="FOX Crime HD"
-metadata service_provider="TWDC" -metadata service_type="advanced codec HD
digital television" "L:\test.out.ts"
ffmpeg version 2021-09-01-git-c500dc7cca-full_build-www.gyan.dev Copyright
(c) 2000-2021 the FFmpeg developers
  built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma
--enable-libsnappy --enable-zlib --enable-librist --enable-libsrt
--enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray
--enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi
--enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg
--enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype
--enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg
--enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
--enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
--enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa
--enable-libbs2b --enable-libflite --enable-libmysofa
--enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57.  4.101 / 57.  4.101
  libavcodec     59.  6.100 / 59.  6.100
  libavformat    59.  4.102 / 59.  4.102
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8.  7.100 /  8.  7.100
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
Input #0, mpegts, from 'L:\test.ts':
  Duration: 00:00:49.28, start: 65394.681344, bitrate: 11234 kb/s
  Program 142
    Metadata:
      service_name    : FOX Crime HD
      service_provider: TWDC
  Stream #0:0[0x1432]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50
tbr, 90k tbn
  Stream #0:1[0x1442](bul): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, fltp, 256 kb/s
Output #0, mpegts, to 'L:\test.out.ts':
  Metadata:
    service_name    : FOX Crime HD
    service_provider: TWDC
    service_type    : advanced codec HD digital television
    encoder         : Lavf59.4.102
  Program 142
  Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 50 tbr,
90k tbn
  Stream #0:1(bul): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
fltp, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 2456 fps=0.0 q=-1.0 Lsize=   61925kB time=00:00:49.27
bitrate=10295.7kbits/s speed=93.9x
video:58535kB audio:1540kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 3.079223%

Greetings!


More information about the ffmpeg-user mailing list