Hello.
I was recentely dumping miniDV tapes with two audio tracks, Scenalyzer outputs stereo AVI and second audio track as WAV, so I thought of using ffmpeg to merge them:
And theCode:ffmpeg -i input_video_with_audio.avi -i new_audio.wav -map 0 -map 1 -codec copy output_video.avisomehow changes the interlaced video type to progressive, as inspected in mediainfo.Code:-codec copy
Below the info from the original file:
And here is the output:Code:Video ID : 0 Format : DV Commercial name : DVCPRO Codec ID : dvsd Codec ID/Hint : Sony Duration : 7 min 10 s Bit rate mode : Constant Bit rate : 24.4 Mb/s Encoded bit rate : 28.8 Mb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Bottom Field First Compression mode : Lossy Bits/(Pixel*Frame) : 2.357 Time code of first frame : 00:00:00:01 Time code source : Subcode time code Stream size : 1.44 GiB (96%) Encoding settings : wb mode= / white balance= / fcm=auto focus
Why is the scan type changed?Code:Video ID : 0 Format : DV Commercial name : DVCPRO Codec ID : dvsd Codec ID/Hint : Sony Duration : 7 min 10 s Bit rate mode : Constant Bit rate : 24.4 Mb/s Encoded bit rate : 28.8 Mb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Original scan type : Interlaced Original scan order : Bottom Field First Compression mode : Lossy Bits/(Pixel*Frame) : 2.357 Time code of first frame : 00:00:00:01 Time code source : Subcode time code Stream size : 1.44 GiB (93%) Encoding settings : wb mode= / white balance= / fcm=auto focus
And how to get ffmpeg to simply add the second audio stream without changing any parameter of the video and audio streams?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 13 of 13
Thread
-
-
haven't done this in a while, but iirc you need to add:
Code:-top 0
see: https://www.ffmpeg.org/ffmpeg-all.html#Advanced-Video-optionusers currently on my ignore list: deadrats, Stears555 -
thank you, but that didn't change anything.
While i'm at it maybe i should change sample aspect ratio fro default and incorrect 16:15 to proper 128/117, ut i'd need to go through all the other tapes as well...
From what i can see it affects the input video:
https://www.ffmpeg.org/ffmpeg-all.html#toc-Options-1
I think I'm one step closer, the optionCode:field_order field_order (video)
Last edited by SF01; 28th Mar 2020 at 13:03.
-
you can try if:
Code:-flags +ildct+ilme
Cu Selur
Ps.: if you share a short sample of the source I can reproduce and try to check the flags myself.users currently on my ignore list: deadrats, Stears555 -
-
-
Code:
Filtergraph ''interlace=scan=tff:lowpass=complex'' was defined for video output stream 0:0 but codec copy was selected. Filtering and streamcopy cannot be used together.
-
I found the solution. It's the avi muxer from FFmpeg that sets the progressive flag. You have to use the mkv muxer instead like this:
ffmpeg -i input_video_with_audio.avi -i new_audio.wav -map 0 -map 1 -codec copy output_video.mkv
Then use mkvcleaver to extract the avi file. -
I compared the output of a DV AVI created by VirtualDub, AviDemux, and ffmpeg. MediaInfo reports
Code:Scan type : Interlaced Scan order : Bottom Field First
Code:Scan type : Interlaced Scan order : Top Field First Original scan order : Bottom Field First
I looked a little more closely at what ffmpeg does that's different than the other programs: Ffmpeg adds an ODML 2.0 vprp chunk with the field order flags. The other editors don't. This is the first time I've seen an AVI file with a vprp chunk. I don't think many programs create or pay any attention to vprp chunks.
By the way, to get ffmpeg to include all audio streams when it remuxes use -map 0. If your second audio stream is from a second source file use -map file:stream to indicate which streams you want to include. Something like -map 0:0 -map 0:1 -map 1:1 (include streams 0 and 1 of the first input file, stream 1 of the second input file).
https://github.com/stoyanovgeorge/ffmpeg/wiki/How-to-Map-Streams-in-FFMPEG -
This answers my question, so the bb switch is correct, and the tb in tis case is incorrect.
In my case -map 0 -map 1 will suffice, The first file is DV+audio, the othwe is second stereo track in separate WAV, so no need to specify streams inside files, as i want to mx everything together.
Thank you for the information, so the whole comman will look like this:
Code:ffmpeg -i input_video_with_audio.avi -i new_audio.wav -map 0 -map 1 -codec copy -field_order bb output_video.avi
Code:Format profile : OpenDML
Last edited by SF01; 30th Mar 2020 at 10:13.
Similar Threads
-
Mixed progressive and interlaced source
By gamjerr in forum Video ConversionReplies: 2Last Post: 4th May 2018, 21:59 -
interlaced or progressive scan
By devdev in forum Video ConversionReplies: 8Last Post: 11th Nov 2017, 12:09 -
Interlaced Content to Progressive
By TE16 in forum Video ConversionReplies: 2Last Post: 14th Jan 2017, 16:38 -
interlaced or progressive: where are the flags?
By marcorocchini in forum Newbie / General discussionsReplies: 0Last Post: 30th Mar 2016, 11:23 -
how do i use ffmpeg to see if a video is interlaced or progressive ??
By oduodui in forum EditingReplies: 3Last Post: 30th Jun 2015, 06:33