Hi people,
i'll try to restaurate a dv video.
1) Before with avconv tool i extract frame from video and saved it in png format
avconv -y -i "/sourcepath/nameovvideo.dv" -an -vcodec png "/destpath/pic%04d.png"
2) After i would try to use some plugin of g'mic for these png
#!/bin/bash
echo "Source folder of png: "
read sourcefolder
cd $sourcefolder
echo "Destination folder of png: "
read destfolder
mkdir $destfolder
time for i in *.png
do
gmic $i -nameofplugin varofplugin -o $pathsource/$destfolder/$i
done
exit 0
3) Last thing to do is making from png frames a video
avconv -i "/pathofpng/pic%04d.png" -vcodec huffyuv -pix_fmt rgb24 "/finalpath/output.avi"
Now my problem is i can't determine the name of plugin and the param i set...
I'll try with calling gimp into terminal, open a single frame, select gmic filter, set message (console), select the filter (like Repair->Pixel denoise), read what is on terminal (in this case [gmic_gimp]./apply/ -v -99 -iain_pixel_denoise_p 1,10,3,0,1), after i open new one, and try this, but doesn't work (only one work is -deinterlace 0,0 that is the same i read into terminal):
marco@android:~/Immagini/out11$ gmic pic0001.png -iain_pixel_denoise_p 1,10,3,0,1 -o elab/pic0001.png
[gmic]-0./ Start G'MIC parser.
[gmic]-0./ Input file 'pic0001.png' at position [0] (1 image 720x576x1x3).
[gmic]-1./ Input file '-iain_pixel_denoise_p' at position [1]
[gmic]-1./ *** Error in ./ *** Unknown command or filename '-iain_pixel_denoise_p'.
[gmic]-1./ Abort G'MIC instance.
[gmic] *** Error in ./ *** Unknown command or filename '-iain_pixel_denoise_p'.
PS: I have also installed BIMP, but seems not like g'mic and works only for plugin of gimp...
Thanks!