Open vibhoothi opened 2 years ago
Right on further quick debugging, it seems it is a muxing non-standard y4m like 420p10, 422p12 etc is the culprit,
Command to reproduce locally as per https://github.com/master-of-zen/Av1an/blob/master/av1an-core/src/split.rs#L14-L52
ffmpeg -i ~/awcy/media/av2-a5-270p/SparksElevator_480x270p_5994_10bit.y4m -map 0:V:0 -an -c copy -avoid_negative_ts 1 -vsync 0 temp/0.mkv
As ffmpeg suggests, we could pacakge it in NUT or AVI, both can be muxed, but they are not playable as such,
The problem with AVI is,
[avi @ 0x148806530] yuv420p10le rawvideo cannot be written to avi, output file will be unreadable
More info here: https://trac.ffmpeg.org/ticket/3545
Nut container was sucessful in muxing and playback via ffplay was okay, but chunks.json was empty, logs, not entierly sure what was happening:
if we make y4m again, y4m muxer require reencoding so -c copy
should be removed, but it should be lossless.
ffmpeg -hide_banner -y -i SparksElevator_480x270p_5994_10bit.y4m -strict -1 -map 0:V:0 -an -avoid_negative_ts 1 -f segment -segment_frames 26,35,100 split/%05d.y4m
but again we are not able to mux non standard y4m there, I am open for suggestions from others on this
Edit: Probably digging down deeper on why chunk became 0 for nut
case might be the best bet as the streams can be decoded and transcoded
Edit2:
ffmpeg -hide_banner -y -i SparksElevator_480x270p_5994_10bit.y4m -map 0:V:0 -an -avoid_negative_ts 1 -f segment -segment_format_options strict=experimental -segment_frames 26,35,100 split/%05d.y4m
So when we add -segment_format_options strict=experimental
it works locally and create streams, but it fails to the av1an encode for a. y4m b. nut c. mkv, all three having the issue of total_chunks!=0 issue.
Just wanna follow this issue as I have a ton of yuv422 10bit source files to encode :)
I know that this isn't really a fix but you could simply compress it in the meantime
ffmpeg -i 'https://media.xiph.org/video/aomctc/test_set/a5_270p/SparksElevator_480x270p_5994_10bit.y4m' -c:v ffvhuff 'SparksElevator_480x270p_5994_10bit.mkv'
I can't reproduce the issue with current av1an git
@master-of-zen were you using same commandline as i used and y4m10bit! ?
./av1an -e x264 -i ~/awcy/media/av2-a5-270p/SparksElevator_480x270p_5994_10bit.y4m --keep --temp temp2 -o dark.mp4
What is your ffmpeg version?
that’s really strange as for me ffmpeg under the hood cannot split into different chunks unless we have segment format options as experimental for mkv output.
FFmpeg 5.0, current arch version
That is pretty strange issue for me, tried to do a clean build and it still fails,
Just as a note, I am building ffmpeg_static
cargo build --features=ffmpeg_static --release
as non-static is having problems for me ie. https://paste.debian.net/1232421/
So static build worked for me, not sure if that will be different.
try git reset --hard
and build --release
, cargo update
breaks av1an for me
@vibhoothi I suspect that this would be solved by using lsmash/ffms2, as it appears that you are using hybrid chunking which does not work as well. Can you try either running av1an in docker, or installing lsmash or ffms2?
I was testing out av1an to extract shot-selection alone, it does pretty good and dumps it, but I noticed that, whenever I try to encode a video with 10bit in raw(y4m and also mkv), av1an panics after scene-cut detection,
logs:
I am debugging the actual cause, not sure if this is normal/expected,
Versions, av1an: current master, da8ccf11d45cd83511f7da201addc647a81346b5 VapourSynth: Current master d06204cab2e4fa0e352449f88d6f30c2d4ce54c9 ffmpeg: Latest nightly
N-105763-gc523724c69-20220225
Sample input 10bit 270: https://media.xiph.org/video/aomctc/test_set/a5_270p/SparksElevator_480x270p_5994_10bit.y4m