Opened 9 years ago
Closed 9 years ago
#5017 closed defect (fixed)
av_seek_frame on MXF failed to seek with latest ffmpeg
Reported by: | verem | Owned by: | Marton Balint |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | unspecified | Keywords: | regression |
Cc: | cus@passwd.hu | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | yes |
Description
Hi,
with current git of ffmpeg i found that seeking in MXF stop working.
simple code:
av_seek_frame(fmt_ctx, -1, fmt_ctx->start_time, AVSEEK_FLAG_BACKWARD)
return *-1* with latest MXF, but returns with n2.6-dev-2073-g5440076 it returns *0*
source of test code attached, MXF file could be downloaded from http://downloads.m1stereo.tv/b7e45b6c33493f8f607803257426cbc5/
Attachments (1)
Change History (10)
by , 9 years ago
Attachment: | av_seek_frame.c added |
---|
comment:1 by , 9 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:4 by , 9 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
i did a double check of results and i am sure that call
av_seek_frame(fmt_ctx, -1, fmt_ctx->start_time, AVSEEK_FLAG_BACKWARD);
returns -1 for MXF with current version and 0 with ffmpeg version N-76817-g13834c1
moreover i did a ffmpeg program run like:
./ffmpeg -dump -loglevel debug -ss 0 -i r0.mxf -vframes 1 -y temp.jpg
and it works only with older version ffmpeg version N-72966-gcf11fd6:
ffmpeg version N-72966-gcf11fd6 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2) configuration: --prefix=/usr/local/enctools --enable-shared libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 17.100 / 5. 17.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 Splitting the commandline. Reading option '-dump' ... matched as option 'dump' (dump each input packet) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'. Reading option '-i' ... matched as input file with argument 'r0.mxf'. Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'temp.jpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option dump (dump each input packet) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file r0.mxf. Applying option ss (set the start time offset) with argument 0. Successfully parsed a group of options. Opening an input file: r0.mxf. [mxf @ 0x88e1c0] Format mxf probed with size=2048 and score=100 [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.02.04.00 Last message repeated 3 times [mxf @ 0x88e1c0] invalid KAGSize 0 - guessing 1 [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.2f.00 Last message repeated 10 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.18.00 Last message repeated 12 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.37.00 Last message repeated 13 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.11.00 Last message repeated 17 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.11.00 Last message repeated 17 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.44.00 Last message repeated 19 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.48.00 Last message repeated 24 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.51.00 Last message repeated 23 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.14.00 Last message repeated 31 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.36.00 Last message repeated 14 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3a.00 Last message repeated 29 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.41.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.05.0e.0b.01.02.01.01.01.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.05.0e.0b.01.02.01.02.01.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.11.00 Last message repeated 17 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.11.00 Last message repeated 17 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.3b.00 Last message repeated 30 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.0f.00 Last message repeated 15 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.14.00 Last message repeated 31 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.30.00 Last message repeated 11 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.02.01.01.10.01.00 Last message repeated 34 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.53.01.01.0d.01.03.01.14.02.01.00 Last message repeated 35 times [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.04.04.00 Last message repeated 9 times [mxf @ 0x88e1c0] invalid KAGSize 0 - guessing 1 [mxf @ 0x88e1c0] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00 Last message repeated 35 times [mxf @ 0x88e1c0] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01030300 [mxf @ 0x88e1c0] pcm_s16be: Universal Label: 060e2b34.0401.0107.04020201.7e000000 [mxf @ 0x88e1c0] index entry 259 + TemporalOffset 1 = 260, which is out of bounds [mxf @ 0x88e1c0] Before avformat_find_stream_info() pos: 180340 bytes read:98560 seeks:6 [mxf @ 0x88e1c0] Probe buffer size limit of 5000000 bytes reached [mxf @ 0x88e1c0] rfps: 24.500000 0.019167 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 24.583333 0.013310 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 24.666667 0.008519 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 24.750000 0.004792 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 24.833333 0.002130 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 24.916667 0.000532 Last message repeated 1 times [mxf @ 0x88e1c0] rfps: 25.000000 0.000000 [mxf @ 0x88e1c0] rfps: 25.083333 0.000532 [mxf @ 0x88e1c0] rfps: 25.166667 0.002130 [mxf @ 0x88e1c0] rfps: 25.250000 0.004792 [mxf @ 0x88e1c0] rfps: 25.333333 0.008519 [mxf @ 0x88e1c0] rfps: 25.416667 0.013310 [mxf @ 0x88e1c0] rfps: 25.500000 0.019167 [mxf @ 0x88e1c0] rfps: 50.000000 0.000000 [mxf @ 0x88e1c0] After avformat_find_stream_info() pos: 5197425 bytes read:5125313 seeks:6 frames:51 Guessed Channel Layout for Input Stream #0.1 : 4.0 Input #0, mxf, from 'r0.mxf': Metadata: uid : 3e17845d-eb74-df11-8f13-00d0280715d4 generation_uid : 0618845d-eb74-df11-829b-00d0280715d4 company_name : Omneon Inc. product_name : Omneon Media Subsystem modification_date: 2010-06-10 23:53:27 product_version : 6.1.0.0.release application_platform: Omneon Media Api product_uid : 00000000-0000-0010-8000-050e0b010602 material_package_umid: 0x060A2B340101010501010D2313002E3DEA4C845DEB74DF11AF4A00D0280715D4 timecode : 16:54:59:21 Duration: 00:00:10.40, start: 0.000000, bitrate: 39796 kb/s Stream #0:0, 25, 1/25: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 35000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 Stream #0:1, 26, 1/48000: Audio: pcm_s24be, 48000 Hz, 4 channels, s32 (24 bit), 4608 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 Successfully opened the file. Parsing a group of options: output file temp.jpg. Applying option vframes (set the number of video frames to output) with argument 1. Successfully parsed a group of options. Opening an output file: temp.jpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0x879400] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0x879400] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x879400] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0x879400] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0x879400] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x879400] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x879400] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0x8847e0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0x8847e0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p' [auto-inserted scaler 0 @ 0x8850a0] Setting 'flags' to value '0x4' [auto-inserted scaler 0 @ 0x8850a0] w:iw h:ih flags:'0x4' interl:0 [format @ 0x8847e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0x883900] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x8850a0] picking yuvj420p out of 3 ref:yuv420p alpha:0 [swscaler @ 0x870040] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0x8850a0] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuvj420p sar:1/1 flags:0x4 [mjpeg @ 0x8a2240] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores [mjpeg @ 0x8a2240] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to 'temp.jpg': Metadata: uid : 3e17845d-eb74-df11-8f13-00d0280715d4 generation_uid : 0618845d-eb74-df11-829b-00d0280715d4 company_name : Omneon Inc. product_name : Omneon Media Subsystem modification_date: 2010-06-10 23:53:27 product_version : 6.1.0.0.release application_platform: Omneon Media Api product_uid : 00000000-0000-0010-8000-050e0b010602 material_package_umid: 0x060A2B340101010501010D2313002E3DEA4C845DEB74DF11AF4A00D0280715D4 timecode : 16:54:59:21 encoder : Lavf56.36.100 Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 encoder : Lavc56.41.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help stream #0: keyframe=1 duration=0.040 dts=-0.040 pts=0.080 size=223377 stream #0: keyframe=0 duration=0.040 dts=0.000 pts=0.000 size=125624 [mpeg2video @ 0x8961c0] allocating dummy last picture for B frame Cliping frame in rate conversion by 0.000008 [AVIOContext @ 0x93e840] Statistics: 0 seeks, 2 writeouts No more output streams to write to, finishing. frame= 1 fps=0.0 q=8.4 Lsize=N/A time=00:00:00.04 bitrate=N/A video:61kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (r0.mxf): Input stream #0:0 (video): 2 packets read (349001 bytes); 2 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); Total: 2 packets (349001 bytes) demuxed Output file #0 (temp.jpg): Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (62298 bytes); Total: 1 packets (62298 bytes) muxed 3 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x88da40] Statistics: 5520554 bytes read, 7 seeks
and do not work for newer version ffmpeg version N-76817-g13834c1
ffmpeg version N-76817-g13834c1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2) configuration: --prefix=/usr/local/enctools --enable-shared libavutil 55. 9.100 / 55. 9.100 libavcodec 57. 16.100 / 57. 16.100 libavformat 57. 19.100 / 57. 19.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 15.100 / 6. 15.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Splitting the commandline. Reading option '-dump' ... matched as option 'dump' (dump each input packet) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'. Reading option '-i' ... matched as input file with argument 'r0.mxf'. Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'temp.jpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option dump (dump each input packet) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file r0.mxf. Applying option ss (set the start time offset) with argument 0. Successfully parsed a group of options. Opening an input file: r0.mxf. [mxf @ 0x1a3e460] Format mxf probed with size=2048 and score=100 [mxf @ 0x1a3e460] invalid KAGSize 0 - guessing 1 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.41.00 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.53.01.05.0e.0b.01.02.01.01.01.00 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.53.01.05.0e.0b.01.02.01.02.01.00 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00 Last message repeated 1 times [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.03.01.14.02.01.00 [mxf @ 0x1a3e460] invalid KAGSize 0 - guessing 1 [mxf @ 0x1a3e460] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00 [mxf @ 0x1a3e460] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01030300 [mxf @ 0x1a3e460] pcm_s16be: Universal Label: 060e2b34.0401.0107.04020201.7e000000 [mxf @ 0x1a3e460] index entry 259 + TemporalOffset 1 = 260, which is out of bounds [mxf @ 0x1a3e460] Before avformat_find_stream_info() pos: 180340 bytes read:98560 seeks:6 [mxf @ 0x1a3e460] Probe buffer size limit of 5000000 bytes reached [mxf @ 0x1a3e460] rfps: 24.500000 0.019167 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 24.583333 0.013310 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 24.666667 0.008519 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 24.750000 0.004792 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 24.833333 0.002130 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 24.916667 0.000532 Last message repeated 1 times [mxf @ 0x1a3e460] rfps: 25.000000 0.000000 [mxf @ 0x1a3e460] rfps: 25.083333 0.000532 [mxf @ 0x1a3e460] rfps: 25.166667 0.002130 [mxf @ 0x1a3e460] rfps: 25.250000 0.004792 [mxf @ 0x1a3e460] rfps: 25.333333 0.008519 [mxf @ 0x1a3e460] rfps: 25.416667 0.013310 [mxf @ 0x1a3e460] rfps: 25.500000 0.019167 [mxf @ 0x1a3e460] rfps: 50.000000 0.000000 [mxf @ 0x1a3e460] After avformat_find_stream_info() pos: 5197425 bytes read:5125313 seeks:6 frames:51 [mxf @ 0x1a3e460] invalid dts/pts combination 24 Last message repeated 8 times r0.mxf: could not seek to position 0.000 Guessed Channel Layout for Input Stream #0.1 : 4.0 Input #0, mxf, from 'r0.mxf': Metadata: uid : 3e17845d-eb74-df11-8f13-00d0280715d4 generation_uid : 0618845d-eb74-df11-829b-00d0280715d4 company_name : Omneon Inc. product_name : Omneon Media Subsystem modification_date: 2010-06-10 23:53:27 product_version : 6.1.0.0.release application_platform: Omneon Media Api product_uid : 00000000-0000-0010-8000-050e0b010602 material_package_umid: 0x060A2B340101010501010D2313002E3DEA4C845DEB74DF11AF4A00D0280715D4 timecode : 16:54:59:21 Duration: 00:00:10.40, start: 0.000000, bitrate: 39796 kb/s Stream #0:0, 25, 1/25: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 35000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 Stream #0:1, 26, 1/48000: Audio: pcm_s24be, 48000 Hz, 4 channels, s32 (24 bit), 4608 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 Successfully opened the file. Parsing a group of options: output file temp.jpg. Applying option vframes (set the number of video frames to output) with argument 1. Successfully parsed a group of options. Opening an output file: temp.jpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x1a58640] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x1a58640] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0x1a59260] compat: called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0x1a59260] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p' [auto-inserted scaler 0 @ 0x1a59b00] Setting 'flags' to value 'bicubic' [auto-inserted scaler 0 @ 0x1a59b00] w:iw h:ih flags:'bicubic' interl:0 [format @ 0x1a59260] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0x1a57a00] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x1a59b00] picking yuvj420p out of 3 ref:yuv420p alpha:0 [swscaler @ 0x1a5a4a0] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0x1a59b00] w:1920 h:1080 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuvj420p sar:1/1 flags:0x4 [mjpeg @ 0x1a54b80] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores [mjpeg @ 0x1a54b80] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to 'temp.jpg': Metadata: uid : 3e17845d-eb74-df11-8f13-00d0280715d4 generation_uid : 0618845d-eb74-df11-829b-00d0280715d4 company_name : Omneon Inc. product_name : Omneon Media Subsystem modification_date: 2010-06-10 23:53:27 product_version : 6.1.0.0.release application_platform: Omneon Media Api product_uid : 00000000-0000-0010-8000-050e0b010602 material_package_umid: 0x060A2B340101010501010D2313002E3DEA4C845DEB74DF11AF4A00D0280715D4 timecode : 16:54:59:21 encoder : Lavf57.19.100 Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc, left), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2313006468E259845DEB74DF11A2D000D0280715D4 encoder : Lavc57.16.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [output stream 0:0 @ 0x1a58f20] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (r0.mxf): Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); Total: 0 packets (0 bytes) demuxed Output file #0 (temp.jpg): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x1a46ee0] Statistics: 56680080 bytes read, 7 seeks
i suspect that it happens after
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=95584ddac477fa09d055c5ed56b99f94e0eff89f
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=53f2ef2c4afb1d49a679dea9163cb0e4671f3117
comment:5 by , 9 years ago
Cc: | added |
---|
From the log it seems the index may be broken.
Have you tried more recent firmwares from Omneon?
comment:6 by , 9 years ago
The file i tested against comes from Omneon samples (sometimes i assume them (files) as reference for testing)
But i did also a tests against MainconceptLogo_XDCAMHD_1920x1080_422.mxf that comes from http://downloads.mainconcept.com/MainConceptLogo_XDCAMHD_1920x1080_422.zip, the result is the same:
av_seek_frame(MainconceptLogo_XDCAMHD_1920x1080_422.mxf)=-1
ffmpeg output:
ffmpeg version N-76817-g13834c1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2) configuration: --prefix=/usr/local/enctools --enable-shared libavutil 55. 9.100 / 55. 9.100 libavcodec 57. 16.100 / 57. 16.100 libavformat 57. 19.100 / 57. 19.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 15.100 / 6. 15.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Splitting the commandline. Reading option '-dump' ... matched as option 'dump' (dump each input packet) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'. Reading option '-i' ... matched as input file with argument 'MainconceptLogo_XDCAMHD_1920x1080_422.mxf'. Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'temp.jpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option dump (dump each input packet) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file MainconceptLogo_XDCAMHD_1920x1080_422.mxf. Applying option ss (set the start time offset) with argument 0. Successfully parsed a group of options. Opening an input file: MainconceptLogo_XDCAMHD_1920x1080_422.mxf. [mxf @ 0x17b5460] Format mxf probed with size=2048 and score=100 [mxf @ 0x17b5460] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00 [mxf @ 0x17b5460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00 [mxf @ 0x17b5460] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00 Last message repeated 4 times [mxf @ 0x17b5460] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00 [mxf @ 0x17b5460] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00 Last message repeated 1 times [mxf @ 0x17b5460] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01040300 [mxf @ 0x17b5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0x17b5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0x17b5460] Before avformat_find_stream_info() pos: 7680 bytes read:103572 seeks:6 [mxf @ 0x17b5460] Probe buffer size limit of 5000000 bytes reached [mxf @ 0x17b5460] rfps: 24.416667 0.018103 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.500000 0.013300 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.583333 0.009236 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.666667 0.005911 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.750000 0.003325 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.833333 0.001478 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 24.916667 0.000369 Last message repeated 1 times [mxf @ 0x17b5460] rfps: 25.000000 0.000000 [mxf @ 0x17b5460] rfps: 25.083333 0.000369 [mxf @ 0x17b5460] rfps: 25.166667 0.001478 [mxf @ 0x17b5460] rfps: 25.250000 0.003325 [mxf @ 0x17b5460] rfps: 25.333333 0.005911 [mxf @ 0x17b5460] rfps: 25.416667 0.009236 [mxf @ 0x17b5460] rfps: 25.500000 0.013300 [mxf @ 0x17b5460] rfps: 25.583333 0.018103 [mxf @ 0x17b5460] rfps: 50.000000 0.000000 [mxf @ 0x17b5460] After avformat_find_stream_info() pos: 5100910 bytes read:5196802 seeks:6 frames:61 [mxf @ 0x17b5460] invalid dts/pts combination 19 Last message repeated 9 times MainconceptLogo_XDCAMHD_1920x1080_422.mxf: could not seek to position 0.000 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from 'MainconceptLogo_XDCAMHD_1920x1080_422.mxf': Metadata: uid : 153f5305-2f61-844e-ae5d-9c2260660400 generation_uid : 153f5305-2f61-844e-ae5d-9c2260660500 company_name : SONY product_name : Opt product_version : 1.20 product_uid : 060e2b34-0401-0103-0e06-0120027e0200 modification_date: 2009-09-21 17:09:41 material_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660100 timecode : 00:00:00:00 Duration: 00:00:09.64, start: 0.000000, bitrate: 51655 kb/s Stream #0:0, 21, 1/25: Video: mpeg2video (4:2:2), 1 reference frame, yuv422p(tv, bt709, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660200 Stream #0:1, 20, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660200 Stream #0:2, 20, 1/48000: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660200 Successfully opened the file. Parsing a group of options: output file temp.jpg. Applying option vframes (set the number of video frames to output) with argument 1. Successfully parsed a group of options. Opening an output file: temp.jpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'pix_fmt' to value '4' [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x17d1ae0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0x17d1ae0] w:1920 h:1080 pixfmt:yuv422p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0x17d28c0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0x17d28c0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p' [auto-inserted scaler 0 @ 0x17d2dc0] Setting 'flags' to value 'bicubic' [auto-inserted scaler 0 @ 0x17d2dc0] w:iw h:ih flags:'bicubic' interl:0 [format @ 0x17d28c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0x17d0f60] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0x17d2dc0] picking yuvj422p out of 3 ref:yuv422p alpha:0 [swscaler @ 0x17d3800] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0x17d2dc0] w:1920 h:1080 fmt:yuv422p sar:1/1 -> w:1920 h:1080 fmt:yuvj422p sar:1/1 flags:0x4 [mjpeg @ 0x17ce100] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores [mjpeg @ 0x17ce100] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to 'temp.jpg': Metadata: uid : 153f5305-2f61-844e-ae5d-9c2260660400 generation_uid : 153f5305-2f61-844e-ae5d-9c2260660500 company_name : SONY product_name : Opt product_version : 1.20 product_uid : 060e2b34-0401-0103-0e06-0120027e0200 modification_date: 2009-09-21 17:09:41 material_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660100 timecode : 00:00:00:00 encoder : Lavf57.19.100 Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj422p(pc, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D4313000000153F53052F61844EAE5D9C2260660200 encoder : Lavc57.16.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [output stream 0:0 @ 0x17d2640] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (MainconceptLogo_XDCAMHD_1920x1080_422.mxf): Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); Input stream #0:2 (audio): 0 packets read (0 bytes); Total: 0 packets (0 bytes) demuxed Output file #0 (temp.jpg): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x17bdf00] Statistics: 67433546 bytes read, 7 seeks
Samples from http://opencubetech.com/page47/ gives the same:
xdcamhd-sxs-50mbps-1080i50.mxf
av_seek_frame(xdcamhd-sxs-50mbps-1080i50.mxf)=-1
ffmpeg version N-76817-g13834c1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2) configuration: --prefix=/usr/local/enctools --enable-shared libavutil 55. 9.100 / 55. 9.100 libavcodec 57. 16.100 / 57. 16.100 libavformat 57. 19.100 / 57. 19.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 15.100 / 6. 15.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Splitting the commandline. Reading option '-dump' ... matched as option 'dump' (dump each input packet) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'. Reading option '-i' ... matched as input file with argument 'xdcamhd-sxs-50mbps-1080i50.mxf'. Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'temp.jpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option dump (dump each input packet) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file xdcamhd-sxs-50mbps-1080i50.mxf. Applying option ss (set the start time offset) with argument 0. Successfully parsed a group of options. Opening an input file: xdcamhd-sxs-50mbps-1080i50.mxf. [mxf @ 0xaa5460] Format mxf probed with size=2048 and score=100 [mxf @ 0xaa5460] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00 Last message repeated 1 times [mxf @ 0xaa5460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00 [mxf @ 0xaa5460] Dark key 06.0e.2b.34.01.01.01.05.03.01.02.20.01.00.00.00 [mxf @ 0xaa5460] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00 Last message repeated 3 times [mxf @ 0xaa5460] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00 [mxf @ 0xaa5460] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01040300 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xaa5460] Before avformat_find_stream_info() pos: 56320 bytes read:98940 seeks:6 [mxf @ 0xaa5460] Probe buffer size limit of 5000000 bytes reached [mxf @ 0xaa5460] rfps: 24.250000 0.019125 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.333333 0.015111 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.416667 0.011569 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.500000 0.008500 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.583333 0.005903 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.666667 0.003778 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.750000 0.002125 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.833333 0.000944 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 24.916667 0.000236 Last message repeated 1 times [mxf @ 0xaa5460] rfps: 25.000000 0.000000 [mxf @ 0xaa5460] rfps: 25.083333 0.000236 [mxf @ 0xaa5460] rfps: 25.166667 0.000944 [mxf @ 0xaa5460] rfps: 25.250000 0.002125 [mxf @ 0xaa5460] rfps: 25.333333 0.003778 [mxf @ 0xaa5460] rfps: 25.416667 0.005903 [mxf @ 0xaa5460] rfps: 25.500000 0.008500 [mxf @ 0xaa5460] rfps: 25.583333 0.011569 [mxf @ 0xaa5460] rfps: 25.666667 0.015111 [mxf @ 0xaa5460] rfps: 25.750000 0.019125 [mxf @ 0xaa5460] rfps: 50.000000 0.000000 [mxf @ 0xaa5460] After avformat_find_stream_info() pos: 5211384 bytes read:5254004 seeks:6 frames:145 [mxf @ 0xaa5460] invalid dts/pts combination 15 Last message repeated 5 times xdcamhd-sxs-50mbps-1080i50.mxf: could not seek to position 0.000 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Guessed Channel Layout for Input Stream #0.6 : mono Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'xdcamhd-sxs-50mbps-1080i50.mxf': Metadata: uid : b3c3c8a0-28f4-11e2-8b42-00195b542ed4 generation_uid : b3c3c8a0-28f4-11e2-8b43-00195b542ed4 company_name : oc product_name : OCtk product_version : 2.5 product_uid : 109c5440-d21d-b211-8029-001111ebc476 modification_date: 2012-11-07 17:03:42 material_package_umid: 0x060A2B340101010501010D2013000000B3C2691028F411E28B2600195B542ED4 timecode : 14:49:13:20 Duration: 00:00:06.64, start: 0.000000, bitrate: 60456 kb/s Stream #0:0, 17, 1/25: Video: mpeg2video (4:2:2), 1 reference frame, yuv422p(tv, bt709, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:1, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:2, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:3, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:4, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:5, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:6, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:7, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Stream #0:8, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 Successfully opened the file. Parsing a group of options: output file temp.jpg. Applying option vframes (set the number of video frames to output) with argument 1. Successfully parsed a group of options. Opening an output file: temp.jpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0xac8500] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0xac8500] Setting 'pix_fmt' to value '4' [graph 0 input from stream 0:0 @ 0xac8500] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0xac8500] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0xac8500] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0xac8500] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0xac8500] w:1920 h:1080 pixfmt:yuv422p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0xac8f00] compat: called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0xac8f00] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p' [auto-inserted scaler 0 @ 0xac9840] Setting 'flags' to value 'bicubic' [auto-inserted scaler 0 @ 0xac9840] w:iw h:ih flags:'bicubic' interl:0 [format @ 0xac8f00] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0xaa5e20] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0xac9840] picking yuvj422p out of 3 ref:yuv422p alpha:0 [swscaler @ 0xac9e60] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0xac9840] w:1920 h:1080 fmt:yuv422p sar:1/1 -> w:1920 h:1080 fmt:yuvj422p sar:1/1 flags:0x4 [mjpeg @ 0xac54e0] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores [mjpeg @ 0xac54e0] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to 'temp.jpg': Metadata: uid : b3c3c8a0-28f4-11e2-8b42-00195b542ed4 generation_uid : b3c3c8a0-28f4-11e2-8b43-00195b542ed4 company_name : oc product_name : OCtk product_version : 2.5 product_uid : 109c5440-d21d-b211-8029-001111ebc476 modification_date: 2012-11-07 17:03:42 material_package_umid: 0x060A2B340101010501010D2013000000B3C2691028F411E28B2600195B542ED4 timecode : 14:49:13:20 encoder : Lavf57.19.100 Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj422p(pc, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2013000000B3C157A028F411E28B0B00195B542ED4 encoder : Lavc57.16.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [output stream 0:0 @ 0xac8c60] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (xdcamhd-sxs-50mbps-1080i50.mxf): Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); Input stream #0:2 (audio): 0 packets read (0 bytes); Input stream #0:3 (audio): 0 packets read (0 bytes); Input stream #0:4 (audio): 0 packets read (0 bytes); Input stream #0:5 (audio): 0 packets read (0 bytes); Input stream #0:6 (audio): 0 packets read (0 bytes); Input stream #0:7 (audio): 0 packets read (0 bytes); Input stream #0:8 (audio): 0 packets read (0 bytes); Total: 0 packets (0 bytes) demuxed Output file #0 (temp.jpg): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0xaadf40] Statistics: 55376304 bytes read, 7 seeks
xdcamhd-50mbps-1080i50.mxf:
av_seek_frame(xdcamhd-50mbps-1080i50.mxf)=-1
ffmpeg version N-76817-g13834c1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.6.3 (GCC) 20120306 (Red Hat 4.6.3-2) configuration: --prefix=/usr/local/enctools --enable-shared libavutil 55. 9.100 / 55. 9.100 libavcodec 57. 16.100 / 57. 16.100 libavformat 57. 19.100 / 57. 19.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 15.100 / 6. 15.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 Splitting the commandline. Reading option '-dump' ... matched as option 'dump' (dump each input packet) with argument '1'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'. Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'. Reading option '-i' ... matched as input file with argument 'xdcamhd-50mbps-1080i50.mxf'. Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'temp.jpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option dump (dump each input packet) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file xdcamhd-50mbps-1080i50.mxf. Applying option ss (set the start time offset) with argument 0. Successfully parsed a group of options. Opening an input file: xdcamhd-50mbps-1080i50.mxf. [mxf @ 0xf3f460] Format mxf probed with size=2048 and score=100 [mxf @ 0xf3f460] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00 [mxf @ 0xf3f460] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00 [mxf @ 0xf3f460] Dark key 06.0e.2b.34.01.01.01.05.03.01.02.20.01.00.00.00 [mxf @ 0xf3f460] Dark key 06.0e.2b.34.01.01.01.01.03.01.02.10.01.00.00.00 Last message repeated 3 times [mxf @ 0xf3f460] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00 [mxf @ 0xf3f460] mpeg2video: Universal Label: 060e2b34.0401.0103.04010202.01040300 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] none: Universal Label: 00000000.0000.0000.00000000.00000000 [mxf @ 0xf3f460] Before avformat_find_stream_info() pos: 14848 bytes read:69244 seeks:5 [mxf @ 0xf3f460] Probe buffer size limit of 5000000 bytes reached [mxf @ 0xf3f460] rfps: 24.250000 0.019125 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.333333 0.015111 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.416667 0.011569 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.500000 0.008500 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.583333 0.005903 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.666667 0.003778 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.750000 0.002125 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.833333 0.000944 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 24.916667 0.000236 Last message repeated 1 times [mxf @ 0xf3f460] rfps: 25.000000 0.000000 [mxf @ 0xf3f460] rfps: 25.083333 0.000236 [mxf @ 0xf3f460] rfps: 25.166667 0.000944 [mxf @ 0xf3f460] rfps: 25.250000 0.002125 [mxf @ 0xf3f460] rfps: 25.333333 0.003778 [mxf @ 0xf3f460] rfps: 25.416667 0.005903 [mxf @ 0xf3f460] rfps: 25.500000 0.008500 [mxf @ 0xf3f460] rfps: 25.583333 0.011569 [mxf @ 0xf3f460] rfps: 25.666667 0.015111 [mxf @ 0xf3f460] rfps: 25.750000 0.019125 [mxf @ 0xf3f460] rfps: 50.000000 0.000000 [mxf @ 0xf3f460] After avformat_find_stream_info() pos: 5169912 bytes read:5224308 seeks:5 frames:145 [mxf @ 0xf3f460] invalid dts/pts combination 15 Last message repeated 5 times xdcamhd-50mbps-1080i50.mxf: could not seek to position 0.000 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Guessed Channel Layout for Input Stream #0.6 : mono Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'xdcamhd-50mbps-1080i50.mxf': Metadata: uid : a3e01880-28f4-11e2-8ace-00195b542ed4 generation_uid : a3e01880-28f4-11e2-8acf-00195b542ed4 company_name : OC product_name : OCTk product_version : 2.5 product_uid : 109c5440-d21d-b211-8029-001111ebc476 modification_date: 2012-11-07 17:03:16 material_package_umid: 0x060A2B340101010501010D2013000000A3DEB8F028F411E28AB200195B542ED4 timecode : 14:49:13:20 Duration: 00:00:06.64, start: 0.000000, bitrate: 60409 kb/s Stream #0:0, 17, 1/25: Video: mpeg2video (4:2:2), 1 reference frame, yuv422p(tv, bt709, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/50, 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:1, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:2, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:3, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:4, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:5, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:6, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:7, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Stream #0:8, 16, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 Successfully opened the file. Parsing a group of options: output file temp.jpg. Applying option vframes (set the number of video frames to output) with argument 1. Successfully parsed a group of options. Opening an output file: temp.jpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'video_size' to value '1920x1080' [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'pix_fmt' to value '4' [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0xf623e0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0xf623e0] w:1920 h:1080 pixfmt:yuv422p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 0xf62e80] compat: called with args=[yuvj420p|yuvj422p|yuvj444p] [format @ 0xf62e80] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p' [auto-inserted scaler 0 @ 0xf63320] Setting 'flags' to value 'bicubic' [auto-inserted scaler 0 @ 0xf63320] w:iw h:ih flags:'bicubic' interl:0 [format @ 0xf62e80] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0xf3fbc0] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 0xf63320] picking yuvj422p out of 3 ref:yuv422p alpha:0 [swscaler @ 0xf63d20] deprecated pixel format used, make sure you did set range correctly [auto-inserted scaler 0 @ 0xf63320] w:1920 h:1080 fmt:yuv422p sar:1/1 -> w:1920 h:1080 fmt:yuvj422p sar:1/1 flags:0x4 [mjpeg @ 0xf5f4e0] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores [mjpeg @ 0xf5f4e0] intra_quant_bias = 96 inter_quant_bias = 0 Output #0, image2, to 'temp.jpg': Metadata: uid : a3e01880-28f4-11e2-8ace-00195b542ed4 generation_uid : a3e01880-28f4-11e2-8acf-00195b542ed4 company_name : OC product_name : OCTk product_version : 2.5 product_uid : 109c5440-d21d-b211-8029-001111ebc476 modification_date: 2012-11-07 17:03:16 material_package_umid: 0x060A2B340101010501010D2013000000A3DEB8F028F411E28AB200195B542ED4 timecode : 14:49:13:20 encoder : Lavf57.19.100 Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj422p(pc, topleft), 1920x1080 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D2013000000A3DDA78028F411E28A9700195B542ED4 encoder : Lavc57.16.100 mjpeg Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> mjpeg (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 1 times [output stream 0:0 @ 0xf62c00] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (xdcamhd-50mbps-1080i50.mxf): Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); Input stream #0:2 (audio): 0 packets read (0 bytes); Input stream #0:3 (audio): 0 packets read (0 bytes); Input stream #0:4 (audio): 0 packets read (0 bytes); Input stream #0:5 (audio): 0 packets read (0 bytes); Input stream #0:6 (audio): 0 packets read (0 bytes); Input stream #0:7 (audio): 0 packets read (0 bytes); Input stream #0:8 (audio): 0 packets read (0 bytes); Total: 0 packets (0 bytes) demuxed Output file #0 (temp.jpg): Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); Total: 0 packets (0 bytes) muxed Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0xf47f40] Statistics: 55349680 bytes read, 6 seeks
comment:7 by , 9 years ago
Another MXF XDCAM samples could be taken from http://hamburgpromedia.com/Testfiles/MXF_MPEG_Testfiles.php
av_seek_frame(XDcam_HD4221080i50.mxf)=-1
av_seek_frame(XDCAM_HD422_720p50.mxf)=-1
may be it is a good idea to collect such files for seek-testing regression
comment:8 by , 9 years ago
Analyzed by developer: | set |
---|---|
Keywords: | regression added |
Owner: | set to |
Priority: | normal → important |
Reproduced by developer: | set |
Status: | reopened → open |
You are right, since the index table was changed to presentation order, seeking before the first keyframe does not work...
Mpeg video created by ffmpeg has no such problems, because they start with a keyframe in both presentation and storage order, but "real" XDCAM mxf files usually start with two B frames in presentation order...
I will send a patch soon to ffmpeg-devel which should fix this.
comment:9 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed in 97795ba6c3a58fe1b72fedcf9c65c99fb0725b9c.
Tested with 3d2363fb