transcode h264 missing frames at end + inaccurate frame rate

About encoding, codec settings, muxers and filter usage
MLM
Blank Cone
Blank Cone
Posts: 23
Joined: 03 Jan 2013 20:28
VLC version: 2.0.5
Operating System: Windows
Location: Andorra

transcode h264 missing frames at end + inaccurate frame rate

Postby MLM » 11 Jan 2013 19:37

Hi all,

I am experimenting strange things :oops: ...
I am trying to transcode AVI files to h264...
I use this command line:

Code: Select all

vlc.exe Video_file.avi --sout=#transcode{venc=x264{profile=baseline},vcodec=h264,vb=800,acodec=mp4a,ab=128,}:standard{access=file,mux=mp4,dst=TEST_enc.mp4} -vvv
Doing so, the resulting file has a few missing frames at the end...(EX: original AVI file has 21' length, resulting MP4 file has 20'18frames lenght ... 7 frames have disappeared :cry: )
Also the frame rate reported in VLC codec information is inaccurate (EX: frame rate = 25.000821 instead of 25)... Adding parameter fps=25 does not help...
But, I have noticed that using, for example, --stop-time=10 in the command line, result to a correct frame rate.. 25 !!!
I am a little disorientated... :roll:
Could some one help me on this?
Thanks in advance.

Michel.

MLM
Blank Cone
Blank Cone
Posts: 23
Joined: 03 Jan 2013 20:28
VLC version: 2.0.5
Operating System: Windows
Location: Andorra

Re: transcode h264 missing frames at end + inaccurate frame

Postby MLM » 12 Jan 2013 15:01

Hi all,

I have tried the code above using the vlc-2.1.0-git-20130112-0003-win32.zip (EDIT: I do something wrong testing...so, my following remarks are not true for this VLC version. Sorry. )and the result is the same (missing frames at the end of the file + inaccurate frame rate)...
What I am doing wrong?
Would someone try this code and tell if it got the same result?
Please, help me to solve this. Give me some orientation... :?

Thanks, Michel.

ReEDIT: This version just CRASH... :cry:

MLM
Blank Cone
Blank Cone
Posts: 23
Joined: 03 Jan 2013 20:28
VLC version: 2.0.5
Operating System: Windows
Location: Andorra

Re: transcode h264 missing frames at end + inaccurate frame

Postby MLM » 12 Jan 2013 20:43

Hi all,

I have installed this version vlc-2.0.5-20121213-0204

The resulting file does not play...
here the messages log:

Code: Select all

main debug: processing request item: BARRAS.mp4, node: Lista de reproducción, skip: 0 main debug: resyncing on BARRAS.mp4 main debug: BARRAS.mp4 is at 0 main debug: starting playback of the new playlist item main debug: resyncing on BARRAS.mp4 main debug: BARRAS.mp4 is at 0 main debug: creating new input thread main debug: Creating an input for 'BARRAS.mp4' main debug: using timeshift granularity of 50 MiB, in path 'C:\DOCUME~1\MAEB8~1.LEM\CONFIG~1\Temp' main debug: `file:///C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4' gives access `file' demux `' path `/C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4' main debug: creating demux: access='file' demux='' location='/C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4' file='C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4' main debug: looking for access_demux module: 3 candidates main debug: no access_demux module matching "file" could be loaded main debug: TIMER module_need() : 0.420 ms - Total 0.420 ms / 1 intvls (Avg 0.420 ms) main debug: creating access 'file' location='/C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4', path='C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4' main debug: looking for access module: 3 candidates filesystem debug: opening file `C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4' main debug: using access module "filesystem" main debug: TIMER module_need() : 0.325 ms - Total 0.325 ms / 1 intvls (Avg 0.325 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 203 bytes in 0s - 3360 KiB/s main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.208 ms - Total 0.208 ms / 1 intvls (Avg 0.208 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.118 ms - Total 0.118 ms / 1 intvls (Avg 0.118 ms) main debug: creating demux: access='file' demux='' location='/C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4' file='C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4' main debug: looking for demux module: 55 candidates mp4 debug: dumping root Box "root" mp4 debug: | + ftyp size 28 mp4 debug: | + moov size 159 mp4 debug: | | + mvhd size 108 mp4 debug: | | + udta size 43 mp4 debug: | | | + cenc size 35 mp4 debug: | + wide size 8 mp4 debug: | + mdat size 8 mp4 debug: ISO Media file (isom) version 0. mp4 error: cannot find any /moov/trak es error: cannot peek es error: cannot peek playlist debug: not enough data playlist debug: not enough data mod debug: MOD validation failed (ext=mp4) lua debug: Trying Lua scripts in C:\Documents and Settings\m.lemarec\Datos de programa\vlc\lua\playlist lua debug: Trying Lua scripts in C:\Archivos de programa\VideoLAN\VLC\lua\playlist lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\anevia_streams.luac qt4 debug: IM: Setting an input lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\anevia_xml.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\appletrailers.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\bbc_co_uk.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\break.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\canalplus.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\cue.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\dailymotion.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\extreme.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\france2.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\googlevideo.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\jamendo.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\joox.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\katsomo.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\koreus.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\lelombrik.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\metacafe.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\metachannels.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\mpora.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\pinkbike.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\pluzz.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\soundcloud.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\vimeo.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\youtube.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\youtube_homepage.luac lua debug: Trying Lua playlist script C:\Archivos de programa\VideoLAN\VLC\lua\playlist\zapiks.luac avcodec debug: trying url: C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4 avcodec debug: detected format: mov,mp4,m4a,3gp,3g2,mj2 avcodec error: Could not open C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.mp4: Specified event object handle is invalid vobsub debug: could not read vobsub IDX file ps error: cannot peek main debug: no demux module matching "mp4" could be loaded main debug: TIMER module_need() : 26.424 ms - Total 26.424 ms / 1 intvls (Avg 26.424 ms) main error: no suitable demux module for `file/:///C:/Documents%20and%20Settings/m.lemarec/Escritorio/BARRAS.mp4' main debug: removing module "stream_filter_record" main debug: removing module "filesystem" main debug: finished input main debug: dead input main debug: changing item without a request (current 0/1) main debug: nothing to play qt4 debug: IM: Deleting the input main debug: Destroying the input for 'BARRAS.mp4' main debug: TIMER input launching for 'BARRAS.mp4' : 159.788 ms - Total 159.788 ms / 1 intvls (Avg 159.788 ms)
Do not Know what to do more...

