Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


ffmpeg Que input is backward in time

Discussions about problems encountered using ffmpeg.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

ffmpeg Que input is backward in time

Postby vinny99 » Wed May 16, 2012 4:36 pm

[mp4 @ 0x9f9eac0] Audio timestamp -2147483648 < 2147520506 invalid, cliping
[libfaac @ 0x9fa0440] Que input is backward in time
[mp4 @ 0x9f9eac0] Audio timestamp 2147483520 < 2147520507 invalid, cliping
[libfaac @ 0x9fa0440] Que input is backward in time
[mp4 @ 0x9f9eac0] Audio timestamp 2147483392 < 2147520508 invalid, cliping
[libfaac @ 0x9fa0440] Que input is backward in time
[mp4 @ 0x9f9eac0] Audio timestamp 2147483264 < 2147520509 invalid, cliping
[mp4 @ 0x9f9eac0] Audio timestamp 2147483136 < 2147520510 invalid, cliping
etc etc etc

I get the above outputted by ffmpeg when encoding from a movie file to x264 mp4 aac movie file.

Sometimes it hangs and the output file keeps growing and growing up to 500Mb - 700Mb, while it should be just an end file of arround 40Mb-60Mb

Any ideas?

Thank you
vinny99
 
Posts: 11
Joined: Wed May 16, 2012 4:31 pm

Re: ffmpeg Que input is backward in time

Postby burek » Wed May 16, 2012 11:19 pm

Can you please show entire ffmpeg's command line and its uncut output here? And please use the [CODE] tag.
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: ffmpeg Que input is backward in time

Postby vinny99 » Thu May 17, 2012 3:28 pm

Hi,

Yes the code i run is:

Code: Select all
/usr/local/bin/ffmpeg -y -i /home/tmp/movies/8DMValgTc9HXlmbZcLhvZMr9azogtoek.mpg -vcodec libx264 -preset:v medium -s 640x480 -b:v 400k -acodec libfaac -ab 48k -ac 2 /home/tmp/content/movies/7767_tmp.mp4



And the output with a movie that hangs ffmpeg is:


Code: Select all
ffmpeg version N-40558-g2a793ff Copyright (c) 2000-2012 the FFmpeg developers
  built on May 10 2012 21:32:49 with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
  configuration: --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-gpl --enable-nonfree
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x944b3c0] max_analyze_duration 5000000 reached at 5015467
Input #0, mpeg, from '/home/tmp/movies/PlYt2l3NCHFzjyNoX16GolA9jmd5vqxS.mpg':
  Duration: 26:47:27.73, start: 0.622000, bitrate: 16 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1452 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
[buffer @ 0x9453320] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[buffersink @ 0x9449340] No opaque field provided
[scale @ 0x94495a0] w:640 h:480 fmt:yuv420p sar:1/1 -> w:640 h:480 fmt:yuv420p sar:1/1 flags:0x4
[libx264 @ 0x9451fa0] using SAR=1/1
[libx264 @ 0x9451fa0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x9451fa0] profile High, level 3.0
[libx264 @ 0x9451fa0] 264 - core 124 r2197 69a0443 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:
0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 wei
ghtp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 a
q=1:1.00
[libfaac @ 0x9448aa0] channel_layout not specified
Output #0, mp4, to '/home/tmp/content/movies/7762_tmp.mp4':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 400 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, stereo, s16, 48 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg1video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libfaac)
Press [q] to stop, [?] for help
[libfaac @ 0x9448aa0] Que input is backward in time
    Last message repeated 4 times
[mp4 @ 0x9451ac0] Audio timestamp 2147483392 < 2147483521 invalid, cliping
[libfaac @ 0x9448aa0] Que input is backward in time
[mp4 @ 0x9451ac0] Audio timestamp 2147483264 < 2147483522 invalid, cliping
[libfaac @ 0x9448aa0] Que input is backward in time
[mp4 @ 0x9451ac0] Audio timestamp 2147483008 < 2147483524 invalid, cliping

And here it ends it hangs and the 7762_tmp.mp4 file is growing and growing till i kill the process.

And some times it does finish encoding but keeps outputting lines like below, but the file is useless, its some wrongly encoded file and does not work.
[mp4 @ 0x9451ac0] Audio timestamp 2147483392 < 2147483521 invalid, cliping

Any ideas?

Thank you
vinny99
 
Posts: 11
Joined: Wed May 16, 2012 4:31 pm

Re: ffmpeg Que input is backward in time

Postby burek » Thu May 17, 2012 7:13 pm

try this instead:
Code: Select all
/usr/local/bin/ffmpeg -y -i /home/tmp/movies/8DMValgTc9HXlmbZcLhvZMr9azogtoek.mpg -vcodec libx264 -preset:v medium -s 640x480 -b:v 400k -acodec aac -strict experimental -ab 48k -ac 2 -ar 44100 /home/tmp/content/movies/7767_tmp.mp4
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: ffmpeg Que input is backward in time

Postby vinny99 » Thu May 17, 2012 9:44 pm

Hi,

I tried that code, but did not change anything, still having this same problem.

