Quantcast

ffmpeg not detecting data stream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ffmpeg not detecting data stream

Opaskar, Mark (US SSA)
Hi!

For this particular problem, I'm using ffmpeg-0.5 on a Linux x86_64 platform. The input file is an MPEG-2 containing a video stream, and a KLV data stream. When I convert the file to any other video format, the video stream is parsed correctly, but the data stream is discarded.

Given my inputs, that's what should happen. However, the ffmpeg diagnostics don't even list the data stream. ffmpeg is apparently detecting the data, as the KLV packets are removed from the new file (when viewing with od, or when demuxing with klvdemux) but there is no indication of that detection relayed to the user.

What confuses me is that I've seen instances of data streams being listed in diagnostic output in the archives. How does that work?

Questions that might need answering:

Am I using the right release for examining data streams?
If so: are there any limitations on data stream formats? (I was under the impression that KLV data was straight-forward, but the question is worth asking.) And, is there some undocumented flag that I'm missing in my execution (or configuration)?

(I'm eventually going to want to copy the data stream into new MPEG files, but that's a question for later.)

An example run follows. (It's excessively simple, but the directly relevant bit is the input program stream.)

./ffmpeg -i $dest2/aspa-1mpg.mpg -vframes 1 -f image2 $dest2/aspa-1mpg-1.jpg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --disable-ffplay --disable-ffserver --enable-libx264 --enable-pthreads --prefix=/home/users/opaskar/FFMPEG/ffmpeg-0.5-prefix --enable-cross-compile --enable-debug=3 --disable-stripping --cc=/home/users/opaskar/FFMPEG/gcc-4.4.0-prefix/bin/gcc --extra-cflags=-I/home/users/opaskar/FFMPEG/ffmpeg-0.5-prefix/include --extra-ldflags=-L/home/users/opaskar/FFMPEG/ffmpeg-0.5-prefix/lib -L/home/users/opaskar/FFMPEG/gcc-4.4.0-prefix/lib/gcc/x86_64-unknown-linux-gnu/4.4.0 -L/home/users/opaskar/FFMPEG/gcc-4.4.0-prefix/lib/gcc/x86_64-unknown-linux-gnu/lib64
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Aug 28 2009 23:46:17, gcc: 4.4.0 20090414 (prerelease)
[mpegts @ 0xef05b0]invalid dts/pts combination

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 30000.00 (30000/1)
    Last message repeated 30 times
Input #0, mpegts, from '/home/users/opaskar/FFMPEG/test/aspa-1mpg.mpg':
  Duration: 00:01:59.98, start: 1176.810000, bitrate: 6309 kb/s
  Program 1
    Stream #0.0[0x1023]: Video: mpeg2video, yuv420p, 704x480 [PAR 10:11 DAR 4:3], 6000 kb/s, 30k tbr, 90k tbn, 59.94 tbc
Output #0, image2, to '/home/users/opaskar/FFMPEG/test/aspa-1mpg-1.jpg':
    Stream #0.0: Video: mjpeg, yuvj420p, 704x480 [PAR 10:11 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 30k tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpegts @ 0xef05b0]invalid dts/pts combination
frame=    1 fps=  0 q=4.4 Lsize=      -0kB time=0.07 bitrate=  -2.7kbits/s
video:53kB audio:0kB global headers:0kB muxing overhead -100.040397%

Thanks,

Mark Opaskar
BAE Systems EI&S - C3I Systems
(858) 592-1723 (Desk)
[hidden email]<mailto:[hidden email]>

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Loading...