VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    I'm not new to this, but this one confuses me. I have a video file in the .mp4 container. The frame rate is stated as 23.976fps, by "mediainfo". When I demuxed the video, the raw video's frame rate was stated as 25fps. Can anyone clue me in as to why the discrepancy. I've uploaded a text version of "Mediainfo" output of both files. Thank you.
    Image Attached Files
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    How did you demux the video?

    I would guess it's 23.976 and that is not reported in just the video stream.
    Quote Quote  
  3. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    I used YAMB to demux the .mp4, to a raw H264 video, then inputed tbe raw video into "dgavcdec", to get a .dga file. this program has a preview function, and it reported the video to be 25fps.
    Quote Quote  
  4. Whenever there is no framerate declared in the elementary videostream, it is assumed to be 25fps

    When re-multiplexing into a container, you can set the framerate
    Quote Quote  
  5. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    Ok, but what about the audio? How will the audio be in sync? Thanks. The goal was to convert it to dvd. I like using dvdflick, it's simple to use, and usually get good results. Dvdflick wouldn't accept the original mp4 file, but I do know that it would accept an avs file. Problem was that audio was way out of sync when I used the avs file as the source, and the demuxed audio, converted to mp3, as the audio source, regardless of which framerate I chose to convert it to. Thanks.
    Last edited by phatmax; 1st Mar 2017 at 23:00.
    Quote Quote  
  6. Originally Posted by phatmax View Post
    The goal was to convert it to dvd. I like using dvdflick, it's simple to use, and usually get good results. Dvdflick wouldn't accept the original mp4 file, but I do know that it would accept an avs file. Problem was that audio was way out of sync when I used the avs file as the source, and the demuxed audio, converted to mp3, as the audio source, regardless of which framerate I chose to convert it to. Thanks.

    Did you mean mp2 audio? You probably don't want to convert to mp3 audio, because it's not compliant for DVD

    DVD Flick hasn't been updated in a couple years, and uses ffmpeg for mpeg2 encoding (poor quality) . AVS2DVD is probably a better choice for "simple to use" tools. It has the option to use the higher quality HCenc (or ffmpeg if you really want for some reason), and will accept mp4. Updated more frequently with support from author and other users

    If you wanted to use an avs in DVD flick, there was actually no reason to demux the audio. You can include audio & video in the avs with ffms2 or lsmash and the framerate will be the same as source mp4. You can also preview the script for sync before encoding so as not to waste time encoding only to find problems later. (DGAVCIndex is actually depreciated. It can produce errors on some types of AVC. DGIndexNV is the modern replacement but not free, and requires a nvidia card)
    Quote Quote  
  7. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    I did have to demux it because dvdflick wouldn't accept the .mp4 file, as a source. Every time I convert to dvd, I usually rip the audio from the original video file, with xmedia recode. I just use the .mp3 format, and use 128kbs bitrate. Once it's accepted as an audio source, the program does the rest. I know dvdflick hasn't been updated forever, but I still like it. I found avstodvd a little cumbersome to use. What I ended up doing, was re-encoding the file to .avi, using xvid codec, dix50 fourcc. I used that file as the source, dvdflick, accepted it. I got my desired result, I just wanted to go through less steps. You're right, I don't even have to re-encode the AAC audio to mp3, dvdflick accepts it as an audio source. I'm not smart enough with avs script to include the audio, within the avs file, that's why I do it separately, and let dvdflick deal with it, and it usually works. Got Dell laptop, no nvidia video. Thanks for your response, I might learn something. If you could attach a sample avs script that incorporates audio, I'd appreciate it. Thanks. I attached the report of mediainfo, of the mp4 file, then the raw file, in my original post, maybe you can spot why dvdflick wouldn't accept it.
    Quote Quote  
  8. Originally Posted by phatmax View Post
    Every time I convert to dvd, I usually rip the audio from the original video file, with xmedia recode. I just use the .mp3 format, and use 128kbs bitrate.
    You probably want to do it differently. Since mp3 is non compliant, the other DVD program (doesn't matter which) will re-encode it again. Everytime you re-encode with a lossy format, you lose quality

    What I ended up doing, was re-encoding the file to .avi, using xvid codec, dix50 fourcc.
    Same concept here; when you re-encode it with xvid, you lose quality. It's non compliant for DVD-video so has to be re-encoded again. So not only takes more time and steps, you're producing a lower quality version

    If you could attach a sample avs script that incorporates audio, I'd appreciate it.
    You need to download l-smash separately, it's not included with standard avisynth install. For MP4, MOV you can use LSMASHVideoSource(), LSMASHAudioSource() . For other file types LWLibavVideoSource, LWLibavAudioSource

    http://avisynth.nl/index.php/LSMASHSource


    Code:
    aud = LSmashAudioSource("C:\Users\Robert P\Videos\Anthropoid_2016.mp4")
    vid = LSmashVideoSource("C:\Users\Robert P\Videos\Anthropoid_2016.mp4")
    AudioDub(vid,aud)

    I attached the report of mediainfo, of the mp4 file, then the raw file, in my original post, maybe you can spot why dvdflick wouldn't accept it.
    Nothing looks out of the ordinary. But dvdflick hasn't been updated...so maybe that is enough


    Another reason mnay people don't want to use ffmpeg or dvdflick for mpeg2 dvd encoding, is it doesn't have soft pulldown for 23.976 sources either. It will waste 25% of the bitrate on duplicate fields right off the bat.
    Quote Quote  
  9. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    Hi, really stupid question. How do you "install" "l-smash"? I had a hell of a time getting avisyth to work, it seemed to "install", only when I installed "avstodvd", I don't even know if the version that came with "avstodvd", is current. I'm running Windows 10 home 64bit. Which version of avisynth should I have installed? Thanks again.
    Quote Quote  
  10. Originally Posted by phatmax View Post
    Hi, really stupid question. How do you "install" "l-smash"? I had a hell of a time getting avisyth to work, it seemed to "install", only when I installed "avstodvd", I don't even know if the version that came with "avstodvd", is current. I'm running Windows 10 home 64bit. Which version of avisynth should I have installed? Thanks again.
    Standard 32bit avisynth is the most common install

    You don't "install" l-smash.

    https://www.dropbox.com/sh/3i81ttxf028m1eh/AAABkQn4Y5w1k-toVhYLasmwa?dl=0

    Download the 32bit avisynth plugin, unzip, put LSmashSource.dll into the avisynth/plugins folder to autoload. Or use LoadPlugin("PATH\LSmashSource.dll") in your script to specify it's location and manually load
    Quote Quote  
  11. Member
    Join Date
    Feb 2017
    Location
    Canada
    Search Comp PM
    Thanks for all the help. You know what? After all this, I ended up trying a couple different programs that would do the same job DVDFlick does, and differnet procedures, to get my desired results. So now I have options. Turns out that the version I was using, didn't like the source. I tried an older version, version 3.0.6, and it seemed to work. Sorry to be a bother. This wasn't a total waste, I learned something.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!