There are two variants of the problem,
1) it shows a couple of those clipping lines and hangs endless and file grows and grows untill i kill the process
2) it will show a lot of those clipping lines scrolling on the screen and ffmpeg does fininsh encoding, but the file is useless.

here is the ffmpeg output:
Code: Select all
ffmpeg version N-40558-g2a793ff Copyright (c) 2000-2012 the FFmpeg developers
  built on May 10 2012 21:32:49 with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
  configuration: --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-gpl --enable-nonfree
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x9a4e3c0] max_analyze_duration 5000000 reached at 5015467
Input #0, mpeg, from '/home/tmp/movies/PlYt2l3NCHFzjyNoX16GolA9jmd5vqxS.mpg':
  Duration: 26:47:27.73, start: 0.622000, bitrate: 16 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1452 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
[buffer @ 0x9a56540] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
[buffersink @ 0x9a4c320] No opaque field provided
[scale @ 0x9a4c580] w:640 h:480 fmt:yuv420p sar:1/1 -> w:640 h:480 fmt:yuv420p sar:1/1 flags:0x4
Incompatible sample format 's16' for codec 'aac', auto-selecting format 'flt'
[libx264 @ 0x9a54fa0] using SAR=1/1
[libx264 @ 0x9a54fa0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x9a54fa0] profile High, level 3.0
[libx264 @ 0x9a54fa0] 264 - core 124 r2197 69a0443 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/home/tmp/content/movies/7762_tmp.mp4':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 400 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, stereo, flt, 48 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg1video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> aac)
Press [q] to stop, [?] for help
[aac @ 0x9a55640] Que input is backward in time
    Last message repeated 2 times
[mp4 @ 0x9a54ac0] Audio timestamp 2147483392 < 2147483521 invalid, cliping
[aac @ 0x9a55640] Que input is backward in time
[mp4 @ 0x9a54ac0] Audio timestamp 2147483264 < 2147483522 invalid, cliping
[aac @ 0x9a55640] Que input is backward in time
[mp4 @ 0x9a54ac0] Audio timestamp 2147483136 < 2147483523 invalid, cliping
[aac @ 0x9a55640] Que input is backward in time
[mp4 @ 0x9a54ac0] Audio timestamp 2147483008 < 2147483524 invalid, cliping
[mp4 @ 0x9a54ac0] Audio timestamp 2147482880 < 2147483525 invalid, cliping
[aac @ 0x9a55640] Que input is backward in time
[mp4 @ 0x9a54ac0] Audio timestamp 2147482752 < 2147483526 invalid, cliping


...and here it hangs and file grows and grows, till i kill ffmpeg.

let me know...

Thank you
vinny99
 
Posts: 11
Joined: Wed May 16, 2012 4:31 pm

Re: ffmpeg Que input is backward in time

Postby burek » Fri May 18, 2012 12:48 pm

That seems to be a bug. Could you please report it here, so we can fix it: http://ffmpeg.org/trac/ffmpeg
If you can't find "Register" link, click here: https://ffmpeg.org/trac/ffmpeg/register

Also, it would be good if you could provide a sample of your input file. Here are some examples how can you cut a part of your file as a sample: http://ffmpeg.org/bugreports.html (look under "Submitting Sample Media")
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: ffmpeg Que input is backward in time

Postby vinny99 » Sun May 20, 2012 7:31 pm

Hi,

I am trying to report this bug, i signed up, but i am not getting my verification email, i tried to have it resend several times, but nothing. not in my spam folder, anywhere.

Could you take a look into it? or provide me the email to the person there who takes care of accounts.

Thank you
vinny99
 
Posts: 11
Joined: Wed May 16, 2012 4:31 pm

Re: ffmpeg Que input is backward in time

Postby burek » Sun May 20, 2012 9:46 pm

I've created a ticket for you, but you'll need a way of interacting with developers, who reproduce this issue, in order for it to be solved: https://ffmpeg.org/trac/ffmpeg/ticket/1329
Maybe you could subscribe to the mailing list here: http://ffmpeg.org/contact.html
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: ffmpeg Que input is backward in time

Postby burek » Mon May 21, 2012 8:52 am

Is this only reproducible if audio and video are encoded (together) or also with -vn?
So, try this and paste here what's the result:
Code: Select all
/usr/local/bin/ffmpeg -y -i /home/tmp/movies/8DMValgTc9HXlmbZcLhvZMr9azogtoek.mpg -vn -acodec aac -strict experimental -ab 48k -ac 2 -ar 44100 /home/tmp/content/movies/7767_tmp.mp4


P.S. Do you have a small (<15 MB) sample file so we can test it too?
burek
 
Posts: 868
Joined: Mon May 09, 2011 10:16 pm
Location: Serbia

Re: ffmpeg Que input is backward in time

Postby vinny99 » Fri May 25, 2012 9:02 pm

Hi,

I was bit busy, but i tested -vn, it gives the same issue.

I also tried to upload two files with this... but i think it did not work... i have two test files of about 10Mb.

Thank you
vinny99
 
Posts: 11
Joined: Wed May 16, 2012 4:31 pm

Next

Return to ffmpeg

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests