Hello to all the experts.
I have a surround sound system in my car that is capable of playing DTS tracks from AVI containers (xvid video). This is a unique ability, so i'm not sure if anyone else has tried this before.
I'm not using DVD for that purpose since it's hard to navigate.
My current flow of creating these files is very complex and requires that i handle each "Track" individually.
One more input - since it's playing in my car and the image is static, i couldn't care less about image quality, frame rate or bitrate. The lower the better, as long as it plays.
So, using FFMPEG, it should be possible, at least in theory.
Now to my command line:
for %%i in (*.dts) do C:\ffmpeg.exe -i "%%i" -loop 1 -r 1 -i cover.jpg -c:v mpeg4 -q:v 31 -vtag xvid -acodec copy -shortest "%%i".avi
This results in a very large file. Huge actually (2.2GB for an 8 minutes track for example), and VLC reports the AVI is "broken".
What am i doing wrong?
My DTS files are 5.1, 48KHz, 1536kbps.
Any help would be greatly appreciated.
Thanks.
+ Reply to Thread
Results 1 to 16 of 16
-
-
What am i doing wrong?
-
Specifically i'm using a 350x350@72dpi image.
Again, as far as i care, it could be a black image. Though cover art is cooler -
Hi
Try with one track in an mkv container first, check that it plays in VLC or SMPlayer...
then think about avi container later.
Code:ffmpeg -loop 1 -i cover.jpg -i trackname.dts -shortest -c:v mpeg4 -q:v 31 -tag:v xvid -c:a copy output.mkv
Code:mencoder output.mkv -ovc copy -oac copy -ffourcc divx -o dti_sample.avi
Last edited by bat999; 14th Feb 2014 at 08:45.
-
This works perfectly.
Is there any way to fix the avi container issue?
Thanks again -
-
Later versions of FFMpeg are VERY particular about where you place the filters, etc. Try putting them as bat999 suggests with -loop then all -I inputs then -shortest right afterward. The rest don't seem to be as critical on my system and latest version of FFMpeg.
If the file size is still too large, use MediaInfo to see whether the audio or video is hogging the file size/bit rate/ dimensions. -
-
-
Well, i tried what you suggested. MEncoder gave many "skipping frame" errors, but eventually did create the AVI files.
VLC plays the image correctly, and shows that it contains a DTS track, but plays no sound.
Windows media player plays the sound correctly, but no image -
-
DVDRW is already burning
Thanks once again. If i managed to automate the flow with your help, it would make my life much easier (car audio related, of course.
Just to give you an example, my current flow to turn a .DTS file to xvid containing the DTS is:
1. Convert it to AC3
2. Shove it to Tsunami Authoring software, as slideshow with the image in the background (also limited to 10minutes per track)
3. Compile DVD
4. RIP DVD, VOB per chapter
5. Shove VOBs into virtualdubmod
6. Disable soundtrack, manually add the original DTS
And i cannot automate vbud, since if i do, the resulting file will have no audio. go figure
I'll update.
BTW - for future reference, my car stereo is SONY MEX-DV2000 (in case anyone is ever looking for the same solution to this problem) -
Sorry to report that while the car's head unit did recognize the files as divx with dts (the dts logo was lit), it did not playback the soundtrack.
Do i have any other options? maybe try a different intermediate container?
thanks again, i appreciate your help -
Last edited by bat999; 14th Feb 2014 at 19:50.
-
Just to update, i still haven't been able to figure out a way to do it (my final goal is to be able to batch-process large amount of files).
I tried creating an MKV file off a still image, then convert to AVI as suggested, but it didn't play in the car (or in VLC).
I tried creating an AC3 off of the DTS files, then create an MKV using the AC3 as soundtrack (played back great), then strip the sound off and mux in the original DTS - this failed with FFMPEG, MEncoder, tsMuxeR, and avimuxgui.
tsMuxeR gave an error saying that the stream type cannot be detected.
Is it possible that my DTS files, which were created using Surcode, are bad?
Again, i have the one flow that works, and that is muxing the DTS using virtualdubmod. And i know in theory that it can be used in command line mode, but i haven't been able to find a clear command line that does that (removes an audio and adds another).
I'm at a loss... Any ideas would be most welcome.
Similar Threads
-
Creating a video file with FFMPEG using a single image (Mask)
By GoldenMeanie in forum Video ConversionReplies: 7Last Post: 8th Jun 2013, 15:18 -
can't get ffmpeg to convert video to image sequence
By wiseant in forum Video ConversionReplies: 15Last Post: 12th Apr 2013, 08:37 -
Creating a video file from a DTS file with blank/still image video
By vdgg in forum AudioReplies: 8Last Post: 31st Oct 2012, 00:41 -
3d video with dts sound how to convert to ac3 sound
By fredddiemercury in forum Video ConversionReplies: 4Last Post: 2nd Nov 2011, 14:54 -
ffmpeg: an image to video conversion question...
By mehmedean in forum Video ConversionReplies: 14Last Post: 31st Jan 2011, 19:18