Opened 12 years ago

Closed 12 years ago

#877 closed defect (fixed)

nut muxed with ffmpeg is missing index at the end

Reported by: Elon Musk Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: nut
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

And ffplay reports read_timestamp failed if you try to seek

ffmpeg -i ~/git/fate-suite/8bps/full9iron-partial.mov /tmp/a.nut

ffmpeg version git-2012-01-04-17edc37, Copyright (c) 2000-2012 the FFmpeg developers

built on Jan 4 2012 17:21:29 with clang 3.0 (branches/release_30 142614)
configuration: --cc=clang --as=clang --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-indev=alsa --disable-outdev=alsa --enable-libcdio --enable-libx264 --enable-libmp3lame --enable-gpl --enable-shared --disable-static --disable-indev=bktr --enable-openssl --enable-nonfree
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 53.100 / 53. 53.100
libavformat 53. 29.100 / 53. 29.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 57.101 / 2. 57.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 5.100
libpostproc 51. 2.100 / 51. 2.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/r/git/fate-suite/8bps/full9iron-partial.mov':

Metadata:

creation_time : 2003-05-03 12:47:03

Duration: 00:00:13.52, start: 0.000000, bitrate: 620 kb/s

Stream #0:0(eng): Video: 8bps (8BPS / 0x53504238), pal8, 360x240, 8072 kb/s, SAR 648:720 DAR 27:20, 12.50 fps, 12.50 tbr, 125 tbn, 125 tbc
Metadata:

creation_time : 2003-05-03 12:47:03
handler_name : ?Apple Alias Data Handler

Stream #0:1(eng): Audio: pcm_u8 (raw / 0x20776172), 22050 Hz, 1 channels, u8, 176 kb/s
Metadata:

creation_time : 2003-05-03 12:48:24
handler_name : ?Apple Alias Data Handler

File '/tmp/a.nut' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'pal8' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x299ff080] w:360 h:240 pixfmt:pal8 tb:1/1000000 sar:648/720 sws_param:
[buffersink @ 0x299ff100] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x299ff180] w:360 h:240 fmt:pal8 -> w:360 h:240 fmt:yuv420p flags:0x4
Incompatible sample format 'u8' for codec 'libmp3lame', auto-selecting format 's16'
Output #0, nut, to '/tmp/a.nut':

Metadata:

creation_time : 2003-05-03 12:47:03
encoder : Lavf53.29.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 360x240 [SAR 9:10 DAR 27:20], q=2-31, 200 kb/s, 12.50 tbn, 12.50 tbc
Metadata:

creation_time : 2003-05-03 12:47:03
X-Language : eng
handler_name : ?Apple Alias Data Handler

Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, 1 channels, s16, 128 kb/s
Metadata:

creation_time : 2003-05-03 12:48:24
X-Language : eng
handler_name : ?Apple Alias Data Handler

Stream mapping:

Stream #0:0 -> #0:0 (8bps -> mpeg4)
Stream #0:1 -> #0:1 (pcm_u8 -> libmp3lame)

Press [q] to stop, ? for help
Truncating packet of size 80553 to 52547
Error while decoding stream #0:0
Truncating packet of size 1024 to 1
frame= 12 fps= 0 q=15.3 Lsize= 166kB time=00:00:00.96 bitrate=1412.5kbits/s
video:148kB audio:17kB global headers:0kB muxing overhead 0.279840%

ffmpeg -i /tmp/a.nut

ffmpeg version git-2012-01-04-17edc37, Copyright (c) 2000-2012 the FFmpeg developers

built on Jan 4 2012 17:21:29 with clang 3.0 (branches/release_30 142614)
configuration: --cc=clang --as=clang --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-indev=alsa --disable-outdev=alsa --enable-libcdio --enable-libx264 --enable-libmp3lame --enable-gpl --enable-shared --disable-static --disable-indev=bktr --enable-openssl --enable-nonfree
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 53.100 / 53. 53.100
libavformat 53. 29.100 / 53. 29.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 57.101 / 2. 57.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 5.100
libpostproc 51. 2.100 / 51. 2.100

[nut @ 0x2986c100] no index at the end
[nut @ 0x2986c100] Estimating duration from bitrate, this may be inaccurate
Input #0, nut, from '/tmp/a.nut':

Metadata:

creation_time : 2003-05-03 12:47:03
encoder : Lavf53.29.100

Duration: 00:00:10.60, start: 0.000000, bitrate: 127 kb/s

Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 360x240, SAR 9:10 DAR 27:20, 12.50 tbr, 12.50 tbn, 12.50 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, mono, s16, 128 kb/s

At least one output file must be specified

Change History (7)

comment:1 by Michael Niedermayer, 12 years ago

The index isnt mandatory but seeking with ffplay should not fail
is this a regression ?

comment:2 by Elon Musk, 12 years ago

That was my first muxing into nut, so I can not answer that.

Reported duration from ffplay is invalid (14 minutes but should be ~3), seeking works somehow but it is buggy causing mplayer2 to crash it I try to seek past end of stream.

comment:3 by Carl Eugen Hoyos, 12 years ago

Keywords: nut added

Seeking with ffplay works fine here with the output file and current git head.

comment:4 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavformat

Duration was shown as "N/A" until r21971 (6f5a3d0a), an incorrect value is shown since r21972 (b7884740)

in reply to:  4 ; comment:5 by Michael Niedermayer, 12 years ago

Replying to cehoyos:

Duration was shown as "N/A" until r21971 (6f5a3d0a), an incorrect value is shown since r21972 (b7884740)

cant reproduce, duration is N/A here

in reply to:  5 comment:6 by Carl Eugen Hoyos, 12 years ago

Replying to michael:

Replying to cehoyos:

Duration was shown as "N/A" until r21971 (6f5a3d0a), an incorrect value is shown since r21972 (b7884740)

cant reproduce, duration is N/A here

I can confirm that the wrong duration is not shown anymore.

comment:7 by Michael Niedermayer, 12 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.