VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Hello.
    I am having a problem editing my webcam files. The files are without splits, but mpc-hc opens them.
    This is the file info I get:
    Video: MPEG4 Video (H264) 1920x1080 8fps [V: h264 high L4.0, yuv420p, 1920x1080]
    Audio: aLaw 8000Hz mono 64kbps [A: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s]
    General
    Complete name : C:\Users\Admin\Desktop\gege\1673271786.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 76.3 MiB

    Video
    ID : 0
    Format : AVC
    Format/Info : Advanced Video Codec
    Codec ID : H264
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 8.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0

    Audio
    ID : 1
    Format : ADPCM
    Format profile : A-Law
    Codec ID : 6
    Codec ID/Hint : CCITT
    Bit rate mode : Constant
    Bit rate : 64.0 kb/s
    Channel(s) : 1 channel
    Sampling rate : 8 000 Hz
    Bit depth : 8 bits
    It would be appropriate to convert it to some normal format. Sony vegas studio does not want to open this format, I managed to do it virtualdub with this error:
    Index not found or damaged - reconstructing via file scan.
    Keyframe flag reconstruction was not specified in open options and the video stream is not a known keyframe-only type. Seeking in this vedeo stream may be extremely slow.
    Truncated or invalid compressed audio format detected (18 bytes, should be 19). Atempting to fix
    Detects 8960 frames, so at 8fps it comes out 1120 sec (18 min 40 sec)
    I exported the audio and converted using ffmpeg
    ffmpeg -f alaw -ar 8000 -i 1audio -ar 44100 -ac 2 out.wav
    and I get 14 min 56 sek. What the hell? Do you have a solution to this problem? Maybe there is a program that will convert my video and audio at the same time, because I don't know where I made a mistake. Rather, ffmpeg did well, but why 2 different programs see 8 FPS, while according to the conversion from audio it should be 10 fps....
    The funny thing is that there is a timestamp on the video and it starts at 14:43:05 and the video ends at 14:58:00, so it lasts 14 min and 55 sec
    Last edited by jebaniec; 1st Nov 2023 at 02:24.
    Quote Quote  
  2. a. 8fps + aLaw 8000Hz mono 64kbps => buy a better webcam
    b. feed ffmpeg with the original file, passthrough the video and just recompress the audio to something a bit more usable.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. can you upload the video somewhere so we can take a closer look?
    maybe a simple remux can help.
    Quote Quote  
  4. Sample:

    I know this camera is a piece of junk, but I got it for free and it is only used to monitor the baby (when he is playing in the other room).
    Image Attached Files
    Quote Quote  
  5. Code:
    ffmpeg -i 1698852005.avi -vcodec copy -acodec aac 1698852005.mp4
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  6. Originally Posted by jebaniec View Post
    Sample:
    I know this camera is a piece of junk, but I got it for free and it is only used to monitor the baby (when he is playing in the other room).
    Your camera is not so bad.
    Your video has no duration information, so it cannot be read by many editors.

    Your sample is 15 fps.
    If your video from post#1 is from the same camera, then it's 15 fps too, not 8 fps.

    You can regenerate the missing duration information with the following command line (applies to your video with 15fps, but should also work with the video from post 1):

    Code:
    ffmpeg -r 15 -i 1698852005.avi -c copy 1698852005_new.avi
    (This means: Read the video with 15 fps and copy all streams)
    The new video should then be recognized without any problems and you can re-encode the audio stream as desired.
    Quote Quote  
  7. Thanks. I checked on another file and it doesn't match. The time on the video does not match with the time of the video in the player. The movie according to the camera is 9 min 40 sec, but using your command it is 12:05. I changed the -r parameter to 20, 25, 60 and the length of the resulting file has the same amount. It looks like there is a variable fps in the video, but I'll take a look at that over the weekend. At least after this command it will be easier to fix them.
    Quote Quote  
  8. Originally Posted by jebaniec View Post
    Thanks. I checked on another file and it doesn't match. The time on the video does not match with the time of the video in the player. The movie according to the camera is 9 min 40 sec, but using your command it is 12:05. I changed the -r parameter to 20, 25, 60 and the length of the resulting file has the same amount. It looks like there is a variable fps in the video, but I'll take a look at that over the weekend. At least after this command it will be easier to fix them.
    If is the file from #1 you should try -r 8 instead.
    Quote Quote  
  9. ProWo is right. The video in post #4 is 15 fps. You don't even need the -r 15 in the ffmpeg command line. I recommend you use a different container for the output though. MKV or MOV. If you software can't deal with the audio convert it to aac as suggested by Selur.
    Quote Quote  
  10. Ok. On the test files (some even work), but on the ones I want to convert I get this error:
    I enter 15 fps, but it copies it as 10 fps and I can see that the video is slowed down.
    Image Attached Thumbnails Click image for larger version

Name:	error.png
Views:	30
Size:	24.2 KB
ID:	74687  

    Quote Quote  
  11. Originally Posted by jebaniec View Post
    Ok. On the test files (some even work), but on the ones I want to convert I get this error:
    I enter 15 fps, but it copies it as 10 fps and I can see that the video is slowed down.
    As i said in post #8 you must use - r 8 on this video.
    Quote Quote  
  12. But when I enter:
    ffmpeg -r 8 -i test -c copy test.avi
    then the film won't be slowed down even more? I want to increase the amount of fps
    Edit: Even I put this command I have the same lenght of video. :[
    ffmpeg -r 15 -i baby.avi -c copy baby15.avi ant still have the same lenght, as -r 8 (or without -r parameter)
    I attach file baby file
    Image Attached Files
    Last edited by jebaniec; 6th Nov 2023 at 09:26.
    Quote Quote  
  13. Originally Posted by jebaniec View Post
    But when I enter:
    ffmpeg -r 8 -i test -c copy test.avi
    then the film won't be slowed down even more? I want to increase the amount of fps
    Edit: Even I put this command I have the same lenght of video. :[
    ffmpeg -r 15 -i baby.avi -c copy baby15.avi ant still have the same lenght, as -r 8 (or without -r parameter)
    The command line according to post #6 is only there to generate the missing timestamps and thus make the video readable by editors.
    It is not there to change the framerate.
    If you want to do that, load your corrected video into an editor and recode it with the desired fps.
    However, the quality will not improve.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!