Posted: Wed 17 Oct 2012, 11:03 Post subject:
pAVrecord version 0.9.0 released - Important updateSubject description: Also a version specially modified to work with Puppy Precise.

Download from first post in this thread. (Note that a modified version of precord has also been created especially for Puppy Precise because Precise currently uses a different codec for aac audio and needed an alternative for mpeg4).

Please remember to delete your old /root/.pavrecord config directory before installing this one because it has a new Audio sync offset default.

Note well that I have also included a version of pAVrecord especially made for Puppy Precise (pavrecord-precise-0.9.0). The ffmpeg (+libavformat extras provided by shinobar) currently provided for Precise require this modified version. But the normal one should be used in Slacko, Dpup Exprimo, or any other non-Precise derived system.

# Changes:

# Version 0.9.0: changed Audio sync offset method

# Version precise-0.9.0: As above, but also using libvo_aacenc instead of libfaac and using -vcodec mpeg4 -vtag xvid instead of libxvid (because libxvid would have needed extra and variable parameters to work in Precise).

pAVrecord videos weren't playable by gnome-mplayer in Precise and perhaps on some other users' systems more generally (though they played okay for me in Slacko). I discovered that Precise didn't like the method I used to delay the audio, but the videos play fine with the new delay method. Furthermore, I find in tests that the delay correction is now much more consistent across codecs._________________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 Mon 22 Oct 2012, 00:17; edited 2 times in total

If I run just the ffmpeg/fflpay command (# ffmpeg -f video4linux2 -s 360x240 -i /dev/video0 -r 15 -vcodec libtheora -qscale 1 -f avi - | tee /mnt/sda1/test.avi | ffplay /dev/video
) I get either I/O error on /dev/vido0 or "opperation not permitted" on /dev/video0.
From what I could understand the defending step is ffpaly.

BTW the mplayer tv// works OK as does the guvcview-precise, so should not be anything wrong with the hardware.

On a different note, regardless if it is going to work in my hardware or not, would be nice if the camera preview and the recording step would be uncoupled, so you can see what is going to be recorded before you start recording.
Maybe for v1.0 _________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

BTW the mplayer tv// works OK as does the guvcview-precise, so should not be anything wrong with the hardware.

First, I would good to know what the hardware is along with the exact version of Puppy you are running on it. (I am assuming you are running this on Puppy Precise with the ffmpeg provided there, which is what this version if designed for).

Second, it would be good if you sent me a copy of the output after running pAVrecord from a console. i.e. just enter into a console: pavrecord Then try recording a video (for simplicity use wav audio, mpeg1 video in an avi container. If the output you already sent is all you are getting, definitely need find out what video device (/dev/video0 or whatever) your hardware uses.

It is possible that your hardware is not using /dev/video0 for its input device. You will have to track that down somehow. Once you have checked that, if it is not /dev/video0 you should try entering whatever it is in the pavrecord config entry box vDEVICE.

If all fails, you indeed need to find out the simplest ffmpeg line that will record video for you and we can take it from there. Don't worry about the audio till then or ffplay in the commandline for now (ffplay is in Precise however, so that should not be causing the problem). The overrun stuff is not an error - that just means you were pressing the pause control and re-running repeatedly.

Finally, you say that mplayer tv// works. It might be helpful if you post the exact command you use for that to be the case.

I will think about adding a preview video facility at some stage later once the main application is tested as going well._________________Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

BTW the mplayer tv// works OK as does the guvcview-precise, so should not be anything wrong with the hardware.

First, I would good to know what the hardware is along with the exact version of Puppy you are running on it. (I am assuming you are running this on Puppy Precise with the ffmpeg provided there, which is what this version if designed for).

Second, it would be good if you sent me a copy of the output after running pAVrecord from a console. i.e. just enter into a console: pavrecord Then try recording a video (for simplicity use wav audio, mpeg1 video in an avi container. If the output you already sent is all you are getting, definitely need find out what video device (/dev/video0 or whatever) your hardware uses.

<snip>

Finally, you say that mplayer tv// works. It might be helpful if you post the exact command you use for that to be the case.

Couldn't get ffmeg to record. Without the "ffplay /dev/video" in the last command does not give any errors but does not record either. Specifying codec, dito.
Any suggestions on that part?_________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

Hi mavrothal. Just had a very quick glance at the data you provided. The above line in your output suggests that it successfully recorded both the video and the audio tracks and that they were successfully combined (muxed together) into the video file whose name would begin with the three letters pAV.... I'll check it out further and get back to you.

I trust you looked for the file in /root and nothing was there?

Did you see the webcam video in a window on screen as you attempted to record it?

"tee" is used as part of an output (save) command. So the message that file or directory not found is peculiar. Was the drive mounted?

Once the video is created and the audio and video tracks have been combined, you can either simply open the directory where the video has been saved and click on it to open it in the default video player, or click the playback button marked "AV" on pavrecords Advanced (big) config interface GUI._________________Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

Hi mavrothal. Just had a very quick glance at the data you provided. The above line in your output suggests that it successfully recorded both the video and the audio tracks and that they were successfully combined (muxed together) into the video file whose name would begin with the three letters pAV.... I'll check it out further and get back to you.

Yes, The files are there. The audio file is fine and the video file has just 1 frame and is 4KB.

Quote:

I trust you looked for the file in /root and nothing was there?

Did you see the webcam video in a window on screen as you attempted to record it?

"tee" is used as part of an output (save) command. So the message that file or directory not found is peculiar. Was the drive mounted?

Yes
Yes. As I mentioned originally, I just get the first frame and then is frozen there.
Yes. As mentioned above the files are there either in /mnt/sda1 or in /root_________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

Sorry mavrothal, I've been away from the computer and it is almost my bedtime here so won't be able to check much till tomorrow. I'll just quickly reinstall the provided package and make sure it is indeed working okay on my own machine in case I blundered somehow during upload late last night. I haven't had any other report about the precise version - you may be the only one who has tried it!

I just downloaded the precise version of pavrecord from the forum and reinstalled to check. (I carefully deleted the old version config files /root/.pavrecord before doing so).

I ran it from console accepting the selections provided by default and it worked fine on my machine (but using the previous release of Puppy Precise since my machine is not PAE capable). I'll get back to you on this tomorrow, but for now, as a matter of interest, here is what the console output looks like for this working record(no overrun messages because this was a straight record without pressing pause button). Using mp3 32k audio, MPEG-4/10 video, avi container:

If the following commandline doesn't work for you mavrothal, then the problem is ffmpeg-related at this stage and not pavrecord per se. Ffmpeg errors you'd have to ask Barry and shinobar about. Otherwise get back to me and please let me know the results anyway. Note that this particular command assumes Puppy Precise plus installation of the above-mentioned libav extras dotpet from shinobar. It is just to check video track recording first, so no audio in this line. Best to cut and paste it in your console for certainty:

If that successfully records try.avi, which it should, you then need to check (with a different command line) that your mp3 audio is recording okay [EDIT: though I note now that you said that the mp3 audio track recorded fine].

As I said, I have only been in a position to test pavrecord on the previous Precise (non-PAE) beta. Can you also check that ffplay is provided on your system, since pavrecord has that listed as one of its dependencies. ffplay -version, should tell you. If the try.avi video recorded correctly above, you can check ffplay is working correctly via a pipe by entering:

Code:

cat try.avi | ffplay -

Note that is ffplay [space] then a minus (which tells ffplay to read from stdin. i.e. via the pipe). Actually, I believe pavrecord should still record even if ffplay wasn't there, you just wouldn't see what you are recording as it is happening...

If all the above works then really pavrecord should be working for you, since it is just a frontend to these component parts.

Note that when there is an apparent problem, it is always worth deleting /root/.pavrecord and then restarting pavrecord, which will automatically rebuild the default /root/.pavrecord config directory. If some other program is holding onto /dev/video0, might be worth a reboot to clear that first._________________Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

I admit I had not installed shinobar's pet
However, installing it does not improve things a lot, other than instead of a black first and only frame in the video, I get the actual first frame and nothing more.
This is true for all the ffmpeg commands you suggested.
Looks like that is an ffmpeg thing.
I guess I'll wait for Precise RC2 that will apparently include pAVRecord and shinobars pet and take it from there again.
Thx_________________Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too

I'm really hoping this is the final for now. As long as the new preview facility hasn't introduced any bugs...

Please remember to delete your old /root/.pavrecord config directory before installing this one because it has a new Audio sync offset default.

Note well that I have also included a version of pAVrecord especially made for Puppy Precise (pavrecord-precise-0.9.0). The ffmpeg (+libavformat extras provided by shinobar) currently provided for Precise require this modified version. But the normal one should be used in Slacko, Dpup Exprimo, or any other non-Precise derived system.

Sorry I mixed up the two dotpets. I will be re-uploading the two version of pavrecord-0.9.2 again shortly._________________Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

NOTE: I mixed up the dotpets on previous upload and also noticed a small flaw in the code, so have fixed all that and re-uploaded with same 0.9.2 version number. Unfortunately, I thought I had taken the previous dotpets down, but hadn't, so a few people have downloaded these earlier faulty ones. Please re-download now.

This follows some comments I came across on the Puppy Akita thread. The ffmpeg there was older/different so some mods were required to pavrecord to bring it back to pretty much full functionality.

I was unable to find any problem with the sound recording part of pavrecord, however, except that I had to run alsaconf everytime I booted Akita for some reason to enable sound recording on my soundcard (to have it recognised). Without sound, the video will refuse to record, so you need to check your alsa system is fully functioning before using pavrecord. I thus suggest running alsaconf to ensure your soundcard is fully working before trying pavrecord.

Also, Akita has an older kernel than I've been using (with Slacko and Precise etc). One drawback of that seems to be that the webcam drivers may not all function, or not so well. Only one of my two plugin webcams worked okay (the other had large doubled-up video) and even the good one did not run as well as it does on Precise or Slacko. Nevertheless it worked reasonably well, and jpeg capture and x11grab all worked too now, and sound recording.

Haven't tested this on any other 4.x series Puppy - all depends on the ffmpeg I suppose, and the kernel/modules for webcam drivers. I'll try and test a few when I next have time. Might even work to some extent (or could be made to...) on a 2.x series puppy, though I don't know as yet._________________Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.

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