Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
For the pros: Different length in audio- and file of the same streamHi guys,
when downloading and merging the video files of be-at.tv (e.g. hxxp://www.be-at.tv/brands/wmc/surfcomber/waveform-with-victor-calderone-guests/ida-engberg.go ), the video and audio file (which are splitted) do have different lengths. In my shown example, the downloaded mp3 is 01:28:36, but the video is 01:28:49! Also the video slider at the website itself shows 2nd length. So how can I get the video and audio in sync? And what is the master lenght? I guess this is a question for the pros. ;-) Thanks in advance! |
#2
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same stream2nd one is master length, for sure!!
Avidemux can do this trick(sync) I think without re-encoding!! |
#3
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamOk, and do you know how?
|
#4
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamJust use FFmpeg
Code:
ffmpeg -i video.flv -i audio.mp3 -c copy out.flv |
#5
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamWhat codec is the audio?
|
#6
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamQuote:
|
#7
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamah, i see. when using ffmpeg try adding "-async 1" without the quotes.
|
#8
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamOkay, so this is the solution?
Code:
ffmpeg -i video.flv -i audio.mp3 -c copy out.flv -async 1 Now I'd like to write a batch file, that first splits the audio and video, and after that muxes it again via the code you told me. |
#9
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamYou should be able to just "remux" the file.
Say you have a file with 1 video stream and 1 audio stream. You can do Code:
ffmpeg -i bad-video.flv -c copy good-video.flv Code:
ffmpeg -i bad-video.flv -map a -c copy astream.mp3 ffmpeg -i bad-video.flv -map v -c copy vstream.flv ffmpeg -i vstream.flv -i astream.mp3 -c copy good-video.flv |
#10
|
|||
|
|||
Re: For the pros: Different length in audio- and file of the same streamOkay, but I'd have to add -async 1? Like
Code:
ffmpeg -i bad-video.flv -c copy good-video.flv -async 1 |
Tags: be attv, flv, mp3, splitted |
Thread Tools | |
Display Modes | |
|
|