View Full Version : encode image sequence with x264
KornX
17th November 2010, 21:08
Hey,
what is the syntax to encode the BBB files (*.png) with x264 to a movie?
i can get it working without avisynth...
KornX
J_Darnley
17th November 2010, 21:19
Like I think you just said, Avisynth can do it with ImageReader. Alternatively, you can use lavf input and the usual printf-like syntax ffmpeg uses (e.g. %04d.png).
[EDIT] Oh yeah, they both use the same syntax.
KornX
17th November 2010, 21:27
yeah the goal would be without avisynth!
i think i got sth like that...
x264.exe --crf 18 --fps 24 --input-res 1920x1080 --input-csp rgb -o "T:\crf18.mkv" "T:\___BBB\big_buck_bunny_%05d.png"
>>>
no luck...
I maybe forgot sth?
:sly:
J_Darnley
17th November 2010, 21:40
"no luck" is not an error message or even a description of a problem. Why are you specifying the resolution and colourspace?
[EDIT] Did x264 complain about raw video? You didn't compile lavf input so you can't read png files.
KornX
17th November 2010, 21:48
you're right
after a long working day it is getting hard
maybe i am getting to old :scared:
>>>
ffms [error]: could not create index
lavf [error]: could not open input file
x264 [error]: could not open input file `T:\___BBB\big_buck_bunny_C:\x264' via any method!
i spec. the 2 things cause i read it somewhere that you need to do that some time ago...
probably only right with raw?
J_Darnley
17th November 2010, 22:00
You have lavf but I'm not surprised that x264 can't open "T:\___BBB\big_buck_bunny_C:\x264". Please check what you type
This works fine for me: x264 "Q:\Sintel\sintel-2k-png\%08d.png" -o temp.flv
KornX
17th November 2010, 22:33
if i change your cmd to that
x264 "T:\___BBB\%05d.png" -o 1.mkv
i get
x264 [error]: No output file. Run x264 --help for a list of options.
the off syntax doesnt work either...
(x264 --crf 24 -o <output> <input>)
:eek:
LoRd_MuldeR
18th November 2010, 00:54
As far as I know, x264 does not support format strings in the input parameter.
What makes you believe that this is supposed to work? I can't see any indication for that feature in the documentation.
Also: What is wrong with Avisynth' ImageReader in this scenario?
Dark Shikari
18th November 2010, 01:07
As far as I know, x264 does not support format strings in the input parameter.
What makes you believe that this is supposed to work? I can't see any indication for that feature in the documentation.x264 supports anything lavf supports.
LoRd_MuldeR
18th November 2010, 01:19
x264 supports anything lavf supports.
I'm too lazy to check now, but I assume x264 itself does open the source file and then passes the data (or the file pointer) into the decoder library.
This would require special handling for image sequences on x264's side. Support for image sequences in lavf is not enough...
Dark Shikari
18th November 2010, 01:20
I'm too lazy to check now, but I assume x264 itself does open the source file and then passes the data (or the file pointer) into the decoder library.Nope! That's not how lavf works. It wouldn't be able to seek then.
KornX
18th November 2010, 21:04
So Dark, you are saying it works...?
But surely you dont have the cmd right there?
- Mulder, avisynth isnt port
and if x264 got the good input...
why not
KornX
nm
18th November 2010, 22:24
So Dark, you are saying it works...?
But surely you dont have the cmd right there?
It should work just fine if you don't have typos in your commands. What happens if you change to the source directory first and encode there:
t:
cd ___BBB
c:\path\to\x264 "big_buck_bunny_%05d.png" -o out.mkv
(Why do you even have those underscores in the directory name?)
MasterNobody
18th November 2010, 22:49
Hint. If you write this commands in cmd-file (instead of runing directly in console) than you need to double % char.
KornX
19th November 2010, 19:37
.nm: to have some sorting in windows, it catches my eye better...
-MN: thx man, that did the trick...
sometimes its so simple...
KornX
kunji
5th December 2010, 22:54
i encode image sequence by using the command
ffmpeg -f image2 -i /media/data/tiff/REEL_02-012%03d.tif -r 23.976 -s 640x480 -b 2000 /media/data/ffmpeg/ftest2.avi
the encoded video has very low quality with this command, how can i improve the quality of the picture
thanks ,ajith abraham
J_Darnley
6th December 2010, 01:27
-r 23.976 -s 640x480 -b 2000
What a shocker! What kind of quality do you expect from 2000 bits per second? You are easily missing a factor of 1000. Also, what does this question have to do with x264?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.