A chemically realistic model of 1,4-polybutadiene confined by graphite walls in a thin film geometry was studied by molecular dynamics simulations. The chemically realistic approach allows for a quantitative determination of a variety of experimentally accessible relaxation functions (e.g., dielectric, NMR, or neutron scattering responses). The simulations yield these experimental observables. Additionally, the simulations can be resolved as a function of distance to the solid interface on a much finer scale than experimentally possible, providing a detailed mechanistic picture of the segmental and large scale motions of polymers in the interfacial region between bulk polymer melts and solid walls. Extending the study of 1,4-polybutadiene on graphite to temperatures close to the glass transition temperature, we also address the question to what extent growing length scales associated with the glass transition influence the melt dynamics in the interphase. It was found that there is an interplay of this intrinsic slowing down with the adsorption/desorption kinetics of the chains close to the wall. It is argued that the monomer density changes near the wall can overcome the effect of rotational barriers only in a region of about 2 nm next to the wall.