Adding audio stream to video stream problems

Any other question that don't fit into the other support categorizes.
Post Reply
twinkies
Posts: 1
Joined: Sun Nov 30, 2014 8:57 pm

Adding audio stream to video stream problems

Post by twinkies » Sun Nov 30, 2014 9:00 pm

Hello!
I'm working on a simple project where I allow the user to record a video stream, record an audio stream and combine the two. I also want to allow them to pick what time period in each stream to "export" so to speak; so if they have a minute recording, they can select only to export let's say 10seconds of it.
My current ffmpeg command is:

Code: Select all

Ffmpeg.exe -ss 56.6081 -i "audio.ogg" -i "Video.avi" -c copy -shortest "Output.avi
Where the "56.6081" is actually a variable that the user can decide on.

My problem at the moment is that there are times when the output file is so much larger than the individual audio + video files. Why is this? Let's say my video file is 50MB and audio is 10MB, the result can be something +100MB.

My second problem is that sometimes the exported product have a corrupted index, so the ability to scroll or seek through the video during playback is not working.

Also, I tried changing my command to:

Code: Select all

ffmpeg.exe -ss 55.6081 -i "video.avi" -i "audio.ogg" -c:v -c:a -shortest "output.avi"
but now I get a "unknown encoder '-c:a'".

Any help would be appreciated!!
Last edited by Zeranoe on Mon Dec 01, 2014 2:46 am, edited 1 time in total.
Reason: Added code brackets

llogan
Posts: 332
Joined: Fri Mar 14, 2014 3:29 am

Re: Adding audio stream to video stream problems

Post by llogan » Mon Dec 01, 2014 6:42 pm

Please show the complete ffmpeg console output from each command (and use the code tags to format it).

Code: Select all

ffmpeg.exe -ss 55.6081 -i "video.avi" -i "audio.ogg" -c:v -c:a -shortest "output.avi"
Your -c:v is blank.

Post Reply
'