Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 11:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
pAVrecord Video/webcam recorder (mpeg4, Theora, x264)
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 5 [71 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Saborima

Joined: 06 Jun 2013
Posts: 5

PostPosted: Sat 02 Aug 2014, 08:52    Post subject: in Tahr case  

I tried pAVrecord-9.0.3.

Precise-550 ... OK

In case of tahr-5.8.3 (VLC, no ffmpeg), my control is never returned to pAVrecord from VLC.
I had to kill the following processes.
Code:

sh -C rec "$TDIRFILE_DS1" "$DIRFILE1" "$DURATION1"
arecord -D plughw:0,0 -f cd -c 1 -d 0
sh -c avconv -y -f "video4linux2" -s 320x240 -i "/dev/video0" -r 30 -vcodec libxvid -aspect 4:3 -f avi

From this operation, audio file and video file have different time lengths.
Back to top
View user's profile Send private message 
mcewanw

Joined: 16 Aug 2007
Posts: 2348
Location: New Zealand

PostPosted: Sat 02 Aug 2014, 21:20    Post subject: New version 9.0.4 of pAVrecord uploaded
Subject description: With avconv bugfix
 

New version 9.0.4 of pAVrecord uploaded. Hopefully fixes the vlc/avconv related bug drawn to my attention by user Saborima. It only effected machines using avconv (which would hang on record) rather than ffmpeg as it turns out.

Saborima wrote:

In case of tahr-5.8.3 (VLC, no ffmpeg), my control is never returned to pAVrecord from VLC.


Thanks for that very valuable report Saborima. I don't have vlc on my main system and normally use mplayer and ffmpeg etc, so good to have a test case using avconv, avplay and vlc. Unfortunately default puppy tahr comes with pae kernel, which my development computer can't handle. On my netbook, tahr loaded, but alsa system sound doesn't work on that particular netbook under tahrpup (nothing to do with pavrecord per se) and I haven't time to try and find the reason. However, I think the fix I've made to pavrecord in version 9.0.4 should hopefully fix the problem you had. I had made a single line mistake that only effected avconv users (ffmpeg users were fine). I would be grateful if you could test pavrecord 9.0.4 as thoroughly as you can in case there are any other issues for vlc/avconv combination that I am not aware of.

William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
Saborima

Joined: 06 Jun 2013
Posts: 5

PostPosted: Sun 03 Aug 2014, 01:09    Post subject:  

mcewanw wrote:
New version 9.0.4 of pAVrecord uploaded.

I tried 9.0.4 soon.

It works fine on tahr-5.8.3 with VLC and avconv !!

But I don't have microphone. only webcam.
and so I tested only Video file, combined MP4 file and the return of my control.
(pAVrecord produced soundless Audio file, too)

Thanks for fixing the bug.
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Fri 08 Aug 2014, 06:47    Post subject: ah, thanks to helpers
Subject description: Amipup, what a distro ! (slacko 5.6) Pub
 

"container for combined audio/video: avi (i.e. just left at default - maybe aac would be better for sound since using x264 video below but haven't tried)
Audio format: mp3, cbr, 32k (i.e. just left at default)
Selected video encoder: x264

But the important thing to get good video quality was to enter the following extra options into "Extra O/P options": -b:v 1000k
EDIT: For some (older?) installed ffmpeg version, you might instead need to use:
"Extra O/P options": -b 1000k"

That gives a 1000 kbps video bitrate rather than whatever the default ffmpeg uses is (none was provided by me in the program itself).

I'll probably add a video bitrate choice option in next version of pAVrecord." Very Happy
PAVrecord with AmiPUP give awfull images... I try to improve that with your advices.
Very Happy nettement mieux, Merci monsieur.

_________________
Puppy, il ne lui manque que la parole !

Last edited by Pelo on Fri 08 Aug 2014, 07:13; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
mcewanw

Joined: 16 Aug 2007
Posts: 2348
Location: New Zealand

PostPosted: Fri 08 Aug 2014, 07:04    Post subject: Re: ah, thanks to helpers
Subject description: Amipup, what a distro ! (slacko 5.6) Pub
 

Pelo wrote:
"container for combined audio/video: avi (i.e. just left at default - maybe aac would be better for sound since using x264 video below but haven't tried)
Audio format: mp3, cbr, 32k (i.e. just left at default)
Selected video encoder: x264

But the important thing to get good video quality was to enter the following extra options into "Extra O/P options": -b:v 1000k
EDIT: For some (older?) installed ffmpeg version, you might instead need to use:
"Extra O/P options": -b 1000k"

That gives a 1000 kbps video bitrate rather than whatever the default ffmpeg uses is (none was provided by me in the program itself).

I'll probably add a video bitrate choice option in next version of pAVrecord." :D
PAVrecord with AmiPUP give awfull images... I try to improve that with your advices.


Hi Pelo,

I'm no expert at how to get good image quality with ffmpeg, If you know of or can find a commandline that provides good quality, please let me know, and I should be able to incorporate that into the program or at least in the docs in terms of best parameters to use. Thanks in advance.

William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Fri 08 Aug 2014, 07:17    Post subject: Minute ! i am cooking the video !
Subject description: xwininfo : x,y to screencast, cursor position ...
 

Minute ! i am cooking the video ! Wink
Absolutely no problem. If I find the perfect settings, i will notice them here.
If the developer and the user work together, you shall see that things are improving very fast, taking account of obligations of the system to arrange with.
Thanks sir for yr assistance. Wink
Fullscreen or not fullscreen ? Medor, frenchy Puppy's teacher tells you how to know window position to screencast
xwininfo, cursor position
Youtube dimensions are 852x480 I am trying to adjust my screencast
... on progress(e).....
You can post your video to youtube without modifying anything.
Gnome-Mplayer : x1, xv,gl, choose gl for settings here-below joined.
MonChoix.jpg
 Description   screencast : i am satisfied by the result. Now the game is to lower the quality until i am no longer satisfied. The just necessary to earn MBs.
 Filesize   86.13 KB
 Viewed   246 Time(s)

MonChoix.jpg

h264.jpg
 Description   Audio was 2014_08_08_173549.ogg plus 2014_08_08_173549.avi encapsulated in youtube.avi: 5729 K
 Filesize   41.83 KB
 Viewed   267 Time(s)

h264.jpg


_________________
Puppy, il ne lui manque que la parole !

Last edited by Pelo on Fri 08 Aug 2014, 23:45; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Fri 08 Aug 2014, 12:21    Post subject:  pAVrecord my settings aimed to You tube diffusion
Subject description: This video is now very correcte, with your advices
 

pAVrecord my settings aimed to You tube diffusion
video
The video will be completed when my knowledge is improved.
I now test lower quality. for get the just necessary (for Pelo, indeed).
For screencastcapture, 10frames per second would be enough.
one minute = 60 seconds 35 frames per second are 35x60 per minute i.e 2100 images

10 frames are only 600. here is the main way to lower MBs.
screencasting only the necessary zone is the second way to earn MBs

_________________
Puppy, il ne lui manque que la parole !

Last edited by Pelo on Thu 14 Aug 2014, 05:29; edited 2 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
mcewanw

Joined: 16 Aug 2007
Posts: 2348
Location: New Zealand

PostPosted: Sat 09 Aug 2014, 02:57    Post subject:  

Merci beaucoup, Pelo. I'll try out the settings you suggest and see how it goes.

As for capturing portions of the screen... yes, that was something I was looking into for a future upgrade (perhaps as a plugin).

FFConvert screencast also allows user to select screen portion or individual window, but as far as I remember I don't think it records the audio too (EDIT: quick glance at FFConvert x11grab routine suggests it perhaps does also capture audio, though didn't work for me when I tried it a while ago - my mistake probably. I note shinobar uses hw:0,0 in FFConvert as the sound card device; perhaps plughw:0,0 would work on my machine instead - I'll try that later. As in pAVrecord, you really need a way to select alternative sound devices than only 0,0). Like the method described by Médor, FFConvert also uses xwininfo to determine screencast window capture area, and I note the use of puppylover's pcurpos.

However, the main thing I'm interested in, for my own pAVrecord usage at least, in the nearish future, is to experiment with a motion detection plugin I'm hoping to write once I make some time for that. However, I'm currently sharpening up my gtk programming skills in C, and expect to be quite a while on that before returning to pAVrecord or one of my other gtkdialog-based apps. I will make a point of looking into adding screencast area selection though. Nice to see your Youtube of pAVrecord in action.

William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 09 Aug 2014, 05:13    Post subject: Good job, mcewanw
Subject description: Your remarks were efficient.
 

mcewanw , but te settings which are the best i found are your settings, it's enough.
Hum take a glance to Dpup drec (dpuprecord) by gposil (2009. Perhaps you are searching for something existing, needing only some improvements.
Furthermore Gposil had ffmpeg not so powerfull as nowadays.
Gposil has left...
Drec really works well, when it works (it was done for Dpup,)
Only minor changes will give it a new youth.
I sincerely thanks people as you mcewanw , who minds to users interest, which is to do something with a distro, not to make a distro.

_________________
Puppy, il ne lui manque que la parole !
Back to top
View user's profile Send private message Yahoo Messenger 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 09 Aug 2014, 05:25    Post subject: something strange : audio plus video  

video hum 5MB
audio hum 1MB
when you push button to make the video, the result is much more than 6MB !
Why??? Avidemux sticks the two files making a new one about 6MB, not 10 !
Go, work on that ! Smile
Arrow Arrow Arrow i was with brand new puplet Slacko 5.6 Amipup (amiga look) which has pAVrecord as default.
I change to anotherone to try your new version of pAVrecord.

_________________
Puppy, il ne lui manque que la parole !
Back to top
View user's profile Send private message Yahoo Messenger 
mcewanw

Joined: 16 Aug 2007
Posts: 2348
Location: New Zealand

PostPosted: Sat 09 Aug 2014, 06:09    Post subject: Re: something strange : audio plus video  

Pelo wrote:
video hum 5MB
audio hum 1MB
when you push button to make the video, the result is much more than 6MB !
Why??? Avidemux sticks the two files making a new one about 6MB, not 10 !
Go, work on that ! :)


An interesting observation, which I'll certainly look into for future upgrade Pelo. Thanks for your tests.

William

EDIT: It may prove difficult to duplicate your test. If it is possible for you to post the separate audio track and video track and also the version combined via pAVrecord and that combined via Avidemux, such that I could download them from somewhere, that would be useful. The only thing I can think of at the moment that could be causing the combined result to be larger than you expect is that I have not instructed ffmpeg to base the final duration on the shortest of the two input streams (audio and video). Working with your test files I could try the effect of the ffmpeg -shortest parameter to see if that fixed the issue, or if it introduced any unwanted side effects. The ffmpeg command that pAVrecord uses to combine the audio and video tracks is otherwise quite standard and commonly published on the Internet. It uses -acodec copy and -vcodec copy, which tells ffmpeg not to reencode either the audio or video tracks when merging, so no further processing of the audio or video tracks should be occurring.

I have looked at Drec code some time back. I believe it records the audio and video tracks all in one go without showing a preview window of what is being recorded. That is fine for screencasts, but pAVrecord was primarily designed for webcam video + sound capture, and I found no easy way to show the video being captured without keeping the audio and video tracks separate during recording whilst piping video output through ffplay. It is easy to do a screencast on the commandline of course, including audio, and Drec simply provided a frontend to that as far as I remember. pAVrecord is useful for my own needs, which are partly experimental in nature, but I wouldn't claim it is the most convenient nor best for x11 screen captures, though I am happy to try and improve it. To be honest, I've no personal interest in taking over Drec; I have far to many other projects I want to work on but have limited time. Maybe someone else would like to do that though, so it is good you bring that idea up.

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

Last edited by mcewanw on Sat 09 Aug 2014, 06:52; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 09 Aug 2014, 06:16    Post subject:  Puppy-es LXDE (by Nilson Morales)
Subject description: pAVrecord will help avoiding written translations.
 

The new version of pAVrecord is absolutely perfect, in my needs.
Good job, guys.
First try. nothing to change.
This audio video tool should be included as default.
I will tell it to Nilson (argentina y san Salvador. De facto the distro is for full South-America and people of mexico, honduras, y sus vecinos (neighborood)

What is PAVrecord used for (will be used) ? to make tutorials of how-to-do, either by translating existing ones (english and spanish) to french, either creating by screencasting what i do, with my french comments.
I you can provide us with a lovely girl with tendre voice to make comments more attractive, it would be the summum Smile
Gracias para americanos, Merci pour les francophones, canadiens et africains.traduction ici
LXDE.jpg
 Description   Information will be done in Puppy Linux Facebook site
 Filesize   22.99 KB
 Viewed   203 Time(s)

LXDE.jpg


_________________
Puppy, il ne lui manque que la parole !

Last edited by Pelo on Mon 11 Aug 2014, 19:55; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Sat 09 Aug 2014, 07:01    Post subject: pAVrecord istalled default french ToOpy and Triton  

pAVrecord version 0.9.1 installe on Precise 5.4.3 ToOppy by Argolance. Before changing to newer, je teste la version en place cliquez ici
ToOppy.jpg
 Description   
 Filesize   76.78 KB
 Viewed   230 Time(s)

ToOppy.jpg


_________________
Puppy, il ne lui manque que la parole !

Last edited by Pelo on Mon 01 Sep 2014, 03:03; edited 3 times in total
Back to top
View user's profile Send private message Yahoo Messenger 
mcewanw

Joined: 16 Aug 2007
Posts: 2348
Location: New Zealand

PostPosted: Tue 12 Aug 2014, 07:13    Post subject: some workarounds to improve x11grab screencast quality
Subject description: by reducing framerate or trading off framerate for video size
 

Pelo wrote:
The new version of pAVrecord is absolutely perfect, in my needs.


Yes, it can provide good screencast results almost out of the box, but particularly if video encoder x264 is first selected. By default, with default provided .pavrecordrc config file, it then creates files with screencast framerate = 25 fps with video bitrate set at 1000 kbps.

However, it isn't yet perfect in that trying to change the framerate with entry box x11grab 'Output framerate (fps)' doesn't do what is expected, so attempts to reduce screencast recorded file size by using lower frame rate isn't working. For example, if you try x11grab Output framerate of 10 fps, you don't get that framerate in the recorded screencast video file. Why? Because I made a slight mistake in the code, such that the x11grab framerate entry box isn't working properly (I put the variable at output instead of input where it should be), which I'll fix in the next version.


In the meantime, there is a workaround. For x11grab framerate of 10 fps, put 10 as the value in that x11grab Output framerate entry box and ALSO in the Video Config entry box 'Extra I/P options' put:

Code:

-framerate 10


Then you will correctly get a framerate of 10 fps for the x11grab screencast video, which for the same video bitrate means you get much higher quality frames for the same video size. If you wish, you can then trade that higher frame quality for lower video size by reducing the default video bitrate (which, as I said above, in x11grab screencast mode is currently set at 1000k (bps) by default). But at the moment, I haven't included an entry box for video bitrate (a bit of an oversight on my part...). So the workaround for that is to put the required video bitrate in the Video Config enttry box 'Extra O/P options'. For example if you want to use an output video bitrate of 256k instead of 1000k for x11grab capture, in 'Extra O/P options' put:

Code:

-b 256k


Note that it is this video bitrate value which will determine the size of the recorded video (assuming the same encoder and recording length etc), not the frame rate. The frame rate, for a given video bitrate, will determine the quality of the frames (lower frame rate for a given video bitrate the higher the quality of the resultant frames).

I'll fix these errors of mine in next pAVrecord version, which I'll release very soon.

Cheers, William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 3320
Location: Mer méditerrannée (1 kms°)

PostPosted: Thu 14 Aug 2014, 05:11    Post subject: framerate is ok, don't search high quality  

framerate is ok, don't search high quality.
Youtube is the final destination (for my own) . my screen is 1600x900. youtube is 852x480.
MY choices are 1024x768 15fps result as HD in youtube. sound mono
and 852x480 which suits the screen of youtube, but does not appears as HD

For me Pavrecord is a very very fine tool, and they are not thousands, as some told us. Drecord is fine too for full screen capture. And xvidcap for precise job, just the window needed.

It will be impossible to get under 5MB per minute, i think. Merci messieurs (les gars = guys) for your useful work.

_________________
Puppy, il ne lui manque que la parole !
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 4 of 5 [71 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1187s ][ Queries: 13 (0.0164s) ][ GZIP on ]