SAlut.

MLM
Blank Cone
Blank Cone
Posts: 23
Joined: 03 Jan 2013 20:28
VLC version: 2.0.5
Operating System: Windows
Location: Andorra

Re: transcode h264 missing frames at end + inaccurate frame

Postby MLM » 19 Jan 2013 15:14

Hi,

I have played the resulting transcoded file with ffplay... here the logs from it:

Code: Select all

ffplay version N-48810-gaaa7d2f Copyright (c) 2003-2013 the FFmpeg developers built on Jan 13 2013 22:01:22 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r libavutil 52. 14.100 / 52. 14.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.107 / 54. 59.107 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [h264 @ 0262a620] reference count overflow [h264 @ 0262a620] decode_slice_header error [h264 @ 0262a620] number of reference frames (0+4) exceeds max (3; probably corr upt input), discarding one Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Documents and Settings\m.lemarec\TES T_enc.mp4': Metadata: major_brand : isom minor_version : 0 compatible_brands: mp41avc1qt creation_time : 2013-01-19 13:48:59 encoder : vlc 2.0.5 stream output encoder-eng : vlc 2.0.5 stream output Duration: 00:00:29.88, start: 0.000000, bitrate: 42 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s Metadata: creation_time : 2013-01-19 13:48:59 handler_name : SoundHandler Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu v420p, 720x576 [SAR 16:15 DAR 4:3], 33 kb/s, 25 fps, 25 tbr, 1001 tbn, 50 tbc Metadata: creation_time : 2013-01-19 13:48:59 handler_name : VideoHandler [h264 @ 02624ae0] reference count overflow [h264 @ 02624ae0] decode_slice_header error 0.02 A-V:[h264 @ 026a1620] -0.182 number of reference frames (0+4) exceeds m ax (3; probably corrupt input), discarding one Frame changed from size:0x0 to size:720x576/0 304.90 A-V:232.262 fd= 82 aq= 0KB vq= 0KB sq= 0B f=0/0
Note the (do not know what this means):
[h264 @ 0262a620] number of reference frames (0+4) exceeds max (3; probably corr
upt input), discarding one

and:
Duration: 00:00:29.88, start: 0.000000, bitrate: 42 kb/s

Here the logs while playing the original AVI file:

Code: Select all

ffplay version N-48810-gaaa7d2f Copyright (c) 2003-2013 the FFmpeg developers built on Jan 13 2013 22:01:22 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r libavutil 52. 14.100 / 52. 14.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.107 / 54. 59.107 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 026081a0] non-interleaved AVI Input #0, avi, from 'C:\Documents and Settings\m.lemarec\Escritorio\BARRAS.avi': Duration: 00:00:30.00, start: 0.000000, bitrate: 30466 kb/s Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s Frame changed from size:0x0 to size:720x576 4.92 A-V: -0.013 fd= 1 aq= 57KB vq= 844KB sq= 0B f=0/0
Note:
Duration: 00:00:30.00, start: 0.000000, bitrate: 30466 kb/s

All this seems to have relation with another topic I have posted Strange behaviours - --sout=#gather:transcode{}

Please, I am doing something wrong? is it a Bug? What can I do to get it right?...

Michel.

MLM
Blank Cone
Blank Cone
Posts: 23
Joined: 03 Jan 2013 20:28
VLC version: 2.0.5
Operating System: Windows
Location: Andorra

Re: transcode h264 missing frames at end + inaccurate frame

Postby MLM » 20 Jan 2013 14:03

Finally, I have opened an tracticket... Ticket #8062
Hope I am doing the correct.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests