Opened 4 weeks ago

Last modified 4 weeks ago

#6271 new enhancement

Treat HDV private streams as subtitles and convert to .srt

Reported by: dfgd Owned by:
Priority: wish Component: undetermined
Version: git-master Keywords: mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hello.

Current version doesn't recognize HDV private streams. They contain aperture, shutter speed, gain and original timestamps. I need to convert a lot of tapes to Matroska (H.264 + MP2 passthrough) and keep such informations as subtitles.

I found out GStreamer had a plugin called 'hdvparse' in gst-plugins-bad:

https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/log/gst/hdvparse

Any chance to see this functionality ported to FFmpeg? Thank you.

Here's the log from ffprobe.

ffprobe version N-84679-gd65b595 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --
enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0
r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-lib
bs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --ena
ble-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb -
-enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-lib
opus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --en
able-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc -
-enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --en
able-lzma --enable-zlib
  libavutil      55. 51.100 / 55. 51.100
  libavcodec     57. 86.103 / 57. 86.103
  libavformat    57. 67.100 / 57. 67.100
  libavdevice    57.  3.101 / 57.  3.101
  libavfilter     6. 78.100 /  6. 78.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mpegts @ 00642720] Could not find codec parameters for stream 2 (Unknown: none
([160][0][0][0] / 0x00A0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 00642720] Could not find codec parameters for stream 3 (Unknown: none
([161][0][0][0] / 0x00A1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'C:\clips\HDV_clip.mpeg':
  Duration: 00:00:43.88, start: 77.000000, bitrate: 26873 kb/s
  Program 100
    Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tb
r, 90k tbn, 50 tbc
    Stream #0:1[0x814]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s1
6p, 384 kb/s
    Stream #0:2[0x815]: Unknown: none ([160][0][0][0] / 0x00A0)
    Stream #0:3[0x811]: Unknown: none ([161][0][0][0] / 0x00A1)
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 0 for input stream 3

Attachments (1)

Canon_HV30_PAL_sample.m2t (2.4 MB) - added by dfgd 4 weeks ago.
Very short clip from a Canon HV30 PAL camcorder.

Change History (2)

comment:1 Changed 4 weeks ago by cehoyos

  • Component changed from ffprobe to undetermined
  • Keywords mpegts added; parse hdv subtitle streams removed

Please provide a sample.

Changed 4 weeks ago by dfgd

Very short clip from a Canon HV30 PAL camcorder.

Note: See TracTickets for help on using tickets.