
Hallo, ich möchte RAW kodieren (yuv) Video zum4vmit dem ffmpeg-Befehl inVp8Kodierungsschema versuche ich, diesen Befehl zu verwenden:
./ffmpeg -s 1280x720 -i raw.yuv -vcodec libvpx 1.m4v
aber der Fehler war:
Input #0, rawvideo,from 'raw.yuv':
Duration: 00:00:58, start: 0.000000, bitrate: 276416 kb/s
Stream #0.0: Video: raw, yuv420p, 1280x720, 276480Kbs,25 tbr, 25 tbn, 25 tbc
[mp4 @ 0x13acff0]track 1: could not find tag, codec not currently supported in c
ontainer
Output #0, ipod, to '1.m4v':
metadata:
encoder :lavf55.0.100
Stream #0.0: Video: vp8, yuv420p, 676x380, q=1--1, 200k,90k tbn, 25
tbc
Stream mapping:
Stream #0.0 -> #0.0(raw video ->libvpx)
Could not write header for output file #0 (incorrect codec parameters ?)
Bitte, ich brauche Hilfe.
Antwort1
M4V ist ein umbenannter MP4-Container und kann daher nur MPEG-Codecs enthalten (und eine kleine Anzahl nicht-MPEG-Audio-Codecs wie AC3). VP8 ist kein MPEG-Codec. Sie müssen es in einen MKV- oder WEBM-Container (eigentlich eine bewusst eingeschränkte Form von MKV) packen.
ffmpeg -s 1280x720 -i raw.yuv -c:v libvpx output.webm
Wenn Sie gute Ergebnisse mit VP8 erzielen möchten, sollten Sie dieVP8-Kodierungshandbuchauf derFFmpeg-Wiki.