Page 1 of 1

Problem With New Version OF ffmpeg

Posted: Fri Aug 24, 2018 8:58 am
by r2dusoft
i two years ago use from ffmpeg with version:

Code: Select all

ffmpeg version N-79784-gabb69a2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (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-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil      55. 24.100 / 55. 24.100
libavcodec     57. 38.100 / 57. 38.100
libavformat    57. 36.100 / 57. 36.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 45.100 /  6. 45.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  0.101 /  2.  0.101
libpostproc    54.  0.100 / 54.  0.100
now i upgrade ffmpeg to new version:

Code: Select all

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180722
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil      56. 14.100 / 56. 14.100
libavcodec     58. 18.100 / 58. 18.100
libavformat    58. 12.100 / 58. 12.100
libavdevice    58.  3.100 / 58.  3.100
libavfilter     7. 16.100 /  7. 16.100
libswscale      5.  1.100 /  5.  1.100
libswresample   3.  1.100 /  3.  1.100
libpostproc    55.  1.100 / 55.  1.100

now when i record with this parameter in new version:

Code: Select all

 -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset ultrafast
and save the video with Format:

Code: Select all

.FLV
after save video,when i open the move.flv saved by ffmpeg,i cant move video to Front and back keys or click on progressbar!
move video to frond and back is disabled!
i have not this problem with:

Code: Select all

ffmpeg version N-79784-gabb69a2 Copyright (c) 2000-2016 the FFmpeg developers
what is the problem??

Re: Problem With New Version OF ffmpeg

Posted: Sun Aug 26, 2018 10:31 am
by r2dusoft
i found the problem!
but can't solve that...

i use from this code for record screen in batch file:

Code: Select all

"ffmpeg.exe" -y -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset ultrafast "output.FLV"
when i start record screen (start batch file) ,when i want quit the record screen, if i send q parameter then record screen paused and closed and my output.FLV staying healthy and when i open output.FLV can move video to front and back...
but when record screen in open and i close the ffmpeg.exe process in task manager or restart or shutdown computer then file output.FLV broken! i can open that, but i can't move video to front and back...

i have't this problem with old versions of ffmpeg.exe

now i how can fix this??

Re: Problem With New Version OF ffmpeg

Posted: Sun Aug 26, 2018 5:28 pm
by vayvanne
have a try with

Code: Select all

-bsf:v h264_mp4toannexb -movflags +faststart

Re: Problem With New Version OF ffmpeg

Posted: Sun Aug 26, 2018 6:09 pm
by r2dusoft
vayvanne wrote:
Sun Aug 26, 2018 5:28 pm
have a try with

Code: Select all

-bsf:v h264_mp4toannexb -movflags +faststart


i'm try,but the problem is still there!
i understood something:

Record Screen and Save as .FLV format:

Code: Select all

"ffmpeg.exe" -y -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset ultrafast "output.FLV"
Record Screen and Save as .MKV format:

Code: Select all

"ffmpeg.exe" -y -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset ultrafast "output.MKV"
when ffmpeg.exe in recording and save with .FLV format,if close ffmpeg.exe then .FLV broken and can't move video to front and back
But:
when ffmpeg.exe in recording and save with .MKV format,if close ffmpeg.exe then .MKV Can't broken! and easily can move video to front and back

now i don't know why this problem occurs!
i want record video Directly with .FLV format without Broken!

for see and confront with my problem:
1- create a batch file with a name and copy this code on that batch file:

Code: Select all

"ffmpeg.exe" -y -f gdigrab -framerate 30 -i desktop -vcodec libx264 -pix_fmt yuv420p -preset ultrafast "output.FLV"
(Be sure the Batch file to be near ffmpeg.exe file in one folder)
now run batch file, see the record screen is started.
now wait for 2 min and after that open task manager and find process ffmpeg.exe after that right click on that and click on END PROCESS TREE
now go and open output.FLV with KMPLAYER or other players,now see cant move video to back and front

Re: Problem With New Version OF ffmpeg

Posted: Tue Aug 28, 2018 5:43 pm
by vayvanne
I can reproduce this but think that it is not a bug or issue, but because of .flv container storing metadata at the end of file.