Tv-Server plugin Extract Images (1 Viewer)

mrfg

Portal Member
February 11, 2011
7
2
Home Country
Hello,
Is it possible to develop tv-server plugin which does : extract images (1 image per every minute) while capturing or recording the stream?

if yes please give a tip or any document to develop this, thank you.
 

mrfg

Portal Member
February 11, 2011
7
2
Home Country
hello, thank you for reply.
I just checked code of thumbnail processing. (not every details..) it uses ffmpeg.
so if recording file length is 1 hour and I need 59th minute's thumbnail/frame image. it takes time.... right?
can I do it more faster? or ... ?
 

mrfg

Portal Member
February 11, 2011
7
2
Home Country
hello again,

in code line : #154, #155
Code:
ffmpegArgs = string.Format("yadif=0:-1:0,scale=600:337,setsar=1:1,tile={0}x{1}", 1, 1);
ExtractorArgs = string.Format("-loglevel quiet -ss {0} -i \"{1}\" -y -ss {2} -vf {3} -vframes 1 -vsync 0 -an \"{4}_{5}.jpg\"", TimeOffset, aVideoPath, TimeToSeek, ffmpegArgs, strFilenamewithoutExtensionTemp, i)
so, for my test it's like :
Code:
ffmpeg.exe -loglevel quiet -ss 0 -i test_video.ts -y -ss 00:23:00.000 -vf yadif=0:-1:0,scale=600:337,setsar=1:1,tile=1x1 -vframes 1 -vsync 0 -an out.jpg
--- and this took ~ 2-3 minuts. which is not good.
no meaning extracting 1 image per every minute when the extracting process takes more then 1 minute.

or did I do something wrong ... ?[DOUBLEPOST=1413780367][/DOUBLEPOST]I've got answer, if need somebody

fast seek untill it reaches 00:22:00,
and then slow seek (frame by frame) 00:01:00 => 00:23:00
Code:
ffmpeg.exe -loglevel quiet -ss 00:22:00.000 -i test_video.ts -y -ss 00:01:00.000 -vf yadif=0:-1:0,scale=600:337,setsar=1:1,tile=1x1 -vframes 1 -vsync 0 -an out.jpg

details : https://trac.ffmpeg.org/wiki/Seeking with FFmpeg
 
Last edited:

Users who are viewing this thread

Similar threads

  • Sticky
MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
Replies
70
Views
5K
I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
Replies
24
Views
2K
(egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
(egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
40
Views
4K
  • Sticky
Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
Replies
7
Views
1K
You are right, the one on the repository is correct, not sure how I ended up with a different version. See attached the incorrect version I ended up with.
You are right, the one on the repository is correct, not sure how I ended up with a different version. See attached the incorrect...
We have just released MediaPortal 1.32 Halloween Thanks to the great work of our new developer Pablik we are now able to present...
Replies
33
Views
4K
Top Bottom