Debian Multimedia :: Avconv Gives Audio And Video Out Of Sync

Sep 10, 2015

I have a problem with avconv. Most of the use cases work spledidly, but when I need to crop a segment and then splice multiple segments together, I get problems.

The process I use is this:

1. Raw recording of short segments in high-quality AVI, These are produced by avconv, some as screencast and some by combining a PNG file with flac audio from audacity.

2. Conversion segment by segment into mp4 and ogv
Options A: -acodec aac -strict experimental -ab 128k -ac 2 -vcodec libx264 -s 640x480 -pix_fmt yuv420p -movflags +faststart -crf 22
Options B: -acodec libvorbis -ab 128k -ac 2 -vcodec libtheora -s 640x480 -b 500k

3. Splicing of the segments using MP4Box or oggCat.
(I used to do this in ffmpeg, but I have not figured out how to do it in avconv.)
This works.

In some cases I need to crop the segments, using the copy codecs and the -ss and/or =t options.

If I crop the AVI segments (between 1 and 2) the sound is clipping (this also generates a spree of error messages `Non-monotonous DTS'). If I crop mp4/ogv segments, (between 2 and 3) the remaining video, after the cropped segment are out of sync. I get the same problems with both OGV and MP4 playing them in vlc. Playing the mp4 directly in iceweasel works as it should.

View 0 Replies


ADVERTISEMENT

Debian Multimedia :: Avconv Audio Out Of Sync

Feb 5, 2015

I try to record video with my Win TV capture card with avconv. The exact same lines worked fine with Ubuntu 12 and with SUSE, but with Ubuntu 14, the audio is out of sync.

avconv -f video4linux2 -channel 1 -s 640x480 -i /dev/video0 -deinterlace -f alsa -i plughw:1,0 -ar 22050 -ab 64k -acodec ac3_fixed -vcodec mpeg4 -vb 2000k -y test.mp4

View 2 Replies View Related

Ubuntu Multimedia :: How To Sync Audio On Already Badly Out Of Sync Video?

Jul 9, 2011

Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.Searching the net makes one believe that this command is just some sort of magic.People just put it in the line and it just works. Isn't that nice?

It says nothing about how to change the TIME the audio starts syncing. Like do I want it to start 5 seconds delayed? Or what about 5 seconds sooner?What if the audio gets more out of sync as the video goes on? Can I slip it a little at a time? What? No magic?No one mentions a file that already has badly synced audio.So what -async 1 really does is simply start the audio at the beginning of the file. LIKE AS IF THAT ISN'T STANDARD PROCEDURE?So what is the exact solution to syncing a messed up video? And why can't it just do the proper "timestamp" sync in the first place?No docs, no info and you are left out in the cold.

View 4 Replies View Related

Ubuntu Multimedia :: Flash Video And Audio Out Of Sync

Dec 2, 2010

I watch alot of news videos and within 1 - 2 minutes the video and audio become out of sync. The video is lagging the audio. I'm using 10.10 32 bit with Shock Flash 10.1 r102 on Firefox. Will the 10.2 beta flash fix this problem?

View 2 Replies View Related

Ubuntu Multimedia :: MKV Files Audio/video Out Of Sync?

Mar 29, 2011

I put all my dvds on my "media center" by converting them to .MP4 with handbrake.

Recently I saw that with a MKV file you could do soft subtitles. I tested a part of a movie, and the audio and video are very out of sync.

With MP4/burned in audio everything is ok...

Edit: Ow yes I'm using XBMC for playing it. MP4 + MKV files are both H.264, they have the exact same settings except for subtitles...

Weirdly Enough: I tried another video and at this one the audio is in sync....

View 1 Replies View Related

Ubuntu Multimedia :: After Upgrading To 11.04 Video And Audio Are Out Of Sync By About One Second

May 27, 2011

After upgrading to 11.04, video and audio are out of sync by about one second when playing movies in VLC, or opening a clip on the web. Reinstalling does nothing.

View 9 Replies View Related

Ubuntu Multimedia :: Video Editing Software To Re-sync Audio Correctly?

Aug 9, 2010

I have a couple of .avi clips in which the sound plays 2 seconds before the video, so I need a software that can re-sync the sound correctly with the video with affecting the video/audio quality, what program can I use? What is the name of this feature in video editing programs? I am using Ubuntu 10.04. I noted that the Multimedia & video forum have only threads about problems in playing videos & cards drivers problems.

View 3 Replies View Related

Ubuntu Multimedia :: Losing Audio Sync When Editing Video In Openshot

Aug 31, 2010

my goal is to record video using a canon powershot camera, edit the avi file on my ubuntu 10.04 computer, then upload the rendered file to videos.

problem is that when i cut the video, the audio is no longer in sync with the video, it's off by about 1-2 seconds. this happens with both openshot and pitivi, so i suspect that it's caused by a bug with the codec. (files are avi with mjpeg codec). after searching launchpad, this is apparently a "known issue". that's great but for now i need a workaround.

i do have an old g4 powerbook with imovie hd v6 on it that i can use, but i'd prefer not to because:

1. the powerpc mac is much slower than my new dual core laptop
2. imovie compresses my videos too much so the rendered file is lower quality
3. i simply prefer openshot to imovie

i was thinking of preprocessing my avi files by converting them to another format with a non-buggy codec on linux. i downloaded ffmpeg, but not sure how to use it and what format to use. would mpeg2 be a safe one to use?

View 5 Replies View Related

Debian Multimedia :: VLC Stream Capture Audio Out Of Sync

Oct 20, 2015

So I got myself a USB capture card (EasyCap) to use for capturing gaming, digitizing my kids' old VHS movies, etc. It works fine, I've been using VLC to view and record stuff from it, but I've noticed one issue. When recording streams via VLC, even with no other programs running to give VLC as much CPU time as it wants, the audio slowly falls out of sync. I've tried the MP4 (H264/MP3) container and the OGG (Vorbis/Theora) container.

Early on you can't hardly tell, but the further into a movie you get the more out of sync the audio gets, so that by the end of the movie the audio is a good 1-2 seconds off. It's not a set amount either so I can't just split the audio to a separate file then shift it one direction or the other to make up for the difference, because like I said, the offset starts out at nothing and gets progressively larger as the movie goes on. When I select "display locally", the video/audio that is displayed stays in sync, only the video/audio that gets committed to the output file falls out of sync, and it doesn't matter if I play the file with Totem or VLC.

View 3 Replies View Related

Debian Multimedia :: Computer Reboots After Running Avconv

Aug 12, 2015

I just converted a movie from mp4 to avi format and was away from the computer during the conversion. When I came back, the file had been properly converted but the computer was at the login prompt. I assume that it rebooted when the conversion was complete. Is this normal behavior? I don't see any avconv 'switches' to prevent that from happening.

View 7 Replies View Related

Programming :: How To Sync Audio And Video

Sep 28, 2010

How to sync audio and video which is captured from a aeperate camera device and a microphone,how to relate timestamps to audio and video to syncing.I m capturinfg video at 30fps and audio 160 samples everytime so how these 2 should be related to sync and playback at a time

View 1 Replies View Related

Debian Multimedia :: Avconv Downsizing Resolution - Can't Read Text

Dec 3, 2015

I have recently began to use libav and had an issue I was running into.. Not exactly how to word it so I will simply state the symptoms..

Goal: Create a screencast demo on linux, play it back on a windows machine.

I am running this command to record the screen, installed libav:

avconv -f x11grab -r 25 -s 1600x900 -i :0.0 -vcodec libx264 -threads 4 /home/sysadmin/Desktop/output.avi

The issue I am running into is, when I try to play this file in Windows Media Player or even VLC on the linux host, the default size of the video results in the text in the terminal to be unreadable..

When I re-size the video, as in blow it up to full screen, I can see the text clearly..

The playback device is running something like 1280x1020 resolution. Is there a way to make it so that the text will also be readable?

View 6 Replies View Related

Debian Multimedia :: Avconv - Two Pass Encoding MOV To WEBM Not Working

Jan 11, 2016

I am trying to perform a 2-pass encoding of a video from .mov to .webm, but it looks like that the 2-pass encoding is much worse than doing a single pass encoding. Here are the two commands I use:

Code: Select allavconv -y -i input.mov -r:v 25/1 -c:v libvpx -minrate 400k -maxrate 600k -b:v 400k -s 640x360 -force_fps -b:a 80k -pass 1 output.webm

avconv -y -i input.mov -r:v 25/1 -c:v libvpx -minrate 400k -maxrate 600k -b:v 400k -s 640x360 -force_fps -b:a 80k -pass 2 output.webm

View 10 Replies View Related

Fedora :: Video Is Choppy And The Audio Sync Is Off?

May 18, 2009

I've been trying to use cheese to record greeting from my kids to grand parents etc. But every time I record a video, the video is choppy and the audio sync is off. I've used the one in the (F11) repos and built it from source. It behaves the same using other distros as well. Is this par for the course with cheese, or is it my hardware?[URL]... Any other applications/methods to record audio & video while providing a video.

View 2 Replies View Related

OpenSUSE :: Adjust / Sync Audio And Video In Gnome-mplayer On Fly?

Jul 4, 2010

How can one adjust/sync audio and video in gnome-mplayer while watching video

The following is my configuration :-
OS : Opensuse 11.2
Media Player : gnome-mplayer 0.9.9

View 9 Replies View Related

Software :: Ffmpeg And Mencoder Slice Mp4 Video Audio Out Of Sync

Jan 7, 2010

I am trying to use ffmpeg and mencoder to slice a portion of my video out but the audio is always 2 seconds out of sync.

ffmpeg -i bird.avs.MP4 -acodec copy -vcodec copy -ss 00:08:40 -t 00:01:00 test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy bird.avs.MP4 -o test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy -noskip bird.avs.MP4 -o test.mp4

[Code]....

View 5 Replies View Related

Ubuntu Multimedia :: HD Video Playback - Video And Sound Frequently Get Out Of Sync

Oct 17, 2010

When I play large HD videos in mplayer, the video and sound frequently get out of sync, and the video plays a little strangely (occasionally speeding up and occasionally slowing down).

I think it's because mplayer is only running on a single core. As I've got a quad-core processor, it seems inefficient. I've seen that there is theoretically a way to get mplayer to work with multicore setups, but it requires compiling with different options. That'd take me a little while to work through.

Ideally there would be a pre-compiled version in the software centre, or a player which has support built in (again, ideally in the software centre). Is there such a thing available?

View 1 Replies View Related

Debian Multimedia :: Squeeze VLC Plays Audio But No Video?

Mar 1, 2011

I have recently swapped over to debian (KDE 32bit) from linux mint, however vlc only plays audio, no video (This is for .avi's, .wmv's and rtsp streams, probably others but that what i have available to try). I've installed debian multimedia and dragon player will play .avi's fine, though crashes with .wmv's .

Output if i start play a video vlc through terminal
VLC media player 1.1.3 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")

[code]....

View 9 Replies View Related

Debian Multimedia :: Miro Won't Play Audio Cd And Dvd Video?

Jun 1, 2011

Miro won't play audio cd and dvd video!!! I am using Miro 4.0.1 and I can't a play a simple audio cd or dvd video. I have "show all devices and drives" checked. My audio cd and dvd video doesn't not show up on the left pane like it does on iTunes, totem, etc.

View 6 Replies View Related

Debian Multimedia :: Play All The Audio & Video Formats In Lenny 5.0?

Sep 14, 2010

I have been using Linux Mint for the past two years, I am interested in using Debian as my desktop OS.By default Linux mint can play all the audio and video formats

View 8 Replies View Related

Debian Multimedia :: Mplayer Audio Extraction From Video Files

Dec 9, 2010

I am on Squeeze. In the past I have successfully extracted audio from video files. Recently when I try it I get an unplayable file, just some brief noise nothing more. Mplayer on the other hand plays every video and audio file out there. Is there something wrong with mplayer? I installed mplayer from the repo. I haven't compile mplayer since before Lenny.

View 14 Replies View Related

Ubuntu Multimedia :: Audio Out Of Sync After Upgrade To 10.10?

Oct 17, 2010

I've upgraded Ubuntu 10.04 to Ubuntu 10.10 yesterday and I'm experiencing some issues now.

Audio is out of sync for all videos I'm trying to watch in VLC (sync was 100% fine in Ubuntu 10.04).

View 1 Replies View Related

Ubuntu Multimedia :: Audio Out Of Sync When Burning DVD Images?

Jun 20, 2011

I am burning DVD iso's and they seem to work great I have video output and sound output however as the film goes on the audio gradually becomes more out of sync but if I hit the rewind button on my remote and then play the sound is in sync again for a few minuets. I am using DeVeDe and Gnome Baker to create and burn my iso images to disc and they work great on the computer but not so great on my dvd players I am burning onto Verbatim DVD-R using Ubuntu 10.04 lucid lynx.

View 3 Replies View Related

Ubuntu Multimedia :: Audio Out Of Sync After Creating .iso Using Brasero With Version 10.04

Jan 5, 2011

I am attempting to backup DVDs that I own to .iso format so that I'm able to watch them using xbox media center. I've simply been copying the entire DVD to my HD in .iso using brasero.When I watch the .iso file in XBMC, the audio is a fraction of a second ahead of the video. The gap between the audio and video doesn't seem to change over the duration of the clip.

What are the likely causes of this issue? I've read that it could be a slow processor, little ram, or inadequate video card. If it's indeed a hardware issue, I suppose I'm SOL with my current laptop: a 2006 dell with a core 2 duo processor, 2GB ram, and a middle of the road video card at that time.Is there any software tweak I can explore to get the .iso file to sync properly?Also, I know it's customary for posters to list their system specifications, but I don't know how to call up my software or hardware setups.

View 1 Replies View Related

Ubuntu Multimedia :: Sound Not In Sync With Video?

Mar 5, 2010

Have used DeVeDe to make DVD suitable for standalone player in lounge the player plays various formats. the problem is as the title suggests A/V not in sync. It was the first time I had ever attempted to create anything like this. Iam sure I set DeVeDe correctly, the file plays properly on the pc though.

View 1 Replies View Related

Ubuntu Multimedia :: Video And Sound Out Of Sync

Jul 13, 2011

In the last week, whenever I play videos, online or offline, the sound and video are out of sync. Usually the sound is a full second behind the videos, but I've noticed it at less.

I just tried watching a video and whenever someone said something, the sound was a full word behind the movement of the mouth.

This never happened until recently. I think there was an update to the sound drivers a couple weeks back, but I'm not too sure.

View 7 Replies View Related

Ubuntu Multimedia :: Separate The Audio And Video Streams, Speed Up The Video?

Apr 20, 2011

I have a video file in which the audio runs faster than the video, so they quickly go out of sync. The way to fix it would be to separate the audio and video streams, speed up the video (the audio is FINE, it's the video that's wrong), and then recombining them. What is the easiest way for doing that?

View 7 Replies View Related

Ubuntu Multimedia :: Flv Video + Audio To Ogg Audio Only?

Dec 22, 2010

Is there an application that anyone knows about that I can use to convert either an .flv or .ogg file that contains both audio and video to just an audio .ogg file (preferably vorbis+theora) without audacity? I'm fairly certain audacity could accomplish this but it seems like overkill for what I'm trying to do and the computer I'm trying to use does not run it so well.

::EDIT:: I should also mention that I've tried looking on google. I did find downloadhelper extension for firefox which uses ffmpeg to convert the files but I don't see any obvious way to strip the video.

View 2 Replies View Related

Ubuntu Multimedia :: Lost Video Sync Connection At Login (gdm Start)

Jan 23, 2011

I recently purchased a new motherboard and processor to replace an existing system. I transferred the video card. OS remains the same, Ubuntu 10.10 x64. Video worked fine in the first system (eVGA motherboard, Intel E6600 CPU, 4GB RAM), but the old motherboard had a SATA controller issue. New system: Gigabyte GA-890FXA-UD5, AMD Phenom II X4 955 Black Edition Deneb, 8GB RAM

Transferred hardware:
Graphics: eVGA nVidia 8800GT,
Monitor 0: Hanns-G JW199D 1440x900@60Hz
Monitor 1: Gateway FPD1975W 1440x900@60Hz

The Problem:

1. Fresh OS install, everything starts up as expected, login, etc.
2. I use the Additional Drivers link from the menu and select the recommended nVidia driver and enable it.
3. After reboot, the following things happen:
3a. BIOS
3b. Ubuntu startup scripts
3c. Ubuntu logo with spinning dots
3d. Monitor goes black
3e. Monitor notifies it has lost sync

I believe 3d is where I would normally get the login dialog. I can use failsafe mode, but everything I've tried to fix the graphics display hasn't worked. I've even tried to load the latest nVidia driver, nvidia-config, nvidia-settings, etc. There are some options I've tried where the nvidia-x command returns "can't find device". I've tried to modify the xorg.conf file, to no success.

Any ideas what I can do to resolve the error? I'm not that strong on the xorg.conf file, but all I've read is that it's not too necessary anymore. Though, it was modified in my old system to get Twinview working. I've looked through a bunch of log files, but I may not have been looking in the correct log file.

View 3 Replies View Related

Fedora :: 11 Multimedia - Video Players Doesn't Play Video - Show Only Black Window And Play Audio

Aug 23, 2009

To get multimedia working, or explain what I'm doing wrong.

The problem is that none of the video players doesn't play video, they show only black window and play audio.

I have Fedora 11 Leonidas, fully up-to-date.

I have installed rpmfusion and livna repository.

I have installed following packages:

When I try to play video with totem, it doesn't output any error, but just doesn't play video.
with mplayer:

xine and kaffeine just say:

vlc:

I tried several different files, which works perfectly in windows and ubuntu.

I installed windows binary codecs for mplayer to /usr/lib/codec/

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved