Opened 5 years ago

Closed 5 years ago

#3911 closed defect (worksforme)

using avstream.codec.time_base as a timebase hint to the muxer is deprecated. set avstream.time_base instead.

Reported by: needkane Owned by:
Priority: important Component: undetermined
Version: 2.3 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

source video : http://needkane.qiniudn.com/a.wmv

ffmpeg version 2.3.3-static Copyright (c) 2000-2014 the FFmpeg developers

built on Aug 19 2014 15:10:16 with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5)
configuration: --prefix=/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target --extra-cflags='-I/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target/include -static' --extra-ldflags='-L/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target/lib -lm -static' --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libspeex --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libilbc --enable-libfreetype
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100

Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

first mkdir m3u8out,and
command:
ffmpeg -i a.wmv -c:a mp3 -scodec mov_text -codec:v libx264 -map_metadata 0:g -map 0 -f ssegment -segment_format mpegts -segment_list_type m3u8 -segment_time 10 -force_key_frames expr:'gte(t,n_forced*10)' -segment_list m3u8out/file.m3u8 m3u8out/s%d

Result:
ffmpeg version 2.3.3-static Copyright (c) 2000-2014 the FFmpeg developers

built on Aug 19 2014 15:10:16 with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5)
configuration: --prefix=/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target --extra-cflags='-I/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target/include -static' --extra-ldflags='-L/home/qboxtest/qbox/ffmpeg/ffmpeg-static/target/lib -lm -static' --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libspeex --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libilbc --enable-libfreetype
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100

[avi @ 0x3b07420] non-interleaved AVI
Input #0, avi, from 'a.wmv':

Duration: 00:41:31.84, start: 0.000000, bitrate: 202 kb/s

Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 1366x768 [SAR 1:1 DAR 683:384], 181 kb/s, 5.02 fps, 5 tbr, 5.02 tbn, 5 tbc
Metadata:

title : ¼��4.avi ��Ƶ #1

Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 11025 Hz, mono, s16p, 20 kb/s
Metadata:

title : Microsoft Waveform: ¼��41.wav

[libx264 @ 0x3b0db20] using SAR=1/1
[libx264 @ 0x3b0db20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x3b0db20] profile High, level 3.2
[mpegts @ 0x41b7040] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.

Last message repeated 1 times

Output #0, stream_segment,ssegment, to 'm3u8out/s%d':

Metadata:

encoder : Lavf55.48.100
Stream #0:0: Video: h264 (libx264), yuv420p, 1366x768 [SAR 1:1 DAR 683:384], q=-1--1, 5 fps, 5 tbn, 5 tbc
Metadata:

title : ¼��4.avi ��Ƶ #1
encoder : Lavc55.69.100 libx264

Stream #0:1: Audio: mp3 (libmp3lame), 11025 Hz, mono, s16p
Metadata:

title : Microsoft Waveform: ¼��41.wav
encoder : Lavc55.69.100 libmp3lame

Stream mapping:

Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (mp3 (native) -> mp3 (libmp3lame))

Press [q] to stop, ? for help
[mpeg4 @ 0x41a2340] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using a tool like VirtualDub? or avidemux to fix it.
[mpegts @ 0x3b735a0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.

generate m3u8file:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:95
#EXTINF:94.589025,
s0
#EXTINF:84.389025,
s1
#EXTINF:74.389025,
s2
#EXTINF:64.389025,
s3
#EXTINF:64.732698,
s4
#EXT-X-ENDLIST

defect:segtime is 10 ,but generate seg's time is about 74

Change History (5)

comment:1 follow-up: Changed 5 years ago by cehoyos

  • Keywords s removed

Isn't this a duplicate of ticket #3797?

If not:
Is this issue reproducible with current FFmpeg git head?
Is it only reproducible using -vcodec libx264 -acodec libmp3lame or also with -vcodec mpeg2video -acodec mp2?

comment:2 in reply to: ↑ 1 Changed 5 years ago by needkane

I use -vcodec libx264 -acodec libmp3lame or also with -vcodec mpeg2video -acodec mp2,it also can't get correct seg time.
Could you use my command to try the case?
Please use my command,and look the content of file.m3u8.
you will found the seg time is more than 10 too much.

comment:3 follow-up: Changed 5 years ago by cehoyos

Sorry, I believe I don't understand your comment:
Did you answer my questions? Which ones?

comment:4 in reply to: ↑ 3 Changed 5 years ago by needkane

Replying to cehoyos:

Sorry, I believe I don't understand your comment:
Did you answer my questions? Which ones?

I use command to generate M3U8,but the result is wrong.
you can use my command ,you will found the result .
Notice:I set the seg time is 10,but generate the seg time is more than 10 too much
The source video:​http://needkane.qiniudn.com/a.wmv

comment:5 Changed 5 years ago by michael

  • Resolution set to worksforme
  • Status changed from new to closed

not reproducable with git master

Note: See TracTickets for help on using tickets.