[FFmpeg-user] compressed data with sdti

Dave Rice daverice at mac.com
Wed Oct 3 22:15:21 CEST 2012


On Oct 3, 2012, at 4:01 PM, Roger Pack wrote:

>> I'm working with many betacam sx tapes (http://en.wikipedia.org/wiki/Betacam#Betacam_SX) and trying to determine if there is a process to copy video data as-is from the tape to a file without requiring transcoding or uncompressing the data (similar to dv tape over firewire). I can output the data over SDTI which is a protocol to send compressed video data in the usually visual area of an SDI stream. I tried capturing an SDTI output of a video deck to an SDI capture card to an uncompressed file. I see that the encoded data is stored in a single field of this resulting v210 codec so I hoped to take only that single field and parse out the compressed data (mpeg2 from the tape); however in the resulting data I see none of the usual identities of mpeg2 (gop headers, 0x0001b5, etc).
> 
> Full command line and console output please?

I have to invent one since I'm not that familiar with the data encapsulated by SDTI in the resulting v210 data but I suppose to copy out the v210 but interpret it as mpeg2 I'd need a pipe like this; however, the compressed data within the v210 (from SDTI protocol is not as I expected and doesn't seem close to mpeg2, so this command is not expected to work).
dave

ffmpeg -i 732.avi -c:v copy -f rawvideo - | ffmpeg -c:v mpeg2video -i pipe: 
ffmpeg version 0.11.1.gitffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers Copyright (c) 2000-2012 the FFmpeg developers

  built on Aug 30 2012 23:14:02 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
  built on Aug 30 2012 23:14:02 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --host-cflags='-Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.7' --host-ldflags='-L/usr/local/Cellar/libtool/2.4.2/lib -L/usr/local/Cellar/automake/1.12.3/lib -L/usr/local/Cellar/autoconf/2.69/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/usr/X11/lib' --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --host-cflags='-Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.7' --host-ldflags='-L/usr/local/Cellar/libtool/2.4.2/lib -L/usr/local/Cellar/automake/1.12.3/lib -L/usr/local/Cellar/autoconf/2.69/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/usr/X11/lib' --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay
  libavutil      51. 70.100 / 51. 70.100
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 54.100 / 54. 54.100
  libavcodec     54. 54.100 / 54. 54.100
  libavformat    54. 25.104 / 54. 25.104
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 14.100 /  3. 14.100
  libavfilter     3. 14.100 /  3. 14.100
  libswscale      2.  1.101 /  2.  1.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '732.avi':
  Metadata:
    encoder         : Lavf54.25.104
    timecode        : 00:00:00;00
  Duration: 00:00:02.08, start: 0.000000, bitrate: 225548 kb/s
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 720x486, 59.94 tbr, 59.94 tbn, 59.94 tbc
Output #0, rawvideo, to 'pipe:':
  Metadata:
    timecode        : 00:00:00;00
    encoder         : Lavf54.25.104
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 720x486, q=2-31, 90k tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
pipe:: Invalid data found when processing input



More information about the ffmpeg-user mailing list