jpg's zu mpg-filmchen

T

Tegger

Mitglied
hoi,

hab mir ein skriptlein zusammengebastelt um webcambilder alle 60sek zu speichern...

jetzt würd ich gern aus den bilder eine mpeg1 machen.....

Code:
jpeg2yuv -f 25 -j frame-%05d.jpg -I p | mpeg2enc -o mpegfile.m1v

geht schon mal nicht mit:

Code:
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!

mittels umwandeln zu ppm, funktionierts
Code:
ls *.ppm | xargs -n1 cat | ppmtoy4m -S 420mpeg2 | mpeg2enc -o mpegfile.m1v

jedoch ist jetzt 1 bild 1frame, das ist etwas zu schnell....

Wie kann ich 1 Bild auf 5 oder 10 Frames erweitern ?
 
Code:
png2avi: mencoder mf://*.png -nosound -ovc lavc -o done.avi
geht auch mit jpg und mpg
 
jou merci, jedoch bleibt das problem, dass pro frame ein bild benutzt wird :)

wie bekomm ich anstatt

mit ls *.ppm: file1.ppm file2.ppm ... hin, dass da file1.ppm file1.ppm file1.ppm file2.ppm file2.ppm ... steht ?
 
jou merci, jedoch bleibt das problem, dass pro frame ein bild benutzt wird :)
Wenn es nur darum geht, dass es zu schnell ist, du kannst auch eine Framerate angeben.
Code:
mencoder mf://*.jpg -mf fps=1 -ovc lavc -o output.avi
 
kann ich auch mit ffmpeg direkt eine flv erstellen ?

dann auch mit 1-3 fps ?

oder muss umweg mit mencoder avi genommen werden ?
 
Auch mencoder sollte Flash-Video erzeugen können.
Code:
mencoder mf://*.jpg -mf fps=1 -of lavf -ffourcc FLV1 -ovc lavc -lavcopts vcodec=flv -o output.flv
 
Code:
[mf] search expr: *.jpg
[mf] number of files: 1440 (5760)
[demux_mf] file type was not set! trying 'type=jpg'...
VIDEO:  [IJPG]  0x0  24bpp  4.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps: 4.00  ftime:=0.2500
** MUXER_LAVF *****************************************************************
If you wish to use libavformat muxing, you must ensure that your video stream
does not contain B frames (out of order decoding) and specify:
    -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
on the command line.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
Cannot initialize muxer.
Exiting...

mit option -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames kommt was unbenutzbares raus....
 

Ähnliche Themen

Akonadi startet nicht mehr

Hardware Problem

Problem mit HSPA+ Modem Huawei E353 - Installation unmöglich?

Festplatte stirbt, dd funktioniert nicht

CTDB Samba Cluster als Shared Storage für MS SQl Server

Zurück
Oben