Opened 11 years ago
Last modified 11 years ago
#2750 open defect
video buffer problem after cut video
Reported by: | keyur.dobariya | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | flv |
Cc: | maulik@artoonsolutions.com | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
How to reproduce:
% ffmpeg -i INPUT.flv -ss 10 -t 40 -vcodec copy -acodec copy OUTPUT.flv ffmpeg version - 1.0.7
Hi,
we are using ffmpeg to cut video from long video ( say 30 second video from 2 minute video ). we are using above command for that.
With that command, video is cut successfully. but when we are trying to play that video into flash player there is buffering problem. Video is only playing after loading full video content. It is not buffering for long videos and wait till full download.
Please help asap, we need to fix that urgently.
Thanks
Keyur doba
Change History (13)
comment:1 by , 11 years ago
Analyzed by developer: | unset |
---|---|
Reproduced by developer: | unset |
Status: | new → open |
comment:2 by , 11 years ago
Component: | FFmpeg → undetermined |
---|---|
Keywords: | buffer removed |
Priority: | critical → normal |
comment:3 by , 11 years ago
[root@ip-10-10-213-242 webroot]# /usr/local/bin/ffmpeg -i cred3video/sony.flv -s s 5 -t 40 -movflags faststart cred3video/new1.flv
ffmpeg version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 18 2013 04:24:35 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvpx --enable- libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopen core-amrnb --enable-libtheora
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from 'cred3video/sony.flv':
Metadata:
canSeekToEnd : true
creationdate : Thu Sep 17 09:56:09 2009
Encoded_By : Sorenson Squeeze
Encoded_With : Sorenson Squeeze
Duration: 00:00:59.99, start: 0.000000, bitrate: 768 kb/s
Stream #0:0: Video: vp6f, yuv420p, 640x360, 614 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 131 kb/s
Output #0, flv, to 'cred3video/new1.flv':
Metadata:
canSeekToEnd : true
creationdate : Thu Sep 17 09:56:09 2009
Encoded_By : Sorenson Squeeze
Encoded_With : Sorenson Squeeze
encoder : Lavf54.29.104
Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 640x360, q=2-31, 200 kb/s, 1k tbn, 29.97 tbc
Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16
Stream mapping:
Stream #0:0 -> #0:0 (vp6f -> flv)
Stream #0:1 -> #0:1 (mp3 -> libmp3lame)
Press [q] to stop, ? for help
frame= 42 fps=0.0 q=17.2 size= 138kB time=00:00:01.40 bitrate= 804.2kbits/ frame= 153 fps=153 q=31.0 size= 378kB time=00:00:05.10 bitrate= 606.0kbits/ frame= 269 fps=179 q=31.0 size= 655kB time=00:00:08.97 bitrate= 598.2kbits/ frame= 386 fps=193 q=31.0 size= 894kB time=00:00:12.88 bitrate= 568.6kbits/ frame= 473 fps=188 q=31.0 size= 1177kB time=00:00:15.78 bitrate= 610.9kbits/ frame= 589 fps=196 q=31.0 size= 1415kB time=00:00:19.65 bitrate= 589.9kbits/ frame= 687 fps=196 q=31.0 size= 1646kB time=00:00:22.92 bitrate= 588.4kbits/ frame= 807 fps=201 q=31.0 size= 1855kB time=00:00:26.92 bitrate= 564.3kbits/ frame= 907 fps=201 q=31.0 size= 2054kB time=00:00:30.26 bitrate= 556.0kbits/ frame= 1020 fps=203 q=31.0 size= 2250kB time=00:00:34.03 bitrate= 541.5kbits/ frame= 1141 fps=207 q=31.0 size= 2443kB time=00:00:38.07 bitrate= 525.7kbits/ frame= 1199 fps=208 q=31.0 Lsize= 2564kB time=00:00:40.01 bitrate= 524.9kbits /s
video:1895kB audio:625kB subtitle:0 global headers:0kB muxing overhead 1.710212%
This is output from console.
comment:5 by , 11 years ago
comment:7 by , 11 years ago
C:\wamp\www\ffmpeg\bin>ffmpeg -i ../test/sony.flv -ss 10 -t 20 -vcodec copy -acodec copy -movflags faststart ../test/961c28df_0.flv ffmpeg version N-54362-ge0be3cb Copyright (c) 2000-2013 the FFmpeg developers built on Jul 2 2013 22:15:59 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.100 / 55. 18.100 libavformat 55. 11.100 / 55. 11.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, flv, from '../test/sony.flv': Metadata: canSeekToEnd : true creationdate : Thu Sep 17 09:56:09 2009 Encoded_By : Sorenson Squeeze Encoded_With : Sorenson Squeeze Duration: 00:00:59.99, start: 0.000000, bitrate: 768 kb/s Stream #0:0: Video: vp6f, yuv420p, 640x360, 614 kb/s, 29.97 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 131 kb/s Output #0, flv, to '../test/961c28df_0.flv': Metadata: canSeekToEnd : true creationdate : Thu Sep 17 09:56:09 2009 Encoded_By : Sorenson Squeeze Encoded_With : Sorenson Squeeze encoder : Lavf55.11.100 Stream #0:0: Video: vp6f ([4][0][0][0] / 0x0004), yuv420p, 640x360, q=2-31, 614 kb/s, 1k tbn, 1k tbc Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, 131 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 576 fps=0.0 q=-1.0 Lsize= 1909kB time=00:00:20.01 bitrate= 781.3kbits/s video:1575kB audio:312kB subtitle:0 global headers:0kB muxing overhead 1.164339%
I am installed latest version, still not working.
comment:8 by , 11 years ago
what is current git head in above message? is that latest ffmpeg version? if yes, than can you please send me link for windows ffmpeg?
thanks.
comment:9 by , 11 years ago
Keywords: | flv added |
---|---|
Version: | 1.0.7 → git-master |
Yes, e0be3cb is a sufficiently current version.
comment:10 by , 11 years ago
Does the output video work as expected if you re-encode to flv1 and mp3?
What if you copy video and re-encode audio or if you re-encode video and copy audio?
comment:11 by , 11 years ago
After i copy and re-encode audio & video, when i try to play video inside flash player. It first wait for full video download and than start playing. say video is of 20MB than it waits for full 20MB download and than start playing which is not user friendly.
I want to stop full video download. It should start playing after some video content download like other normal videos. Is there any extra command for that?
Thanks for your answers.
follow-up: 13 comment:12 by , 11 years ago
Does the output video work as expected if you re-encode to flv1 and mp3?
comment:13 by , 11 years ago
Replying to cehoyos:
Does the output video work as expected if you re-encode to flv1 and mp3?
no, it always go for full download before play. original video is working fine in player. but after we convert it, it stops buffering and wait until full video download.
Original video link - http://dev.easywebvideo.com/video.php?v=9038b383
ffmpeg trim video link here : http://dev.easywebvideo.com/video.php?v=a85b4c3e
original video is buffering and playing fine while other is waiting for full video download and than plays. It is really frustrating. please help, we are searching for solution of this problem more than a week.
Thanks in advance
Please update to current git head and please provide the failing command line together with the complete, uncut console output to make this a valid ticket.